https://github.com/ehsangazar/pacman
https://github.com/ehsangazar/pacman
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ehsangazar/pacman
- Owner: ehsangazar
- Created: 2021-07-14T06:10:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-16T05:44:08.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T11:45:46.253Z (over 1 year ago)
- Language: JavaScript
- Size: 3.88 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pacman Game
This is a game written in JavaScript.
## Scripts
- `npm install` install all dependencies
- `npm run dev` for development run
- `npm run start` for production run
- `npm run test` to run tests
## Rules
- The origin (0,0) is SOUTH WEST.
- Pacman moving off the grid is prevented
- You can create a new command file in `./commands` folder and address it in `index.js`
## Game Commands
- `PLACE X,Y,F`
-> F can be NORTH,SOUTH, EAST or WEST
-> First calid command should be `PLACE`, everything before the first `PLACE` will be ignored
-> We can have multiple `PLACE` commands
- `MOVE` will move Pacman one unit forward in the direction it is currently facing.
- `LEFT` and `RIGHT` will rotate Pacman 90 degrees
- `REPORT` will announce the X,Y and F of Pacman
## Author
- Ehsan Gazar