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

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 4 Click to start

Start of the turn

Board at the start of the turn

Chet

   
    
    
    

Chet rolled a

Board at the start of the turn

    
   

Chet

    
    

Move beyond the end

If he reaches the end of the board, he continues by starting from the beginning

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 3 Click to start

Start of the turn

Board at the start of the turn

    
    

Chet

   
    

Chet rolled a

Board at the start of the turn

 

Chet

  
    
    
    

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.

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 3 Question Rock... Chet correctly answered to Rock question Click to start

Start of the turn

Board at the start of the turn

Chet

   
    
    
    

Chet rolled a

Board at the start of the turn

   

Chet

    
    
    

Chet correctly answered to Rock question

Board at the start of the turn

   

Chet ➀

    
    
    

Win the game

The first player to score 6 points wins the game.

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 3 Question Rock... Chet correctly answered to Rock question Chet wins the game !!! Click to start

Start of the turn

Board at the start of the turn

Chet ➄

   
    
    
    

Chet rolled a

Board at the start of the turn

   

Chet ➄

    
    
    

Chet correctly answered to Rock question
Chet wins the game !!!

Board at the start of the turn

   

Chet ➅

    
    
    

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

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 3 Question Rock... Chet incorrectly answered to Rock question Click to start

Start of the turn

Board at the start of the turn

Chet

   
    
    
    

Chet rolled a

Board at the start of the turn

   

Chet

    
    
    

Chet incorrectly answered to Rock question

Board at the start of the turn

   

[Chet]

    
    
    

Need an odd number to move

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 2 and is not getting out of the penalty box Question Science... Chet incorrectly answered to Science question Start of the turn Chet rolled a 3 and is getting out of penality box Question Pop... Chet incorrectly answered to Pop question Click to start

Start of the turn

Board at the start of the turn

 

[Chet]

  
    
    
    

Chet rolled a and is not getting out of the penalty box

Board at the start of the turn

 

[Chet]

  
    
    
    

Chet incorrectly answered to Science question

Board at the start of the turn

 

[Chet]

  
    
    
    

Start of the turn

Board at the start of the turn

 

[Chet]

  
    
    
    

Chet rolled a and is getting out of penality box

Board at the start of the turn

    
   

[Chet]

    
    

Chet incorrectly answered to Pop question

Board at the start of the turn

    
   

[Chet]

    
    

Get out of jail

When player correctly answer to a question, he goes out of jail.

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 3 and is getting out of penality box Question Rock... Chet correctly answered to Rock question Click to start

Start of the turn

Board at the start of the turn

[Chet]

   
    
    
    

Chet rolled a and is getting out of penality box

Board at the start of the turn

   

[Chet]

    
    
    

Chet correctly answered to Rock question

Board at the start of the turn

   

Chet ➀

    
    
    

Player stay in penality box

When rolled is even, player stay in penality box.

Need an odd number to move

0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 Start of the turn Chet rolled a 2 and is not getting out of the penalty box Question Rock... Chet incorrectly answered to Rock question Click to start

Start of the turn

Board at the start of the turn

   

[Chet]

    
    
    

Chet rolled a and is not getting out of the penalty box

Board at the start of the turn

   

[Chet]

    
    
    

Chet incorrectly answered to Rock question

Board at the start of the turn

   

[Chet]

    
    
    

Simulation of a complete game

This is a full game from the beginning to the end when a player wins the game.

 

