gluttonous icon indicating copy to clipboard operation
gluttonous copied to clipboard

python3 issue

Open wyixiang opened this issue 6 years ago • 6 comments

这个项目用python3运行会有bug,可以修复一下吗,贪吃蛇会掉蛇节

wyixiang avatar Dec 02 '18 13:12 wyixiang

python2下 贪吃蛇不会掉蛇节吗?

Lane565 avatar May 06 '19 08:05 Lane565

请问这个怎么打开啊。我打不开。那个pip install cocos2d是什么意思啊。这个库是你写的,还是官方的啊。

gwdcodeteam avatar Jun 08 '19 10:06 gwdcodeteam

请问这个怎么打开啊。我打不开。那个pip install cocos2d是什么意思啊。这个库是你写的,还是官方的啊。

不是官方的也不是我写的,是第三方模块,安装参考:https://zhuanlan.zhihu.com/p/20760860

crossin avatar Jun 09 '19 01:06 crossin

Hi,thanks for your sharing. Can you tell me what's the requirements of your app env? I tried to run the 'gluttonous.py' in my python3.7.1 env,the pyglet raise this error: ''' File "C:\Users\Phoenix\Anaconda3\lib\site-packages\pyglet\text\layout.py", line 1012, in _get_glyphs for start, end, (font, element) in runs.ranges(0, len(text)): RuntimeError: generator raised StopIteration ''' I have tried different cocos2d & pyglet version(cocos2d: 0.6.5&0.6.4&0.6.3;pyglet: 1.3.0&1.2.4)

phoenix339 avatar Aug 13 '19 08:08 phoenix339

Hi,thanks for your sharing. Can you tell me what's the requirements of your app env? I tried to run the 'gluttonous.py' in my python3.7.1 env,the pyglet raise this error: ''' File "C:\Users\Phoenix\Anaconda3\lib\site-packages\pyglet\text\layout.py", line 1012, in _get_glyphs for start, end, (font, element) in runs.ranges(0, len(text)): RuntimeError: generator raised StopIteration ''' I have tried different cocos2d & pyglet version(cocos2d: 0.6.5&0.6.4&0.6.3;pyglet: 1.3.0&1.2.4)

python 2.7 not tested in py3

crossin avatar Aug 13 '19 09:08 crossin

您好,我想问一下,其他的AI贪吃蛇是在 哪一段代码中生成的呢?

OneStepAndTwoSteps avatar Oct 22 '19 04:10 OneStepAndTwoSteps