Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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 :)