the game, which player gathers coins
requipments : pygame # sdl game_engine wrapper for python
$ pip install pygame
$ python game.py
requipments : chainer # and some dependments
$ pip install chainer # and some dependments
$ python neuralnet_ai.py
example of ai_lib
using 4-layer neural network, the sample model to gain actions.
more detils : documents/neuralnet_ai (Japanese)
touching this to understand this game.
name | shape | works |
---|---|---|
player | blue rect | player |
wall | broun rect | make player reflected |
warmhole | green rect | make player worped |
coin | black->pink (rect) | object to gather |
1.using arrow keys
, move to where coins were placed.
1.while player touches coin, the color of coins are changed
1.after touch them for awhile, coin appears next place.
1.repeat it
1.z
key to give up currently appeared coin
1.Esc
to exit game
more detils : documents/neuralnet_ai (Japanese)
for neuralnet_ai.py
, in addition to player_mode ...
key | works |
---|---|
x | teach use arrow key |
c | out of stack to network |
a | down fps rate |
q | up fps rate |
w | up frame_per_predict |
s | down frame_per_predict |
r | save network model |
f | load_network model |
d | exit game |
more detils : documents/hacking (Japanese)__
- more useful UI
- test more machine learning algorithms
- refatctering
- mulchiagent buttle