Skip to content

🦖 DinoBot Toy moves on the tabletop is a simple and funny PHP console game 🎰

License

Notifications You must be signed in to change notification settings

pH-7/dinobot-on-tabletop-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dinobot Robot Simulator 🦖

Dinobot - Draft

Usage

Open a console and execute php bin/toy, a prompt character (> ) will be shown. Available command:

  • place x,y,face
    will put the toy robot on the table in position x, y and facing north, south, east, or west. This command should called first before another command. You cannot place a toy robot beyond the barrier.
  • move
    will move the toy robot one unit forward in the direction it is currently facing.
  • left or right
    will rotate the robot 90 degrees in the specified direction without changing the position of the robot.
  • path
    will give the path to take from the current position to a specific destination. e.g. path 0,1
  • q
    Exit the prompt.

Example:

Development

  1. Fork and clone this repo.
git clone [email protected]:pH-7/dinobot-on-tabletop-game.git
  1. Install all dependencies
    composer install
  2. Install development tools using phive
    phive install
  3. Before commit the change, make sure there are no coding style or phpstan violations by executing
    vendor/bin/phpcs
    tools/phpstan analyse
  4. Run unit testing by executing
    php bin/phpunit
  5. Unit testing coverage report
    php bin/phpunit --coverage-text

About

🦖 DinoBot Toy moves on the tabletop is a simple and funny PHP console game 🎰

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages