Saper game in Angular
ZenSaper is a small single-player game written in Angular framework. The player should find all 32 bombs hidden among fields in a 16x16 board to win the game. Each field can either contain a bomb, be blank or show total number of bombs in neighbouring fields (by side or by corner).
- left click on field - show field's content
- right click on field - toggle possible bomb mark
- left click on face - start new game
- Build an image using
Dockerfile.devin project's directory
cd path/to/project
docker build -f Dockerfile.dev -t zen-saper:dev .
- Run a container mapping container's port 4200 to host's free port (e.g. 8080)
docker run -p 8080:4200 zen-saper:dev
- Build an image using
Dockerfilein project's directory
cd path/to/project
docker build -f Dockerfile -t zen-saper:prod .
- Run a container mapping container's port 80 to host's free port (e.g. 8080)
docker run -p 8080:80 zen-saper:prod
Start the development server. The app will be available at http://localhost:4200.
The page will automatically reload if you change any of the source files.
Build the project. The build artifacts will be stored in the dist/ directory.
Build the project with production configuration. The build artifacts will be stored in the dist/ directory.
Execute the unit tests via Karma.
To use this command, you need to first add a package that implements end-to-end testing capabilities.