Giter VIP home page Giter VIP logo

elevens-card-game's Introduction

Elevens-Card-Game

A classic card game of Elevens implemented in Java

First, set up the game by shuffling the deck and then laying nine cards face up while the others in a pile face down as the draw-deck. Start the game by removing any two cards with face values that add up to 11, or a set of one Jack, one Queen and one King. Discard them into the used pile. Next, draw two (or three, if a set of JQK was removed previously) new cards and replace the discarded ones so there are always nine cards facing up, unless the draw-deck is empty and there are no more un-discarded cards left. Repeatedly do this until there are either no cards left and the player has won the game or when there is nothing that can be removed/discarded, resulting in a loss.

The game does not involve any strategy, it is fully based on luck. Even though sometimes there may be more than one move that can be done each turn, but it doesn’t matter what order you do them in. Ultimately, it is the “replacing” step that determine the player’s fate and there’s no way for the player to predict what cards are coming next. Every card pairs up with another on a 1 to 1 ratio, so there is no way to calculate or strategize a way to win.

elevens-card-game's People

Contributors

yolandayyu avatar

Stargazers

 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.