Yet another Boulder Rush, but in Rust
[Number of colomn] [Number of row] [Number of Diamands]
For each row
1 digit per colomn describing the cell by:
- 'x' => a not movable rock
- 'o' => a boulder
- '1..9' => number of diamands
- '0' => a boulder with diamands (next digit provide the number of diamands)
Performed by running the command:
PLAYER [NAME]
Performed by running the command:
GAME START
[Number of player]
For each player
[Name] [X_POS] [Y_POS] [Number of diamands]
[Board Description as for board init]
MOVE [UP/DOWN/LEFT/RIGHT]
SHOOT [UP/DOWN/LEFT/RIGHT]
DIG
Actions are process per priority order MOVE > SHOOT > DIG. This make it:
- easier to dodge bullet
- harder to dig
Board is updated according to players action and their new state in the board.