Giter VIP home page Giter VIP logo

blackjack's Introduction

Blackjack

Version 0.1

The game can be played between one player and dealer (computer) through 'main' console.

Functionalities

  • Single-player (player vs. computer)
  • Supported player actions: hit, stand
  • Player has a money balance
  • Game-flow:
     1. Player enters a stake/wager (through console)
     2. Player and dealer are dealt cards. Cards are dealt to the GamePlayers in this order: player, dealer, player
     3. Player chooses their action (hit/stand)
     4. Action Hit: player is dealt a card, and asked to choose next action
     5. Action Stand: dealer is dealt cards until hand score reaches 17 (dealer stands on Soft Ace)
     6. Scores are calculated, compared and if player is a winner, reward is given
     7. Reward: 2.0 x stake (if blackjack: 2.5 x stake)

Flaws

  • No data is saved (no database implementation)
  • Console-based game (no User Interface implementation)
  • Code isn't optimised (has warnings, game-logic isn't optimised)

blackjack's People

Contributors

vaidasthedev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blackjack's Issues

Front-end Implementation

Begin implementing front-end using JavaFX for the application. The user interface (UI) should have a welcome page with login & register functionalities.

To accommodate new functionalities of login & register, the following should be accomplished on the back-end:

  • Player object must have variables for username and password
  • Database should accommodate those variables

Database Implementation

Database implementation is required to, initially, save player's data.
DBMS to implement: PostgreSQL

Tables to create:

  • users
  • ID : int (serial)
  • name : string(25)
  • username : string(25)
  • password : string(32)
  • balance : numeric(10,2)

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.