https://github.com/julienduchesne/mastermind-phaser
A Phaser implementation of the Mastermind game
https://github.com/julienduchesne/mastermind-phaser
game javascript webpack
Last synced: 2 months ago
JSON representation
A Phaser implementation of the Mastermind game
- Host: GitHub
- URL: https://github.com/julienduchesne/mastermind-phaser
- Owner: julienduchesne
- License: mit
- Created: 2020-10-17T19:02:32.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-11T03:33:21.000Z (over 5 years ago)
- Last Synced: 2025-04-03T16:21:22.528Z (over 1 year ago)
- Topics: game, javascript, webpack
- Language: JavaScript
- Homepage:
- Size: 5.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mastermind in Phaser

A [Phaser 3](https://phaser.io/phaser3) implementation of the [Mastermind game](https://en.wikipedia.org/wiki/Mastermind_(board_game)). Here's a [demo of the completed product](https://julienduchesne.github.io/mastermind-phaser/)
## Requirements
[Node.js](https://nodejs.org) is required to install dependencies and run scripts via `npm`.
## Available Commands
| Command | Description |
|---------|-------------|
| `npm install` | Install project dependencies |
| `npm start` | Build project and open web server running project |
| `npm run build` | Builds code bundle with production settings (minification, uglification, etc..) |
## Writing Code
After cloning the repo, run `npm install` from your project directory. Then, you can start the local development
server by running `npm start`.
After starting the development server with `npm start`, you can edit any files in the `src` folder
and webpack will automatically recompile and reload your server (available at `http://localhost:8080`
by default).
## Deploying Code
After you run the `npm run build` command, your code will be built into a single bundle located at
`dist/bundle.min.js` along with any other assets you project depended.