The rules of Trivia
Each player takes turns. In a game turn, the player rolls a dice and advances the number of spaces indicated. A question from the category corresponding to the box in which it is located is asked. If he answers correctly, he scores a point. If he’s wrong, he goes to jail. While in prison, the player cannot advance any further until he is released. He must answer a question correctly to be released. The winner is the first to score 6 points. |
Documentation versions: Classical, With animation,
Note
|
The examples shown here are generated from the source code. They therefore represent the behavior of the application at any times. Non regression is ensured by checking the absence of change in this document. Learn more here https://github.com/sfauvel/documentationtesting |
View source of project on Github
Legend
Categories
The questions asked to the players are chosen from the following categories:
-
Pop
-
Science
-
Sports
-
Rock
Board
On the board, the current player is in bold: Chet, Pat
A player who has a penalty has his name enclosed in square brackets: [Chet]
The number of points is displayed behind the player’s name: Chet ➃
Functional examples
Movements of a player
In a game turn, the player rolls a dice and advances the number of spaces indicated.
Normal move
Start of the turn Board at the start of the turn
|
Chet rolled a ⚃
Board at the start of the turn
|
Move beyond the end
If he reaches the end of the board, he continues by starting from the beginning
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
Board at the start of the turn
|
Player score
After moving, the player must answer a question corresponding to the category of the square where he is located. If he answers correctly, he scores a point.
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
Board at the start of the turn
|
✔
Chet correctly answered to Rock question Board at the start of the turn
|
Win the game
The first player to score 6 points wins the game.
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
Board at the start of the turn
|
✔
Chet correctly answered to Rock question Board at the start of the turn
|
Jail
When a player gives a wrong answer, he goes to jail. He stays in jail until he rolls an odd number.
Got to jail
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
Board at the start of the turn
|
✘
Chet incorrectly answered to Rock question Board at the start of the turn
|
Need an odd number to move
Start of the turn Board at the start of the turn
|
Chet rolled a ⚁
and is not getting out of the penalty box Board at the start of the turn
|
✘
Chet incorrectly answered to Science question Board at the start of the turn
|
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
and is getting out of penality box Board at the start of the turn
|
✘
Chet incorrectly answered to Pop question Board at the start of the turn
|
Get out of jail
When player correctly answer to a question, he goes out of jail.
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
and is getting out of penality box Board at the start of the turn
|
✔
Chet correctly answered to Rock question Board at the start of the turn
|
Player stay in penality box
When rolled is even, player stay in penality box.
Need an odd number to move
Start of the turn Board at the start of the turn
|
Chet rolled a ⚁
and is not getting out of the penalty box Board at the start of the turn
|
✘
Chet incorrectly answered to Rock question Board at the start of the turn
|
Simulation of a complete game
This is a full game from the beginning to the end when a player wins the game.
Turn 1
Start of the turn Board at the start of the turn
|
Chet rolled a ⚁
Board at the start of the turn
|
✔
Chet correctly answered to Sports question Board at the start of the turn
|
Turn 2
Start of the turn Board at the start of the turn
|
Pat rolled a ⚁
Board at the start of the turn
|
✔
Pat correctly answered to Sports question Board at the start of the turn
|
Turn 3
Start of the turn Board at the start of the turn
|
Sue rolled a ⚀
Board at the start of the turn
|
✔
Sue correctly answered to Science question Board at the start of the turn
|
Turn 4
Start of the turn Board at the start of the turn
|
Chet rolled a ⚀
Board at the start of the turn
|
✔
Chet correctly answered to Rock question Board at the start of the turn
|
Turn 5
Start of the turn Board at the start of the turn
|
Pat rolled a ⚁
Board at the start of the turn
|
✔
Pat correctly answered to Pop question Board at the start of the turn
|
Turn 6
Start of the turn Board at the start of the turn
|
Sue rolled a ⚂
Board at the start of the turn
|
✔
Sue correctly answered to Pop question Board at the start of the turn
|
Turn 7
Start of the turn Board at the start of the turn
|
Chet rolled a ⚀
Board at the start of the turn
|
✘
Chet incorrectly answered to Pop question Board at the start of the turn
|
Turn 8
Start of the turn Board at the start of the turn
|
Pat rolled a ⚂
Board at the start of the turn
|
✘
Pat incorrectly answered to Rock question Board at the start of the turn
|
Turn 9
Start of the turn Board at the start of the turn
|
Sue rolled a ⚂
Board at the start of the turn
|
✔
Sue correctly answered to Rock question Board at the start of the turn
|
Turn 10
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
and is getting out of penality box Board at the start of the turn
|
✔
Chet correctly answered to Rock question Board at the start of the turn
|
Turn 11
Start of the turn Board at the start of the turn
|
Pat rolled a ⚁
and is not getting out of the penalty box Board at the start of the turn
|
✔
Pat correctly answered to Rock question Board at the start of the turn
|
Turn 12
Start of the turn Board at the start of the turn
|
Sue rolled a ⚂
Board at the start of the turn
|
✘
Sue incorrectly answered to Sports question Board at the start of the turn
|
Turn 13
Start of the turn Board at the start of the turn
|
Chet rolled a ⚃
Board at the start of the turn
|
✔
Chet correctly answered to Rock question Board at the start of the turn
|
Turn 14
Start of the turn Board at the start of the turn
|
Pat rolled a ⚀
and is getting out of penality box Board at the start of the turn
|
✔
Pat correctly answered to Pop question Board at the start of the turn
|
Turn 15
Start of the turn Board at the start of the turn
|
Sue rolled a ⚁
and is not getting out of the penalty box Board at the start of the turn
|
✔
Sue correctly answered to Sports question Board at the start of the turn
|
Turn 16
Start of the turn Board at the start of the turn
|
Chet rolled a ⚄
Board at the start of the turn
|
✔
Chet correctly answered to Pop question Board at the start of the turn
|
Turn 17
Start of the turn Board at the start of the turn
|
Pat rolled a ⚁
Board at the start of the turn
|
✔
Pat correctly answered to Sports question Board at the start of the turn
|
Turn 18
Start of the turn Board at the start of the turn
|
Sue rolled a ⚃
and is not getting out of the penalty box Board at the start of the turn
|
✔
Sue correctly answered to Sports question Board at the start of the turn
|
Turn 19
Start of the turn Board at the start of the turn
|
Chet rolled a ⚂
Board at the start of the turn
|
✔
Chet correctly answered to Rock question Board at the start of the turn
|