![]() ![]() if a tile number N is, the tile from which the value is copiedĬopying code from the game may yield other elements (like drawn tiles labels and comments), but they are ignored in this implementation.jumpn L jump to label L if the value at hand is less that zero.jumpz L jump to label L if the value at hand is zero.jump L jump to label L that should be defined somewhere as.bumpdn N decrements the value stored on tile N and copies to result.bumpup N increments the value stored on tile N and copies to result.This operation is valid on letters in whichĬase it computes the distance between two letters in the alphabet sub N substract the value stored on tile N from that at hand,.add N add the value stored on tile N to that at hand,.copyto N grab a copy of the value stored on floor tile N.copyfrom N put a copy of the value at hand onto floor tile N.outbox put the value at hand to the OUTBOX.code is case insensitive (in the implementation at least).comments start with - and extend up to the end of the line.empty line and spacing are non-significant.If not copied from the game, a program may be written from scratch: Just run pip install hrm-interpreter or clone the git repository and run pip install. parse ( 'level-2.hrm' ) > hrm () 1 0 -2 D 0 0 8 9 Installation This library features a parser for this code, and CLI/TUI interpreters. Within the game, one may copy/paste the source code that is edited visually. ![]() This is a Python interpreter for programs from the Human Resource Machine game from Tomorrow Corporation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |