Giter Site home page Giter Site logo

coin_gather_game's Introduction

coin gather game

pygame_sample

the game, which player gathers coins

how to play :: install and execute

player_mode

requipments : pygame # sdl game_engine wrapper for python

$ pip install pygame 
$ python game.py

AI_mode

requipments : chainer # and some dependments

$ pip install chainer # and some dependments
$ python neuralnet_ai.py 

neuralnet_ai.py

example of ai_lib
using 4-layer neural network, the sample model to gain actions.
more detils : documents/neuralnet_ai (Japanese)

rule

touching this to understand this game.

objects of environment

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

operation

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

operation (AI_mode)

more detils : documents/neuralnet_ai (Japanese)
for neuralnet_ai.py, in addition to player_mode ...

keys list

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

hacking

more detils : documents/hacking (Japanese)__

to do

  1. more useful UI
  2. test more machine learning algorithms
  3. refatctering
  4. mulchiagent buttle

coin_gather_game's People

Contributors

i-makinori avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.