Skip to content

A Little Poker Game (Java programming lesson homework)

License

Notifications You must be signed in to change notification settings

KartaYu/Little_Poker_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Randomly give you and the computer two cards,comparing the color and number with the computer, the bigger one win!

How to win

  1. If both of you and computer got a "offsuit", comparing the biggest in your and the computer, who has bigger one who win.
    Example:
    I got : ♠5 ♠A and the computer got : ♠9 ♥7,I wins.
    alt_tag
    I got : ♥2 ♠5 and the computer got : ♠7 ♣9 ,the computer wins.
    alt_tag
    but if both of you and computer got one same number card, tie.
    Example:
    I got : ♣10 ♠A and the computer got : ♥7 ♠A ,tie.
    alt_tag
  2. If both of you and computer got a "pair", comparing number of the cards, who has bigger one who win.
    Example:
    I got : ♦Q ♣Q and the computer got : ♥8 ♣8 ,I win.
    alt_tag
  3. If both of you and computer got a "pair" with same number, comparing color of the cards, who has bigger one who win.
    Example:
    I got : ♦10 ♥10 and the computer got : ♥K ♣K ,the computer wins.
    alt_tag
  4. If one of you got a "pair",another did not, the one who got a pair who win.
    Example:
    I got : ♣6 ♠6 and the computer got : ♠4 ♥9 ,I win.
    alt_tag
    I got : ♦5 ♥K and the computer got : ♣K ♥K ,the computer wins.
    alt_tag

Java Environment

JavaSE 1.8
JRE 1.8.0_171

Development Environment

Win 10

IDE

Eclipse

Notice

Setting run configuration encoding UTF-8

Lisence

MIT Lisence

About

A Little Poker Game (Java programming lesson homework)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages