Chris Pardy

chrispardy.dev

Json Rules Bot

Json Rules Bot is a simple game where you program a set of rules and conditions using the json rules engine. These are evaluated at each frame of the game to move your robot around the map, avoiding hazards and collecting samples.

The map is a 21 x 21 grid with squares numbered from 0 to 20 in each direction. Each tile can contain one of the following terrain types:

Additionally each tile may have a hazard, these are:

The robot starts at position (10, 10) and can move up, down, left, or right onto adjacent tiles.

Game

  • Rules
  • Conditions

Events

The rules should emit one of the following events:

Facts

Map Facts

Robot Facts

Sample Facts

Every level contains 5 samples indexed from 0 to 4

Game Facts