Giter Club home page Giter Club logo

blackjack-server's People

Contributors

barbaraguo avatar bimde avatar pcjl avatar xuwilliam01 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

xuwilliam01

blackjack-server's Issues

Shuffle cards more often

@Netdex is using the first four cards + our code to determine the seed used for Collections#shuffle and predict the following cards. This gives his team an unfair advantage over other players.

To fix this we could shuffle the cards (without reloading the already used ones) after each turn or at another, quicker interval.

--Thank you @ecnivo for the tip. See issue #39.

Quit protocol?

If a client wants to leave, do they send any 'soft disconnect' protocol, or does hitting the red square work too?

Multiple games (details below)

Accept sockets in a central server with arraylist of server objects. If player specifies play then place player in new lobby. If player specifies spectate then send back # of active active games and user returns index of game they want.

'title' broadcasts

For example, after you broadcast the block of players' bets, broadcast a message that signals the end of that block, and the start of the next block.

Server card broadcast

Server should broadcast the dealer's first card before dealing any cards to any players, because some decisions can be based off of the current card the dealer has.

However, the other cards (face down card, and others that are drawn until dealer reaches 17) can be broadcasted later, because those are not important.

Betting and client's coins

If a client's number of coins drops below 10, just kick them off as if they've lost. They can't bet anything anyway in the next round.

Remove waiting?

Make a version for AIs that remove sleeps, so that I don't have to wait twenty minutes for a single game to complete?

Dealer blackjack condition

When the dealer blackjacks, I take it you calculate that when you "deal yourself" the card.

BUT can you at least first let all the players take turns and do their thing, because I have no idea how to deal with not being asked by the dealer for % playerNo turn... I mean, I could totally just put a goto but https://goo.gl/dA2hTy

EDIT (from Bimesh): This is also a problem because the player should still win if they get a blackjack (even if the dealer gets a blackjack).

Hit/doubledown protocol?

When it's a client's turn, the client says "hit" or "double down", are they replied by the server by a "# 0 rank suit" message by the server?

Shuffle protocol

Can the shuffle protocol be changed, so that it's not whether or not the line exists, but something like:
"% SHUFFLE" and "% NOSHUFFLE"?

It's easier for doing checks and not as much of a headache.

Shuffle

Is shuffle going to be at the end of each round (if it's going to be done in that instance?)

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.