GithubHelp home page GithubHelp logo

duc1704 / bang-the-dice-game Goto Github PK

View Code? Open in Web Editor NEW

This project forked from konpapp/bang-the-dice-game

0.0 0.0 0.0 12.77 MB

Online adaptation of the board game BANG! The Dice Game with Node.js and Socket.io

License: MIT License

JavaScript 70.37% CSS 9.55% Pug 20.08%

bang-the-dice-game's Introduction

BANG! The Dice Game

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.

Play

http://bang-thedicegame.herokuapp.com/

Install

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

Create / Join Game

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.

Lobby

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.

Preview

preview gif

Requirements

Node.js

Copyright

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.

bang-the-dice-game's People

Contributors

konpapp avatar kwdi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.