-
Notifications
You must be signed in to change notification settings - Fork 3
GameModel
-
playersis an array of objects.Each object contains these details of the player.
a.idis a number which is the id of the player.
b.nameis a string which is the name of the player.
c.characteris a string which is the character for which they have assigned to.
d.positionis a string which is the current position of the player on the dice.
e.cardsis an array which consists of all the cards they have. -
diceValueis an array that consists of the value of each dice. -
confidentialis an array of which contains the correct crime combination includes room, weapon, and murderer. -
activityLogis an array of strings contains all the activities in reverse chronological order. -
totalPlayersis a number which contains total no of players for that game. -
currentPlayerIdis an id number of the current player who is playing the game or whose turn it is. -
diceRollableis a boolean value which contains can roll the dice or not. -
hasDistributedis a boolean value which contains are all cards are distributed among the players or not.
-
nextPlayerIdis a getter which gives id for next player based on previous player id. -
addPlayeris a method which takes the player name and makes new player object and adds him/her to its players array.
CLUEDO
- Home
- Game Components
- Game Setup
- How To Play
- Flow Diagrams
a. User Journey
b. Game Flow - Mockups
a. Home Page
b. Game Page - Models
a. Game - Guidelines
- Contributors