Giter Site home page Giter Site logo

poker's People

Contributors

bholmes117 avatar commanderxolotl avatar courtneyahaus avatar nhabbott avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

alan-ou

poker's Issues

An internal trigger that reshuffles the decks when less than 25% of the cards are left

I am leaving the code to reshuffle the decks, but need help figuring out how to do it at 25% of deck length 52*3 is 156, 156/4 is approximately 39 cards so would we replace the 52 with the 39?
private static int [] shuffleDeck(int [] deck) {
for (int i = 0; i < 1000; i++) {
int a =(int)(Math.random()*100) % 52;
int b =(int)(Math.random()*100) % 52;
int temp = deck[a];
deck[a] = deck[b];
deck[b] = temp;
}
return deck;
}

This was used during our black jack shuffle of the deck. I can send the whole code if this is confusing.

Animation for "Big" Wins

List of Wins from smallest to largest:
Pair
Three of a kind
Straight (cards in a row)
Flush (cards of same suit)
Full House (one pair and one three of a kind)
Four of a Kind
Straight Flush (Five cards in a row of the same suit)
Royal Flush (Five Cards AKQJ and 10 of same suit)

The Game...

We seemed to have overlooked the actual game and its logic... So I'm adding an issue to remind everyone.

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.