GithubHelp home page GithubHelp logo

little_poker_game's Introduction

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

little_poker_game's People

Contributors

kartayu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.