google-deepmind/pycolab
소개
몇 가지 유용한 기능을 기본 제공하는 고도로 사용자 지정 가능한 그리드월드 게임 엔진입니다. 직접 그리드월드 게임을 만들어 강화 학습 에이전트를 테스트해 보세요!
게임 및 에뮬레이션측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThe pycolab game engine.
A highly-customisable gridworld game engine with some batteries included. Make your own gridworld games to test reinforcement learning agents!
Play some games!
If you're new, why not try playing some games first? For the full colour experience on most UNIX-compatible systems:
- crack open a nice, new, modern terminal (iterm2 on Mac, gnome-terminal or xterm on linux). (Avoid screen/tmux for now---just the terminal, please.)
- set the terminal type to
xterm-256color(usually, you do this by typingexport TERM=xterm-256colorat the command prompt). - run the example games! One easy way is to cd to just above the
pycolab/library directory (that is, cd to the root directory of the git repository or the distribution tarball, if you're using either of those) and run python with the appropriatePYTHONPATHenvironment variable. Example command line forbash-like shells:PYTHONPATH=. python -B pycolab/examples/scrolly_maze.py.
Okay, install some dependencies first.
If that didn't work, you may need to obtain the following software packages that pycolab depends on:
- Python 2.7, or Python 3.4 and up. We've had success with 2.7.6, 3.4.3, and 3.6.3; other versions may work.
- Numpy. Our version is 1.13.3, but 1.9 seems to have the necessary features.
- Scipy, but only for running one of the examples. We have 0.13.3.
Overview
pycolab is extensively documented and commented, so the best ways to understand how to use it are:
- check out examples in the
examples/subdirectory, - read docstrings in the
.pyfiles.
For docstring reading, the best order is probably this one---stopping whenever you like (the docs aren't going anywhere...):
- the docstring for the
Engineclass inengine.py - the docstrings for the classes in
things.py
Those two are probably the only bits of "required" reading in order to get an
idea of what's going on in examples/. From there, the following reading may be
of interest:
plot.py: how do game components talk to one another---and how do I give the agent rewards and terminate episodes?human_ui.py: how can I try my game out myself?prefab_parts/sprites.py: usefulSpritesubclasses, includingMazeWalker, a pixel that can walk around but not through walls and obstacles.cropping.py: how can I generate the illusion of top-down scrolling by cleverly cropping an observation around a particular moving game element? (This is a common way to build partial observability into a game.)
Don't forget that you can always read the tests, too. These can help demonstrate by example what all the various components do.
Disclaimer
This is not an official Google product.
We just thought you should know that.
관련 프로젝트 살펴보기
불러오는 중…