Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iammar7/board-game
Board Game
https://github.com/iammar7/board-game
antd-design expressjs mongodb nodejs react-query reactjs
Last synced: 1 day ago
JSON representation
Board Game
- Host: GitHub
- URL: https://github.com/iammar7/board-game
- Owner: iAmmar7
- Created: 2022-07-02T13:39:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T17:48:56.000Z (about 2 years ago)
- Last Synced: 2023-03-06T23:34:11.741Z (over 1 year ago)
- Topics: antd-design, expressjs, mongodb, nodejs, react-query, reactjs
- Language: JavaScript
- Homepage: https://board-game-175ec.web.app/
- Size: 442 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Board Game
:boom: 3 day challenge to build and deploy the board game. :boom:### :pushpin: Frontend is deployed on Firebase
https://board-game-175ec.web.app/ :pushpin:### :pushpin: Server is deployed on Heroku
https://board-game-atompoint.herokuapp.com/ :pushpin:## Game Scenario
You’ve been selected as the new knight from King Arthur himself. Some bandits raided the local towns and stole some valuable items from the people. You need to collect those items and bring them back to the town folks.
You will have to sneak into their base and collect all items without being detected, so stealth is your best friend.Rules:
1. Create a board of 20x20 cells.
2. The player will always spawn on (0,0) location of the board. (top left corner)
3. Enemies can spawn randomly on different locations of the board.
4. Items should also be spawn randomly on different locations of the board.
5. The player will move to the item location using keyboard (up,down,left,right) arrow keys.
6. You need to pick all items by moving to the cell block of the items.
7. Avoid touch enemies, because if you do, you’ll die immediately.
8. Complete the challenge in shortest amount of time.Goal: Player needs to collect all items in shortest amount of time.
## Technologies
- React
- React Query
- Ant Design
- Node JS
- Express JS
- MongoDB
- Heroku
- Firebase## How to run locally
- Git clone
- Run `npm install`
- Run `npm run dev` or `npm start`
- cd client
- Run `npm install`
- Run `npm start`## Set up `.env` on server
```
PORT=5000
NODE_ENV=development
MONGO_URI={DB-LINK}
```