A web-based poker equity calculator that simulates Texas Hold'em hands to determine winning probabilities. This application allows users to select two poker hands and calculates their respective chances of winning through Monte Carlo simulation.
- Interactive web interface with playing card emojis for card selection
- Visual poker table background
- Monte Carlo simulation with 10,000 iterations per calculation
- Supports full range of poker hand rankings:
- Royal Flush
- Straight Flush
- Four of a Kind (Quads)
- Full House
- Flush
- Straight
- Three of a Kind (Trips)
- Two Pair
- One Pair
- High Card
- Python 3.x
- Flask
- Clone the repository:
git clone https://github.com/yourusername/poker-equity-calculator.git
cd poker-equity-calculator
- Install required dependencies:
pip install flask
app.py
- Main Flask application file with routes and emoji-to-card mappingcardclass.py
- Card class implementationdeckclass.py
- Deck class for managing the card deckhandclass.py
- Hand class with poker hand evaluation logicsimulation.py
- Monte Carlo simulation implementationtemplates/index.html
- Main web interface templatestatic/styles.css
- CSS styling for the web interfacestatic/images/Table.jpg
- Poker table background image
- Start the Flask server:
python app.py
-
Open a web browser and navigate to
http://127.0.0.1:5000
-
Select cards for both hands using the dropdown menus
-
Click "Simulate" to calculate equity percentages