GithubHelp home page GithubHelp logo

baccarat's Introduction

Baccarat

Date 3/7/2022

By: David Wu


Description

Baccarat is a compare game where the "Banker" and the "Player" are dealt two cards each. The total value of the cards are used to determine if either will draw a third card. If no card is drawn, then the hand with the high value will win. If the conditions are met for a third card is drawn, then the comparison will be done after third card is drawn. If both values are the same, then the outcome is a tie. The total is calculated by adding the value of the cards, where "Ace" through "9" is worth their numeric value and "10", "Jack", "Queen", "King" are worth 10, and then only using the last digit as the total value of the hand. The game is played by betting on the outcome of each hand. "Player" bets are paid 1 to 1. "Banker" bets have to pay a 5% commission. "Tie" bets are padi 8 to 1.

A brief description of the project...

This project is based on the card game played at casinos with the same name. I will be using Axios and deck of cards api to make a virtual shoe consisting of 8 decks of cards. Images of cards and the drawing of cards will also be done. The game table will be pretty basic consisting of divs. I will be using mostly if/else statements for game logic and DOM manipulation to change card images and display messages.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • Axios

Getting Started

  • Set up basic table with divs and buttons
  • Set up variables to keep track of components of the game
  • Plan out game flow.
  • Write functions for each game flow
  • If time permits add Dragon/Bonus

Development Progress can be viewed here

Final Project can be viewed here


ScreenShots

iPhone View

iPhone View

iPad View

iPad View

Laptop View

Laptop View

Desktop View

Desktop View

Rules

Rules


Future Updates

- [X] Add Responsiveness

  • Add Bonus Feature like Dragon/Panda

Credits

Deck of Cards API: (https://deckofcardsapi.com)

baccarat's People

Contributors

dwu621 avatar

Watchers

 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.