Skip to content

rlejeune74/BoulderRust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Yet another Boulder Rush, but in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages