Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaltsoon/poker-hand-evaluator
🃏 Poker hand evaluator
https://github.com/kaltsoon/poker-hand-evaluator
cli python
Last synced: about 1 month ago
JSON representation
🃏 Poker hand evaluator
- Host: GitHub
- URL: https://github.com/kaltsoon/poker-hand-evaluator
- Owner: Kaltsoon
- Created: 2022-04-01T10:43:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-02T11:28:53.000Z (over 2 years ago)
- Last Synced: 2023-04-06T05:12:20.218Z (almost 2 years ago)
- Topics: cli, python
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🃏 Poker hand evaluator
[![Test](https://github.com/Kaltsoon/poker-hand-evaluator/actions/workflows/test.yml/badge.svg)](https://github.com/Kaltsoon/poker-hand-evaluator/actions/workflows/test.yml)
Poker hand evaluator implemented with Python.
## How to use
Run the code with `python3 src/index.py`. The code generates a new hand and evaluates its rank.
## Running tests
1. Create a virtual environmennt by running `python3 -m venv env` and activate it by running `source env/bin/activate`.
2. Install dependencies inside the virtual environment by running `pip3 install -r requirements.txt`.
3. Inside the virtual environment run the tests with `inv test`. Coverage report can be generated with `inv coverage-report`.