Presentation is loading. Please wait.

Presentation is loading. Please wait.

Term Project: Poker Game

Similar presentations


Presentation on theme: "Term Project: Poker Game"— Presentation transcript:

1 Term Project: Poker Game
Introduction to Digital System and Microprocessor Design DICE Lab. Creative IT Engineering May 2, 2017 1/8

2 Simple Poker Game Simple Poker Game
Card (No information of suit) 4 Same Cards for each number Poker Hand Ranking (6 kinds) One Pair, Two Pair, Three of a kind, Straight, Full House, Four of a kind 2 individual cards & 3 common cards Using I/O : Button Switch, Bus Switch, LED, 7-Segment Games with computer on 1 FPGA Board 2/8

3 Game Rule Game Rule Push ‘RESET’ button
Open 7 cards by pushing ‘DEBUG OPEN’ or ‘RANDOM OPEN’ button Open one card by push one button Judge the game by pushing ‘JUDGE’ button Show only the winner’s cards DRAW case: show all the players’ cards If push ‘OPPONENT’S STATUS’ button, show opponent’s poker hand ranking. Case: 2 card for user, 3 card for common, 1 card for opponent are opened Show the status of poker hand ranking with 4 cards for opponent Poker Hand Ranking Four of a kind : 4 cards have same number Full house : 3 cards have same number & the other 2 cards have same number Straight : 5 cards have consecutive number (A can be 1 or 14) Three of a kind : 3 cards have same number Two Pair : 2 cards have same number & other 2 cards have same number One Pair : 2 cards have same number 3/8

4 Design Rule Design Rule Use 5 Button switches Use Bus switches
Reset button Random open button for playing with random cards from deck Debug open button for playing with specific cards which can be chosen by bus switch Judge button for judging the game after opening all the cards Opponent’s status button for showing the opponent’s status in that situation Use Bus switches Handle the bus switches and push debug open button Use 6 LEDs 6 LEDs can show 6 Poker Hand Ranking One Pair, Two Pair, Three of a kind, Straight, Full House, Four of a kind Use 7 7-segments 2 for your own individual cards 3 for common cards 2 for opponent’s individual cards The number of card representing one number cannot be more 4. 3/8

5 7-segment representation
Card 7-Segment A 8 2 9 3 10 4 J 5 Q 6 K 7 5/8

6 I/O Mapping 6/8 7-Segment : 7 Cards from deck LEDs :
Poker Hand Ranking Bus Switch: Choosing card number in debug mode Button Switch: Many buttons explained 6/8


Download ppt "Term Project: Poker Game"

Similar presentations


Ads by Google