Skip to main content

Human Resource Machine (HRM) Interpreter

Project description

Human Resource Machine Interpreter

Game img

Human Resource Machine is a game where you play an employee controlled by a block-like "programming language". The goal of this repository is to create an interpreter for this "programming language".

The syntax is kind of clause to assembly, using jumps for controlling the flow. The inbox and outbox correspond to argument and return value. For each level, a prompt is given and the player code is tested with multiple values.

Overflow occurs when the value is lower than -999 or bigger than 999.

HRM interpreted Language

The HRM language will follow these specificities:

  • Comment will be defined using # on an empty line.
  • inbox will give an integer value from a given stack ranging from -999 to 999
  • outbox will be yield from the run function.
  • every value within square bracket will be considered as a number corresponding to a slot id, or a label that identify a slot.
  • jump will have an argument to the instruction to teleport the pointer to. blank & comment line will not count.
  • slot allow to define slot name given an id and a string.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hrm-py-0.1.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

hrm_py-0.1.1-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page