Skip to content

Pandalfer/2-Player-Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run the game, run the start.cmd file and join the serveo.net link it will provide in the original terminal

OBSTACLES: 
  => The rock will hit any player backwards 10 spaces
  => The thorn bush will halve any players next roll
  => The swamp will cause that player to lose a turn. If both players are in the swamp, the player who entered first has their move
  => The portal swaps the positions of both players and then teleports itself somewhere random

HOW TO PLAY:
  => Players take turns moving across the board
  => Each player clicks the roll button and moves forwards the sum of the two numbers
  => Modifiers may impact the travel of players
  => Rolling a double will move the player backwards by the sum of the double (e.g. if a player rolls a double 6 they move backwards by 12 spaces)
  => The first player to reach the end of the board wins the game

PREREQUISITES:
  => You must have access to a terminal / command prompt
  => You must have npm installed
  => You must have the following npm packages installed:
    (1) express
    (2) socket.io
    (3) nodemon (optional but recommended)
  => You must have a browser and adequate internet connection


Installation of npm packages: 
  => Open a new terminal and navigate to the root directory
  => Run the following commands: 
    (1) npm install express
    (2) npm install socket.io
    (3) npm install nodemon
  => If you dont have npm installed download it from the website: https://nodejs.org/en/download/package-manager

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published