Key features:
- Play against the Kraken in this single-player Battleship clone
- Three different difficulty levels, set according to a basic probabilistic hit algorithm.
- Phaser 3/React front-end with socket-connected API server for Kraken shot logic.
Key learnings:
- Identified mission-critical functions and articulate the issues to discuss progress and contingency with mentors (project management).
- Adapted validation over supervisory approach Working with remote mentor with experience in our gaming library.
- Manage teams productivity and rebound from hurdles.
- Focus on implementation: value effectiveness over being right.
- Continuous deployment with Heroku
Future features:
- Voice commands
- Reinforcement learning via a separate API
- Phaser - Front-ender
- React - control front-end render and display
- socket.io - Sockets
- jQuery - simple rendering page for /GET route to serve the server stateic file
- Heroku - continuous deployment
- node
- express
- nodemon devDependencies
- Phaser 3
- React
-
Clone this repo (the “client” repo).
-
Clone the battleship-server repo (the “server” repo).
-
Install node dependencies in both the server and client directories:
npm install
-
Start the server using
npm run watch
. The server console should sayListening on port 8001 in development mode.
Note: nodemon is used, so you should not have to restart this server -
Start the client:
npm run watch
. The default port is 8080. -
Open a new browser window and enter the local host with your port.
http://localhost:8080/
- Have fun blowing ships up! Press Q or E to see fiery explosions.
- Manual console.logs
- React Developer Tools for Google Chrome
As this is a student project there is currently no process for submitting pull requests.
- SemVer for versioning: version 1.0.0.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Pirate Ships assets from https://www.kenney.nl/assets/pirate-pack
- Kraken from https://opengameart.org/content/kraken
- Phaser 3 and React project boilerplate from https://github.com/photonstorm/phaser3-project-template