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

   
    
    
    

Chet rolled a

Board at the after move of the turn

    
   

Chet

    
    

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

   
    

Chet rolled a

Board at the after move of the turn

 

Chet

  
    
    
    

Player scores

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

   
    
    
    

Chet rolled a

Board at the after move of the turn

   

Chet

    
    
    

Chet correctly answered to Rock question

Board at the end of the turn

   

Chet ➀

    
    
    

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 ➄

   
    
    
    

Chet rolled a

Board at the after move of the turn

   

Chet ➄

    
    
    

Chet correctly answered to Rock question

Board at the end of the turn

   

Chet ➅

    
    
    

Chet wins the game !!!

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

   
    
    
    

Chet rolled a

Board at the after move of the turn

   

Chet

    
    
    

Chet incorrectly answered to Rock question

Board at the end of the turn

   

[Chet]

    
    
    

Need an odd number to move

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 after move of the turn

   

[Chet]

    
    
    

No question for Chet

Board at the end 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 after move of the turn

    
    
    
   

[Chet]

Chet incorrectly answered to Sports question

Board at the end of the turn

    
    
    
   

[Chet]

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]

   
    
    
    

Chet rolled a and is getting out of penality box

Board at the after move of the turn

   

[Chet]

    
    
    

Chet correctly answered to Rock question

Board at the end of the turn

   

Chet ➀

    
    
    

Player stay in penality box

When rolled is even, player stay in penality box.

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 after move of the turn

   

[Chet]

    
    
    

No question for Chet

Board at the end 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.

 
Players : Chet, Pat, Sue

Turn 1

Start of the turn

Board at the start of the turn

Chet

Pat

Sue

   
    
    
    

Chet rolled a

Board at the after move of the turn

Pat

Sue

 

Chet

 
    
    
    

Chet correctly answered to Sports question

Board at the end 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 after move of the turn

Sue

 

Chet ➀

Pat

 
    
    
    

Pat correctly answered to Sports question

Board at the end 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 after move of the turn

 

Sue

Chet ➀

Pat ➀

 
    
    
    

Sue correctly answered to Science question

Board at the end 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 after move of the turn

 

Sue ➀

Pat ➀

Chet ➀

    
    
    

Chet correctly answered to Rock question

Board at the end 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 after move of the turn

 

Sue ➀

 

Chet ➁

   

Pat ➀

    
    

Pat correctly answered to Pop question

Board at the end 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 after move of the turn

   

Chet ➁

   

Pat ➁

Sue ➀

    
    

Sue correctly answered to Pop question

Board at the end 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 after move of the turn

    
   

Chet ➁

Pat ➁

Sue ➁

    
    

Chet incorrectly answered to Pop question

Board at the end 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 after move of the turn

    
   

[Chet] ➁

Sue ➁

    
  

Pat ➁

 

Pat incorrectly answered to Rock question

Board at the end 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 after move of the turn

    
   

[Chet] ➁

    
  

[Pat] ➁

Sue ➁

 

Sue correctly answered to Rock question

Board at the end 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 after move of the turn

    
    
    
  

[Chet] ➁

[Pat] ➁

Sue ➂

 

Chet correctly answered to Rock question

Board at the end 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 after move of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

No question for Pat

Board at the end of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Turn 12

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 after move of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

No question for Pat

Board at the end of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Turn 13

Start of the turn

Board at the start of the turn

    
    
    
  

Chet ➂

[Pat] ➁

Sue ➂

 

Pat rolled a and is getting out of penality box

Board at the after move of the turn

    
    

[Pat] ➁

   
  

Chet ➂

Sue ➂

 

Pat incorrectly answered to Sports question

Board at the end of the turn

    
    

[Pat] ➁

   
  

Chet ➂

Sue ➂

 

Turn 14

Start of the turn

Board at the start of the turn

    
    

[Pat] ➁

   
  

Chet ➂

Sue ➂

 

Sue rolled a

Board at the after move of the turn

    

Sue ➂

   

[Pat] ➁

   
  

Chet ➂

 

Sue correctly answered to Rock question

Board at the end of the turn

    

Sue ➃

   

[Pat] ➁

   
  

Chet ➂

 

Turn 15

Start of the turn

Board at the start of the turn

    

Sue ➃

   

[Pat] ➁

   
  

Chet ➂

 

Chet rolled a

Board at the after move of the turn

    

Sue ➃

   

[Pat] ➁

   
 

Chet ➂

  

Chet correctly answered to Pop question

Board at the end of the turn

    

Sue ➃

   

[Pat] ➁

   
 

Chet ➃

  

Turn 16

Start of the turn

Board at the start of the turn

    

Sue ➃

   

[Pat] ➁

   
 

Chet ➃

  

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

Board at the after move of the turn

    

Sue ➃

   

[Pat] ➁

   
 

Chet ➃

  

No question for Pat

Board at the end of the turn

    

Sue ➃

   

[Pat] ➁

   
 

Chet ➃

  

Turn 17

Start of the turn

Board at the start of the turn

    

Sue ➃

   

[Pat] ➁

   
 

Chet ➃

  

Pat rolled a and is getting out of penality box

Board at the after move of the turn

   

[Pat] ➁

Sue ➃

   
    
 

Chet ➃

  

Pat correctly answered to Rock question

Board at the end of the turn

   

Pat ➂

Sue ➃

   
    
 

Chet ➃

  

Turn 18

Start of the turn

Board at the start of the turn

   

Pat ➂

Sue ➃

   
    
 

Chet ➃

  

Sue rolled a

Board at the after move of the turn

  

Sue ➃

Pat ➂

    
    
 

Chet ➃

  

Sue correctly answered to Sports question

Board at the end of the turn

  

Sue ➄

Pat ➂

    
    
 

Chet ➃

  

Turn 19

Start of the turn

Board at the start of the turn

  

Sue ➄

Pat ➂

    
    
 

Chet ➃

  

Chet rolled a

Board at the after move of the turn

  

Sue ➄

Pat ➂

    
    

Chet ➃

   

Chet correctly answered to Science question

Board at the end of the turn

  

Sue ➄

Pat ➂

    
    

Chet ➄

   

Turn 20

Start of the turn

Board at the start of the turn

  

Sue ➄

Pat ➂

    
    

Chet ➄

   

Pat rolled a

Board at the after move of the turn

  

Sue ➄

 
   

Pat ➂

    

Chet ➄

   

Pat correctly answered to Pop question

Board at the end of the turn

  

Sue ➄

 
   

Pat ➃

    

Chet ➄

   

Turn 21

Start of the turn

Board at the start of the turn

  

Sue ➄

 
   

Pat ➃

    

Chet ➄

   

Sue rolled a

Board at the after move of the turn

    
   

Pat ➃

Sue ➄

    

Chet ➄

   

Sue incorrectly answered to Pop question

Board at the end of the turn

    
   

Pat ➃

[Sue] ➄

    

Chet ➄

   

Turn 22

Start of the turn

Board at the start of the turn

    
   

Pat ➃

[Sue] ➄

    

Chet ➄

   

Chet rolled a

Board at the after move of the turn

 

Chet ➄

  
   

Pat ➃

[Sue] ➄

    
    

Chet correctly answered to Science question

Board at the end of the turn

 

Chet ➅

  
   

Pat ➃

[Sue] ➄

    
    

Chet wins the game !!!