A browser game based on the actual board game using Node.js and Socket.io.
For an overview of the board game and its rules you can visit this link.
http://bang-thedicegame.herokuapp.com/
To start the application, download the repository and change into the root directory. Then type the following commands:
npm install
A few environment variables need to be specified before the application can start. Rename the .sampleenv
to .env
and input the following:
1.SESSION_SECRET
: Any personal string,
2.MONGO_URI
: The app connects to a MongoDB. Paste your personal MONGO_URI, or edit the username and password fields on the draft.
After those are implemented, start the application with:
npm start
The player can either create or join a game. On a game creation, a random 4-digit ID is generated corresponding to the room. On a new game creation, access may be restricted to people that the Game ID is shared with or allow everyone (create an open game).
To join a game, the player can either join a random open game or enter a Game ID that has been shared.
A minimum of 4 players is required to start a game. Once this minimum number is reached, and all players are ready, the game creator can start the game.
Node.js
BANG! is a - registered – trademark of daVinci Editrice S.r.l.
dV Giochi is a - registered – trademark of daVinci Editrice S.r.l.
This offer is independent from dV Giochi - daVinci Editrice S.r.l.
dV Giochi - daVinci Editrice S.r.l. is in no way responsible for the contents.