8 * 8 GRID TABLE, PAWN SIMULATOR.
The application that can read in commands of the following form
PLACE 2,2,NORTH,WHITE
MOVE X
LEFT
RIGHT
REPORT
a)
PLACE 2,2,SOUTH,WHITE
MOVE
REPORT
Output: 2,1,SOUTH,BLACK
-
Ruby 2.7.1
-
Libraries: Bundler, rspec
-
Dependencies:
bundle install
-
Test:
rspec spec/
-
Run:
ruby start.rb