linyiLYi / snake-ai

An AI agent that beats the classic game "Snake".
Apache License 2.0
1.59k stars 352 forks source link

升级依赖版本解决依赖冲突问题,区分渲染和静音模式变量,增加linux支持 #22

Open zouyonghe opened 1 year ago

zouyonghe commented 1 year ago

若静音模式设置为false,在我的arch linux无法正常运行,表现在 mixer.init() 失败。 具体报错为: pygame.error: dsp: No such audio device

上述报错暂时没有找到解决方案,故我在测试项目过程中单独设置静音模式,项目运行正常。 已经验证,在我修改的版本下,linux上可正常运行程序。

zouyonghe commented 1 year ago

另外,我发现需要额外安装shimmy,否则会提示缺包,版本没有限制。 pip install shimmy即可。