Chris Pollett > Students > Philip

    Print View

    [Bio]

    [Blog]

    [CS 297 Proposal]

    [Del-1: Base classes for Bluff]

    [Del-2: Human only Bluff]

    [Del-3: Simple AI player]

    [Del-4: Presentation on Poker AI players]

    [Del-5: CS297 Report]

    [CS 298 Proposal]

























Deliverable 2: A Bluff Program for Human Players.

Download: Bluff_HumanOnly.zip

Description:

Rules
Bluff is a popular card game which is played with a standard 52 card trump and can be played by from 2 to 10 players. All the cards are dealt out to the players. The object is to get rid of all your cards. On the table is a discard pile, which starts empty. A turn consists of discarding one or more cards face down on the pile, and calling out their rank. The first player must discard Aces, the second player discards Twos, the next player Threes, and so on. After Tens come Jacks, then Queens, then Kings, then back to Aces, etc. Since the cards are discarded face down, you do not in fact have to play the rank you are calling.

For example if it is your turn to discard Sevens, you may actually discard any card or mixture of cards. ie, if you do not have any Sevens you will be forced to play some other card or cards.

Any player who suspects that the card(s) discarded by a player do not match the rank called can challenge the play by calling "Bluff". Then the cards played by the challenged player are exposed and one of two things happens:
If the cards are all of the rank that was called, the challenge is false, and the challenger must pick up the whole discard pile; If any of the played cards is different from the called rank, the challenge is correct, and the person who played the cards must pick up the whole discard pile. After the challenge is resolved, play continues normally: the player to the left of the one who was challenged plays and calls the next rank in sequence. The first player to get rid of all their cards and survive any challenge resulting from their final play wins the game.

How to play
1. Download the .zip file attached (Bluff_HumanOnly.zip)
2. Unzip and Import the project into Eclipse using "Import existing projects into Workspace". Then click Run.
3. The console would display the following:

Choose Game Mode (1-4)
1.Human-Computer 2.Computer-Computer 3.Human solo 4.Exit
Input 3 to play or 4 to exit.

4. Next it asks for the total number of players in the game:" Enter the number of human players: ".
5. Afterwards It simply asks for the location of the cards to be dealt from the hand for each player.