An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Mastermind in Phaser
![Build and Deploy](https://github.com/julienduchesne/mastermind-phaser/workflows/Build%20and%20Deploy/badge.svg?branch=main)

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.