0 1 2 3 4 5 6 0 1 2 3 4 5 6 0 1 2 3 4 5 6 Game start ! 1 2 3 4 5 6 *Turn 1* Start of the turn Chet rolled a 2 Question Sports... Chet correctly answered to Sports question ___ *Turn 2* Start of the turn Pat rolled a 2 Question Sports... Pat correctly answered to Sports question ___ *Turn 3* Start of the turn Sue rolled a 1 Question Science... Sue correctly answered to Science question ___ *Turn 4* Start of the turn Chet rolled a 1 Question Rock... Chet correctly answered to Rock question ___ *Turn 5* Start of the turn Pat rolled a 2 Question Pop... Pat correctly answered to Pop question ___ *Turn 6* Start of the turn Sue rolled a 3 Question Pop... Sue correctly answered to Pop question ___ *Turn 7* Start of the turn Chet rolled a 1 Question Pop... Chet incorrectly answered to Pop question ___ *Turn 8* Start of the turn Pat rolled a 3 Question Rock... Pat incorrectly answered to Rock question ___ *Turn 9* Start of the turn Sue rolled a 3 Question Rock... Sue correctly answered to Rock question ___ *Turn 10* Start of the turn Chet rolled a 3 and is getting out of penality box Question Rock... Chet correctly answered to Rock question ___ *Turn 11* Start of the turn Pat rolled a 2 and is not getting out of the penalty box Question Rock... Pat correctly answered to Rock question ___ *Turn 12* Start of the turn Sue rolled a 3 Question Sports... Sue incorrectly answered to Sports question ___ *Turn 13* Start of the turn Chet rolled a 4 Question Rock... Chet correctly answered to Rock question ___ *Turn 14* Start of the turn Pat rolled a 1 and is getting out of penality box Question Pop... Pat correctly answered to Pop question ___ *Turn 15* Start of the turn Sue rolled a 2 and is not getting out of the penalty box Question Sports... Sue correctly answered to Sports question ___ *Turn 16* Start of the turn Chet rolled a 5 Question Pop... Chet correctly answered to Pop question ___ *Turn 17* Start of the turn Pat rolled a 2 Question Sports... Pat correctly answered to Sports question ___ *Turn 18* Start of the turn Sue rolled a 4 and is not getting out of the penalty box Question Sports... Sue correctly answered to Sports question ___ *Turn 19* Start of the turn Chet rolled a 3 Question Rock... Chet correctly answered to Rock question Chet wins the game !!! ___ Click to start

Turn 1

Start of the turn

Board at the start of the turn

Chet

Pat

Sue

   
    
    
    

Chet rolled a

Board at the start of the turn

Pat

Sue

 

Chet

 
    
    
    

Chet correctly answered to Sports question

Board at the start of the turn

Pat

Sue

 

Chet ➀

 
    
    
    

Turn 2

Start of the turn

Board at the start of the turn

Pat

Sue

 

Chet ➀

 
    
    
    

Pat rolled a

Board at the start of the turn

Sue

 

Chet ➀

Pat

 
    
    
    

Pat correctly answered to Sports question

Board at the start of the turn

Sue

 

Chet ➀

Pat ➀

 
    
    
    

Turn 3

Start of the turn

Board at the start of the turn

Sue

 

Chet ➀

Pat ➀

 
    
    
    

Sue rolled a

Board at the start of the turn

 

Sue

Chet ➀

Pat ➀

 
    
    
    

Sue correctly answered to Science question

Board at the start of the turn

 

Sue ➀

Chet ➀

Pat ➀

 
    
    
    

Turn 4

Start of the turn

Board at the start of the turn

 

Sue ➀

Chet ➀

Pat ➀

 
    
    
    

Chet rolled a

Board at the start of the turn

 

Sue ➀

Pat ➀

Chet ➀

    
    
    

Chet correctly answered to Rock question

Board at the start of the turn

 

Sue ➀

Pat ➀

Chet ➁

    
    
    

Turn 5

Start of the turn

Board at the start of the turn

 

Sue ➀

Pat ➀

Chet ➁

    
    
    

Pat rolled a

Board at the start of the turn

 

Sue ➀

 

Chet ➁

   

Pat ➀

    
    

Pat correctly answered to Pop question

Board at the start of the turn

 

Sue ➀

 

Chet ➁

   

Pat ➁

    
    

Turn 6

Start of the turn

Board at the start of the turn

 

Sue ➀

 

Chet ➁

   

Pat ➁

    
    

Sue rolled a

Board at the start of the turn

   

Chet ➁

   

Pat ➁

Sue ➀

    
    

Sue correctly answered to Pop question

Board at the start of the turn

   

Chet ➁

   

Pat ➁

Sue ➁

    
    

Turn 7

Start of the turn

Board at the start of the turn

   

Chet ➁

   

Pat ➁

Sue ➁

    
    

Chet rolled a

Board at the start of the turn

    
   

Chet ➁

Pat ➁

Sue ➁

    
    

Chet incorrectly answered to Pop question

Board at the start of the turn

    
   

