Giter Club home page Giter Club logo

letsplayblackjack's Introduction

Blackjack Game Simulation

Simulation of the popular card game, BlackJack, that can be played on the command console and as a Discord bot.

User Manual

The game will start you with $10,000 and you need to make a bet on the next round against the computer. Each round starts with you getting two cards and the computer getting two cards. The goal is to get the sum of your cards closest to 21 without going over. You can ask for another card if your total is under 21 by typing H(hit/add another card to hand) or S( to stay). If the sum of your cards is closer to 21 (than the sum of the computer’s cards), your bet is added to your total. If you don’t get closer or go over 21, then the bet is subtracted.

Usage

Discord bot:

  1. Create a text channel named 'blackjack'. Make sure no other bots have permissions in this channel.

  2. Invite the discord bot to your server using this link: https://discord.com/api/oauth2/authorize?client_id=789302578890276906&permissions=523344&scope=bot.

  3. Type !create in the 'blackjack' channel to create your account and start playing.

  4. Type !help menu to prompt all the types of commands that you can use when playing the game.

Command-line implementation:

  1. Download blackjack3.jar (can be found in the command-line-implementation folder).

  2. Open a terminal or command prompt and navigate to the folder where you downloaded the .jar file.

  3. Type java -jar blackjack3.jar to play the game. If it doesn't work, make sure that you have java downloaded (https://www.java.com/en/)

Sample gameplay

Discord bot:

Screen Shot 2022-06-22 at 3 51 39 PM

Command-line implementation:

Screen Shot 2022-06-22 at 3 53 35 PM

Author

Chidvi Doddi

letsplayblackjack's People

Contributors

doddic avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

stewart313

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.