A snake AI written in python. Use curses module, Windows users should install it first:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
git clone https://github.com/Hawstein/snake-ai.git
cd snake-ai
python snake.py
a snake AI written in python
A snake AI written in python. Use curses module, Windows users should install it first:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
git clone https://github.com/Hawstein/snake-ai.git
cd snake-ai
python snake.py
File "snake.py", line 262, in
win.addch(food/WIDTH, food%WIDTH, '@')
TypeError: integer arg
ument expected, got float
Cound I ask something about this?
Having interest on your codes, There's minor problems with Py3.6 like below.
I've been trying to get it but didn't make it yet. thanks.
https://github.com/onitonitonito/Hello-Python3.6/blob/Snake_AI/snake_r01_Q1.png
有时候蛇头经过一个食物但是不吃,最后就死循环了,应该是倒数第二个空
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.