Download presentation
Presentation is loading. Please wait.
1
Centinel tournament ● A deck: the numbers 1..50 in random order ● A game lasts until no numbers are left in deck ● A game is played like this (first player is picked at random): – Player1 vs. dealer (player takes numbers first, then dealer) – All players are updated on the numbers taken by the dealer – All other players are updated on the numbers taken by the current player – Next player vs. dealer – Etc. ● If no more cards, the player stays (the dealer gets 0). Next game begins with next player and new deck.
2
Details ● Before each game newgame is called in all player objects ● When a player is given a new number, give is called with the number as argument ● When the dealer has taken numbers, the numbers are reported to all player objects through update ● When a player has taken numbers, the update method is called in all other player objects with the list of numbers taken ● A tournament lasts 100 games
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.