Giter VIP home page Giter VIP logo

python_poker's Introduction

Python Poker Terminal Game Project

This project is to create a terminal program on python for https://www.codecademy.com as part of my Portfolio Project: Python Terminal Game project.

To start the program, type in the shell python main.py

One reason for making this was that I wanted to see how the math works in ranking poker hands. I wrote code to determine the hand rankings based on the highest frequency numbered cards (Including the second highest frequency numbered card involving Two Pair or a Full House), or if the hand is a Straight (sequentially numbered cards), or a Flush (all the same suit).

Another reason for making this was to try to make "Computer AI" to replace their cards for better hand rankings, and set probabilities of actions in poker (Such as Folding, Betting, Raising, Calling, and Checking), based on their current hand. There is no concept of money involved in the program, you can freely do the poker actions above.

I have used the following resources to try to make this program: https://www.youtube.com/watch?v=ue8aWitj_mk https://en.wikipedia.org/wiki/List_of_poker_hands

Here is a screenshot of the program:

In conclusion, I had fun making this. There were some game logic errors I had to fix and python-related errors (Such as misnaming class fields or using type objects improperly) throughout the program. Regardless, this was an interesting project to try to make.

python_poker's People

Contributors

cornsnek 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.