Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sireliah/popiel-android
Conceptual game about the Popiel and the mice legend
https://github.com/sireliah/popiel-android
algorithm game genetic kivent python
Last synced: 3 days ago
JSON representation
Conceptual game about the Popiel and the mice legend
- Host: GitHub
- URL: https://github.com/sireliah/popiel-android
- Owner: sireliah
- Created: 2017-01-14T20:36:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:44:08.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T07:35:56.458Z (7 months ago)
- Topics: algorithm, game, genetic, kivent, python
- Language: Python
- Homepage:
- Size: 515 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Popiel for Android
Conceptual game featuring simple genetic algorithm for enemy behaviour.
Background for the game is the Slavic legend of the Popiel that was consumed by mice.
![popiel1](https://user-images.githubusercontent.com/17201781/38773707-cc3b8e78-4053-11e8-84e1-f38f00180a44.png)
# How to install?
First install requirements.
```
virtualenv -p python3.6 venv
source venv/bin/activate
pip3 install -r requirements.txt
```
One of the requirements is Kivent lib. The best way is to install it from source.
```
git clone https://github.com/kivy/kivent
cd kivent/modules/core
python3 setup.py install
```
The game uses Cython modules, so compile them first.
```
cd popiel-android
python3 setup.py install
```
When everything is ready, you can start the game!
```
python3 main.py
```
# Mice behaviour
1. Mice record their way through the level and the best result (how far they have gone on the x axis divided by number of steps).
2. The next generation of mice inherit the result with the best score.
3. Mice with no inherited strategy are introduced randomly to the populaton to enrich the list of strategies.