Giter VIP home page Giter VIP logo

baba-is-auto's Issues

Python error AssertionError: Observation space ... does not inherit from gym.spaces.Space

(dev) [nickp@m1 baba-babaisyou-v0 (main)]$ python3 DQN.py 
Traceback (most recent call last):
  File "DQN.py", line 16, in <module>
    env = gym.make('baba-babaisyou-v0')
  File "/Users/nickp/opt/anaconda3/envs/dev/lib/python3.7/site-packages/gym/envs/registration.py", line 601, in make
    env = PassiveEnvChecker(env)
  File "/Users/nickp/opt/anaconda3/envs/dev/lib/python3.7/site-packages/gym/wrappers/env_checker.py", line 25, in __init__
    check_observation_space(env.action_space)
  File "/Users/nickp/opt/anaconda3/envs/dev/lib/python3.7/site-packages/gym/utils/passive_env_checker.py", line 145, in check_observation_space
    f"Observation space ({observation_space}) does not inherit from gym.spaces.Space"
AssertionError: Observation space ([<Direction.UP: 1>, <Direction.DOWN: 2>, <Direction.LEFT: 3>, <Direction.RIGHT: 4>]) does not inherit from gym.spaces.Space
Python 3.7.10
gym.__version__ = '0.24.1'

Icon vanishing problem while moving multiple players

Hello, I implemented "off limits" map and tested it, but when I move player after rule 'wall is you' is created, some walls are vanishing (shown in gif). I think there is problem when walls are overlaped.

ezgif com-gif-maker
.

Make GUI program

I'll make a simple GUI program to test the result of Reinforcement Learning with DQN.

Implement game

We'll make the game that can move an object and parse rules.

Fix GIFImage code

I checked that pygame >= 2.0.0 not supports set_palette in SDL 2. I should resolve this problem.

Initial project setup

  • Setup CMake build system
  • Setup unit test system (doctest)
  • Setup coding style format (clang-format)

Python API

We'll implement Python API using pybind11 to make gym-based environment and DQN.

Refactor code

I'll refactor code to improve architecture and readability.

Update GitHub Actions Images

  • Ubuntu 18.04 is deleted. Therefore, I'll add Ubuntu 22.04.
  • gcc-9 in macOS is deleted. Therefore, I'll add gcc-12.

Icons spread when they are stacked at the end of map

In 'off limits' map, walls are not overlapped when walls are stacked at the end of the map. In original "Baba is you" game, when I play the same map, the stacked walls move like a single block. But they spread out here.

172770860-5eb064e7-7189-46ca-99fe-fd5541afe406

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.