liuzuoping / python_games Goto Github PK
View Code? Open in Web Editor NEWsome interesting games implemenred in python(一些用python写的小游戏,包括飞船大战,坦克大战,扫雷,俄罗斯方块,五子棋游戏,贪吃蛇,数字游戏,还包括成绩管理系统与天气查询系统的实现以及turtle绘制小猪佩奇,皮卡丘与哆啦A梦)持续更新中
some interesting games implemenred in python(一些用python写的小游戏,包括飞船大战,坦克大战,扫雷,俄罗斯方块,五子棋游戏,贪吃蛇,数字游戏,还包括成绩管理系统与天气查询系统的实现以及turtle绘制小猪佩奇,皮卡丘与哆啦A梦)持续更新中
你的python扫雷实现出现了一些问题,如果我全部给未开启的方块插旗,那么游戏就会结束,这是一个bug,而且插旗超过雷的数量,左上角的数量会变成负数。希望我的意见能对你的代码有所帮助
下载zip包要下载好久,下载到半路就会显示网络错误,但是检查网络后并没有问题。
if game_over:
start = True
game_over = False
b = True
snake = init_snake()
food = create_food(snake)
food_style = get_food_style()
pos = (1, 0)
# 得分
score = 0
# 重新设置速度为初始值
speed=orispeed
last_move_time = time.time()
可修改为这样,以修复这个bug
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.