Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.41 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.41 KB

BoulderRust

Yet another Boulder Rush, but in Rust

Coverage Status

CI Status

Generated Doc

Game Init

Initial display

[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)

Add Player

Performed by running the command: PLAYER [NAME]

Game Start

Performed by running the command: GAME START

Turn Sequence

Turn init

[Number of player]
For each player
    [Name] [X_POS] [Y_POS] [Number of diamands]
[Board Description as for board init]

Action Order

  • MOVE [UP/DOWN/LEFT/RIGHT]
  • SHOOT [UP/DOWN/LEFT/RIGHT]
  • DIG

Process Action

Actions are process per priority order MOVE > SHOOT > DIG. This make it:

  • easier to dodge bullet
  • harder to dig

Compute new state

Board is updated according to players action and their new state in the board.