snake-ai icon indicating copy to clipboard operation
snake-ai copied to clipboard

An AI agent that beats the classic game "Snake".

Results 30 snake-ai issues
Sort by recently updated
recently updated
newest added

I created Japanese translated README.

近段时间 Apple silicon 平台的机器学习支持在开源社区的努力下快速发展,而苹果芯片的统一内存架构也让大模型的落地普及有了新的希望,因此本项目也推送了新版代码,增加对 macOS GPU 加速框架 MPS(Metal Performance Shaders)的支持。 不过 Apple silicon 诞生不到三年,其机器学习生态更是刚刚起步,一定存在许多问题。本 issue 用于记录我在本项目以及其它外部项目中遇到的一些问题,也欢迎大家进行补充、友好讨论,分享一些常见问题的解决方案。 - 本项目中用到的 Anaconda、python 等基础工具已具备对 Apple silicon 的原生支持,但实际开发中出现了某些旧版代码库与 Python 安装工具 pip 的兼容性问题。解决办法已在中文版 README 中列出,需要降级 setuptools...

os: ubuntu 18.04 error: Using seed = 783742036 for testing. Traceback (most recent call last): File "test_cnn.py", line 24, in env = SnakeEnv(seed=seed, limit_step=False, silent_mode=False) File "/home/tianhm/snake-ai/main/snake_game_custom_wrapper_cnn.py", line 11, in...

conda install -c local sb3_contrib-1.8.0.tar.gz Collecting package metadata (current_repodata.json): done Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: unsuccessful...

D:\Downloads\Astudy\setpath\python.exe "D:\Watershed APP\pycharm2021\SetPath\PyCharm 2021.3\plugins\python\helpers\pycharm\_jb_pytest_runner.py" --path D:/python-code/snake-newai/snake-ai/main/test_cnn.py Testing started at 2:11 ... Launching pytest with arguments D:/python-code/snake-newai/snake-ai/main/test_cnn.py --no-header --no-summary -q in D:\python-code\snake-newai\snake-ai\main ============================= test session starts ============================= collecting ... Using seed...

I want to test it because there is no point of making something without testing it

# Changes Fixed bug (random.sample doesnt work on sets) Migration to Gymnasium Changed name from SnakeEnv to SnakeEnvCNN and SnakeEnvMLP added win rewards for MLP made win detection better in...

在训练过程中对蛇增加了一个惩罚。如果蛇的身子包住了空格子,将会根据包围住的格子大小受到惩罚。该策略目的在于使蛇在一定程度上折叠自己的身子。(图片显示在某一局蛇的长度达到了103) A penalty was added to the snake during training. If the snake's body wrapped around empty cells, it would be penalized according to the size of the cells. The...