GithubHelp home page GithubHelp logo

dqsdhr / blackjack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jordansegalman/blackjack

0.0 0.0 0.0 1.07 MB

Multiplayer Blackjack card game server and client

License: MIT License

Java 100.00%

blackjack's Introduction

Blackjack

This is a multiplayer Blackjack card game with a server and client. The server acts as the house and creates new tables for players to join through the client. Every player starts with a certain amount of money and must place a minimum bet each round. Players can leave after each round or will be kicked out when they do not have enough money to place the minimum bet. The dealer hits on a soft 17. All other rules are standard Blackjack rules.

How to Play

Follow these instructions to play Blackjack. It can be played singleplayer by running both the server and client on the same computer, or multiplayer by running the server on one computer and clients on others using the server address option listed below.

Prerequisites

  • Java SE 9

Running

To run the server and client, navigate to the directory containing the JAR files and enter the following commands. The server must be started before the client.

java -jar BlackjackServer.jar

java -jar BlackjackClient.jar

Options

Options that can be used when running the server and client are listed below. None of the options are required to run the server or client.

Server

-p serverPort

  • Port to run the server on.
  • Default: 44444

-t playersPerTable

  • Specifies the number of players per table.
  • Default: 1

-m startingMoney

  • Specifies the amount of money players start with.
  • Default: 2500

-b minimumBet

  • Specifies the minimum bet players must place.
  • Default: 500

-d numberOfDecks

  • Specifies the number of decks in the shoe.
  • Default: 6

-c minimumCardsBeforeShuffle

  • Specifies the minimum number of cards remaining before shuffling the shoe.
  • Default: 78

Client

-a serverAddress

  • Server IP address to connect to.
  • Default: localhost

-p serverPort

  • Server port to connect to.
  • Default: 44444

Screenshots

Player Turn

Round Outcome

License

This project is licensed under the MIT License. See the LICENSE.md file for details.

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.