GithubHelp home page GithubHelp logo

blackjackai's Introduction

BlackjackAI

AI for ICS4UE software engineering project.

blackjackai's People

Contributors

ecnivo avatar aigis87 avatar

Watchers

James Cloos avatar  avatar Felix Sung avatar  avatar

blackjackai's Issues

Replace perfect threshold/calculation

Replace it with something to calculate double downs. For double down, set a leeway constant, and from that many numbers to 21, if the chance of getting a total that's in the leeway, then double down

Eg leeway = 4, so calculate the chance of getting a card that's between 17 and 21, and compare that to the threshold (eg 22% of getting anything between 17 and 21, and the threshold is 15%) then double down.

Create a UI window for stats & monitoring

When launching:
Prompt for IP and port number
Prompt for thresholds to use

During game:
Current cards
current action
Dealer's cards
Win/loss ratio
Percentage wins and losses
The threshold in use
Percent deviation from observed average (if time permits!)
Round number (how many rounds have passed)
Coins

ActionSelector reorganization

The current structure is... dare I say, a bit messy.

When decideMove is called, check if it's the first move by seeing how many cards you have (if there's more than two, then it's not your first move!)
If it's your first move, then do actions like checking for pairs or aces, and also double down protocol. If it's double down or aces (something special for those cases (second or third charts)), then just return whatever it is.
If it's not your first move (but don't use an else!), then use the first chart and do actions based on that.

As well, in terms of integrating card counting and other probabilities, you could call the method in different places depending on the chart that is being used... I'll do more work on it during the weekend.

Update IO

The current IO protocol is pretty outdated; update!

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.