Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xihajun/whack-a-mole
Whack a mole Game (python implementation)
https://github.com/xihajun/whack-a-mole
game python reinforcement-learning
Last synced: about 2 months ago
JSON representation
Whack a mole Game (python implementation)
- Host: GitHub
- URL: https://github.com/xihajun/whack-a-mole
- Owner: xihajun
- Created: 2022-02-03T01:35:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T21:14:56.000Z (about 1 year ago)
- Last Synced: 2024-01-09T22:34:26.021Z (about 1 year ago)
- Topics: game, python, reinforcement-learning
- Language: Python
- Homepage:
- Size: 349 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Whack a mole
[[math report]](http://xihajun.com/onedrive/report.pdf)
![FullSizeRender](https://user-images.githubusercontent.com/25631641/152318428-fdd232f4-6fda-40d7-9340-ed5bab306d46.gif)
The scripts worked on python `3.x`. Please install the requirements: `pip install -r requirements.txt`
# How to play
```
python code/game.py
# note that you need to assign the size of the game
# size of the game:5
```## How to do reinforcement learning
```
cd code
python run_RL.py
```## How to train reinforcement learning
```
cd code
python train_RL.py
```## Note
Remember to change the SIZE for the scirpts of RL. SIZE is all you need :)