1 / 4

Centinel tournament

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)

strongl
Télécharger la présentation

Centinel tournament

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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

More Related