https://github.com/wolff01/gaimble
https://github.com/wolff01/gaimble
gpt-4 json openai python
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wolff01/gaimble
- Owner: wolff01
- License: mit
- Created: 2024-10-18T17:52:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-06T03:09:21.000Z (about 1 year ago)
- Last Synced: 2025-09-05T05:35:14.693Z (10 months ago)
- Topics: gpt-4, json, openai, python
- Language: Python
- Homepage:
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
- Citation: citation.cff
Awesome Lists containing this project
README
# gAImble
This Python application simulates a simplified game of Blackjack and leverages multiple LLMs (Gemini, GPT, and Claude) to recommend a move—Hit, Stand, Split, Double Down, or Surrender—based on your initial hand and the dealer's card.
## Features
Prompt Large Language Models (LLMs) to make decisions using realistic blackjack rules.
Stores each model's decision, reasoning, and input cards into a local SQLite database.
Supports models via LiteLLM for unified inference.
### Required packages:
litellm
python-dotenv
sqlite3 (built-in with Python)
re, json, datetime (built-in)
## Notes
Currently, the system assumes two-card player hands and one dealer card.
LLM behavior may vary slightly depending on their internal knowledge and version.
You can expand the database schema or logic to simulate full hands and track game outcomes.
## License
MIT License. See LICENSE file for details.