浏览代码

basic template laid out to start coding

pseudo code done, now choose one aspect of it to start programming part of the game.
wesvirus 4 年之前
父节点
当前提交
0e1f73a9c0
共有 1 个文件被更改,包括 21 次插入40 次删除
  1. 21 40
      Qwixx/qwixx.md

+ 21 - 40
Qwixx/qwixx.md

@@ -1,50 +1,31 @@
-## What is player
-> `playerCard` - has 4 different colored rows for player to mark their points
-
-## What is dice roll
-> `random` (1-6) - a random number 1 through 6, for 6 die(2 white die, 4 colored die).
-
-## What is score
-> `score` point total earned per player
-
-## What is a turn
-> 1. dice gets rolled
-> 1. Active Player chooses to score white die combo either/and/or white + color die. If no score is taken, then player chooses to score penalty.
-> 1. Other Players choose to score a white + color die or take no score.
-> 1. End of turn (score calculated and displayed to each player), check penalties, check row lockouts, new Active Player. 
-
-## End of Game
-> * Display players scores 
-> * Winner name at top
-> * New game / leave game / add player / remove player
-
-## Five Second Psudo-planation
-> It is a game. 
-
-## Fifteen Second Psudo-planation
-> It is a game. Players take turns to roll die and score points. 
-
 # Thirty Five Second pseudocode
-each player gets a card
-players take turns rolling multiple six-sided dice
-during each player's turn all players may add points to their card
-the player whose turn it is must add points to their card
-at the end of the turn the game may end if there are enough points on any players card
-the game ends
+- each player gets a card
+- players take turns rolling multiple six-sided dice
+- during each player's turn all players may add points to their card
+- the player whose turn it is must add points to their card
+- at the end of the turn the game may end if there are enough points on any players card
+- the game ends
 
 # Slightly Longer Pseudocode
 
 ## the game is set up
 - each player gets a card
-- a card has 4 colored rows numbered 2-12 with boxes for scoring
-- there are two white die, a blue, a red, a yellow and green die.
+ - called playerCard for player to mark their points
+ - has 4 different colored rows 
+ - rows are numbered 2-12 with boxes for scoring
+- there are six six-sided dice
+ - two white die, a blue, a red, a yellow and green die.
 
 ## players take turns
-1.  players take turns rolling multiple six-sided dice
-1.  during each player's turn all players may add points to their card
-1.  the player whose turn it is must add points to their card
-1.  at the end of the turn the game may end if there are enough points on any players card
-    - enough points on card are indicated by penalties or row lockouts
+1.  roll the dice
+1.  all players may add points to their card
+ - sum both white dice and optionally add points to any color on card
+1.  the player whose turn it is sums one white and one colored dice and may add points to that color on card
+1.  the player whose turn it is adds penalty if no points taken
+1.  scoring phase
+ - at the end of the turn, the game may end if there are enough points on any player's card
+     - if any one player has 4 penalties, the game is over
+     - if any 2 rows are locked out, the game is over
 
 ## the game is ended
-- the winner is congratulated
+- list the scores and indicate the winner