huangeddie / GymGo

An environment of the board game Go using OpenAI's Gym API
165 stars 31 forks source link

Type error from window_width and window_height in go.env.py #3

Closed RedRyan111 closed 4 years ago

RedRyan111 commented 4 years ago

It seams like window_width and window_height values must be integers on line 179 and 180, which may not always happen because of the math you're doing i think. I got the error File ".../lib/python3.7/site-packages/pyglet/window/xlib/init.py", line 246, in _createbyref(window_attributes)) ctypes.ArgumentError: argument 5: <class 'TypeError'>:wrong type I fixed this by casting the window_width and window_height to integers.

huangeddie commented 4 years ago

You're right. I just pushed a quick fix. Thanks!