GitXplorerGitXplorer
M

poker-bot

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
859e4eb388411a546adb5bca55508880e6ef25ed

remove more debug info

MMasterOdin committed 12 years ago
Unverified
353b73258e884e9a70a404e3713362ffb1530430

remove debug info

MMasterOdin committed 12 years ago
Unverified
b76bad6a3e381cadf25152717caffbd85c8f7211

Update README.md

MMasterOdin committed 12 years ago
Unverified
0319ea929ad58517ec43ec5076228e0be695218c

a

MMasterOdin committed 12 years ago
Unverified
bff1a11f92ddcc351c7fc34dd8dec9960b4c1262

Update README.md

MMasterOdin committed 12 years ago
Unverified
941f8ef17d626deae994781f1243f6789c5c51a9

added final project results

MMasterOdin committed 12 years ago

README

The README file for this repository.

poker-bot

A 2 player poker bot who learns hand values based off playing against itself.

Written for CSC 370: Artificial Intelligence

All probabilities for specific hand strengths are saved in results/ for the different parts of the game

Currently, only a very simple betting policy is in place: if below .3 probability, check or fold if below .6 probability, check or call if above .6 probability, bet
A more remarkable policy would be a future consideration

Files:
./bot.py (logic beyond bot making an action)
./card.py (basic card object for inserting into a deck)
./game.py (main game logic. allows for playing through the game)
./setup.py (logic behind setting up the bot and its data)
./main.py (actual texas hold'em game)

Currently, bet doesn't have any money attached to it

Bugs: Hand strength needs to be rewritten for all types of hands to better incorporate the idea of "almost a flush" and "almost a straight" as it might not actually match any of the other currently defined hand strengths and just be considered a "card high" which isn't exactly accurate. Additionally, a seperate case has to be written for pocket as there's a lot of variance in the two hands based on how high the two cards are, suit, etc. which the current code doesn't really account for. Look into what makes a hand strong or weak.

Final Report: A final report for the project is contained within the upload and can be seen at ./FINALREPORT.pdf