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.dev
in 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
Dockerfile
in 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
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.