[Chet] ➁

Pat ➁

Sue ➁

    
    

Turn 8

Start of the turn

Board at the start of the turn

    
   

[Chet] ➁

Pat ➁

Sue ➁

    
    

Pat rolled a

Board at the start of the turn

    
   

[Chet] ➁

Sue ➁

    
  

Pat ➁

 

Pat incorrectly answered to Rock question

Board at the start of the turn

    
   

[Chet] ➁

Sue ➁

    
  

[Pat] ➁

 

Turn 9

Start of the turn

Board at the start of the turn

    
   

[Chet] ➁

Sue ➁

    
  

[Pat] ➁

 

Sue rolled a

Board at the start of the turn

    
   

[Chet] ➁

    
  

[Pat] ➁

Sue ➁

 

Sue correctly answered to Rock question

Board at the start of the turn

    
   

[Chet] ➁

    
  

[Pat] ➁

Sue ➂

 

Turn 10

Start of the turn

Board at the start of the turn

    
   

[Chet] ➁

    
  

[Pat] ➁

Sue ➂

 

Chet rolled a and is getting out of penality box

Board at the start of the turn

    
    
    
  

[Chet] ➁

[Pat] ➁

Sue ➂

 

Chet correctly answered to Rock question

Board at the start of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Turn 11

Start of the turn

Board at the start of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Pat rolled a and is not getting out of the penalty box

Board at the start of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Pat correctly answered to Rock question

Board at the start of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Turn 12

Start of the turn

Board at the start of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Sue rolled a

Board at the start of the turn

    
    

Sue ➂

   
  

Chet ➂

[Pat] ➁

 

Sue incorrectly answered to Sports question

Board at the start of the turn

    
    

[Sue] ➂

   
  

Chet ➂

[Pat] ➁

 

Turn 13

Start of the turn

Board at the start of the turn

    
    

[Sue] ➂

   
  

Chet ➂

[Pat] ➁

 

Chet rolled a

Board at the start of the turn

    

Chet ➂

   

[Sue] ➂

   
  

[Pat] ➁

 

Chet correctly answered to Rock question

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
  

[Pat] ➁

 

Turn 14

Start of the turn

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
  

[Pat] ➁

 

Pat rolled a and is getting out of penality box

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
 

[Pat] ➁

  

Pat correctly answered to Pop question

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
 

Pat ➂

  

Turn 15

Start of the turn

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
 

Pat ➂

  

Sue rolled a and is not getting out of the penalty box

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
 

Pat ➂

  

Sue correctly answered to Sports question

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
 

Pat ➂

  

Turn 16

Start of the turn

Board at the start of the turn

    

Chet ➃

   

[Sue] ➂

   
 

Pat ➂

  

Chet rolled a

Board at the start of the turn

    
   

Chet ➃

[Sue] ➂

   
 

Pat ➂

  

Chet correctly answered to Pop question

Board at the start of the turn

    
   

Chet ➄

[Sue] ➂

   
 

Pat ➂

  

Turn 17

Start of the turn

Board at the start of the turn

    
   

Chet ➄

[Sue] ➂

   
 

Pat ➂

  

Pat rolled a

Board at the start of the turn

    
   

Chet ➄

Pat ➂

[Sue] ➂

   
    

Pat correctly answered to Sports question

Board at the start of the turn

    
   

Chet ➄

Pat ➃

[Sue] ➂

   
    

Turn 18

Start of the turn

Board at the start of the turn

    
   

Chet ➄

Pat ➃

[Sue] ➂

   
    

Sue rolled a and is not getting out of the penalty box

Board at the start of the turn

    
   

Chet ➄

Pat ➃

[Sue] ➂

   
    

Sue correctly answered to Sports question

Board at the start of the turn

    
   

Chet ➄

Pat ➃

[Sue] ➂

   
    

Turn 19

Start of the turn

Board at the start of the turn

    
   

Chet ➄

Pat ➃

[Sue] ➂

   
    

Chet rolled a

Board at the start of the turn

    
    

Pat ➃

[Sue] ➂

   
  

Chet ➄

 

Chet correctly answered to Rock question
Chet wins the game !!!

Board at the start of the turn

    
    

Pat ➃

[Sue] ➂

   
  

Chet ➅