Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hesamsheikh/flappy-gpt
GPT as Game Engine to Run Flappy Bird
https://github.com/hesamsheikh/flappy-gpt
Last synced: 8 days ago
JSON representation
GPT as Game Engine to Run Flappy Bird
- Host: GitHub
- URL: https://github.com/hesamsheikh/flappy-gpt
- Owner: hesamsheikh
- Created: 2024-04-13T13:54:50.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-13T18:38:24.000Z (9 months ago)
- Last Synced: 2024-04-14T04:30:23.842Z (9 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🦜 Flappy Bird GPT Game Engine
![](assets/demo.png)A demo of using GPT-4/ChatGPT as a game engine for running Flappy Bird. It encodes the state of the game using '0' for empty spaces, '|' for pipes and '>' for the bird.
## Instructions
1. Install required libraries:
`pip install -r requirements.txt`
2. Make a `.env` file with the below format and use your own OpenAI API KEY:
`OPENAI_API_KEY=[YOUR-OWN-KEY]`
3. Run the `main.py` file.## Improvements
The games doesn't really work, at least in a logical manner. Here are some possible improvements:
- Prompt Engineering: GPT has a hard time generating states of the game that are presistant with the previous state and also follow the rules of the game.
- Screen for Dead: If the bird dies, the program exists with an error. Proper error handling along with a good screen visualization is needed.