https://github.com/dherault/wargame
A war game
https://github.com/dherault/wargame
Last synced: 20 days ago
JSON representation
A war game
- Host: GitHub
- URL: https://github.com/dherault/wargame
- Owner: dherault
- Created: 2019-02-16T20:58:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T14:03:48.000Z (about 7 years ago)
- Last Synced: 2025-04-05T13:42:23.109Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://basicwars.com
- Size: 11.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Wars
A war game.
## Installation
```
npm install
npm start
```
## Deployment
```
npm run build-deploy
```
## Glossary
- Position: `{ x, y }`
- Tile: string eg: `'PLAIN'`
## Tour of this repo
Be familiar with React and Redux, then
- Routes can be found in `src/index.js`, views in `src/components`
- The domain game logic is in `src/lib/game`
- The state game logic is in `src/state/reducers`
- How side effects are handled is in `src/state/sagas`
- How the canvas is drawn can is written is `src/lib/game/draw.js`
- How the canvas listens to events can be found in `src/lib/game/registerCanvas`
- How the AI works is in `src/lib/game/computeAiActions.js`
- The maps defintions are stored under `src/lib/mapDefinitions`