Microbot

https://microbot.mzhao.dev/

GitHub

Microbot is a finite-state machine turtle programming game. Given a map, the goal is to define a state transition mapping such that the microbot, following the mapping, will reach all open squares regardless of its starting position.

This project was developed to help students in a high school computer science class test their solutions to a homework assignment.

Instructions

The state of a bot consists of:

Mappings should be formatted:

A BBBB -> C D

This means: “A bot with state A BBBB should move in direction C and update its integer value to D.”

No two rules should cover the same integer + wall combination.

The bot always starts with integer value 0 stored.

Examples:

0 **** -> E 0 This rule makes the bot move east until it “crashes” into a wall.

0 NEW_ -> S 1 If there are walls to the north, east, and west, and there is an empty cell to the south, this rule makes the bot move south and store the integer 1