Project for Web technologies and applications course. This project has been done by:
- Dametto Alex
- Volpe Davide
- Zanatta Filippo
This repository is a copy of Westfox-5 original repository.
This project consists in a multiplayer version of the classic game BattleShip.
The game is available to play at: xxxxx. Edit: our deployment has been removed for inactivity. The previous URL is not valid anymore.
Here you can see some screenshots of the application. We have the login and registration page.
This is the HomePage after logging in:
As you can see on the left we have different type of leaderboard, on the right we have a chat and in the middle we can participate to a game.
Then we have the page where we are searching for an opponent:
When we have found an opponent, we are ready to play.
After placing the boards, we have this page where we can see the opponent boards (in front of us), and then our board on the bottom of the page. As you can see, if we hit a boat we will see gray, red it's a generic boat and blue it's the sea. Below the board we have the chat where we can talk with the opponent.
We have also implemented a profile page where an user can see it's statistics
Also, for admin users, we have a section where we can manage users.
We have also generated an APK from the Angular code using Apache Cordova. This are some results
This guide lets you install the game and play with your local server. This means you can only play with other users connected to your server. You cannot see real time changes (like new games added from other players).
cd ~/Desktop
git clone https://github.com/westfox-5/BattleShip
cd BattleShip
npm run install
Or choose what to install
npm run install-server
npm run install-web
npm run install-desktop
npm run install-android
npm run start-db
npm run start-server
Server runs at localhost:8080
Choose what to execute
-
Web: localhost:4200
npm run start-web
-
Desktop:
npm run build-desktop npm run start-desktop npm run generate-desktop :: generete an executable file in `releases/desktop` folder.
-
Android:
npm run build-android npm run generate-android :: generate an APK file in `releases/android` folder.