Skip to content

Justontheway/aigame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Game aigame


AI-Game aigame is a toolkit for developing and comparing reinforcement learning algorithms.

Basics

There are two basic concepts in reinforcement learning: the environment (namely, the outside world) and the agent (namely, the algorithm you are writing). The agent sends actions to the environment, and the environment replies with observations and rewards (that is, a score).

The core aigame interface is Env <https://github.com/Justontheway/aigame/blob/master/aigame/core.py>_, which is the unified environment interface and agent interface. The following are the Env methods you should know:

  • reset(self): Reset the environment's state. Returns observation.
  • step(self, action): Step the environment by one timestep. Returns observation, reward, done, info.
  • render(self, mode='human', close=False): Render one frame of the environment. The default mode will do something human friendly, such as pop up a window. Passing the close flag signals the renderer to close any such windows.

Installation

On Win7|10

Note

  1. 因为运行时需要操作window窗口,所以运行脚本的时候要用管理员身份打开cmd