资源简介
代码片段和文件信息
# This version of the game has a bug in it. See if you can figure out how to fix it.
# http://inventwithpython.com/pygame/buggy
# Bug Description: Black bar appears at the bottom of the screen.
# Flippy (an Othello or Reversi clone)
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released under a “Simplified BSD“ license
# based on the “reversi.py“ code that originally appeared in “Invent
# Your Own Computer Games with Python“ chapter 15:
# http://inventwithpython.com/chapter15.html
import random sys pygame time copy
from pygame.locals import *
FPS = 10 # frames per second to update the screen
WINDOWWIDTH = 640 # width of the program‘s window in pixels
WINDOWHEIGHT = 480 # height in pixels
SPACESIZE = 50 # width & height of each space on the board in pixels
BOARDWIDTH = 8 # how many columns of spaces on the game board
BOARDHEIGHT = 8 # how many rows of spaces on the game board
WHITE_TILE = ‘WHITE_TILE‘ # an arbitrary
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 20175 2012-01-28 21:33 flippy_buggy7.py
文件 20178 2012-01-28 21:33 flippy_buggy8.py
文件 20197 2012-01-28 21:33 flippy_buggy1.py
文件 20226 2012-01-28 21:33 flippy_buggy2.py
文件 20190 2012-01-28 21:46 flippy_buggy3.py
文件 20174 2012-01-28 21:33 flippy_buggy4.py
文件 20232 2012-01-28 21:33 flippy_buggy5.py
文件 20175 2012-01-28 21:33 flippy_buggy6.py
文件 7297 2012-02-03 00:15 README.txt
文件 83036 2011-06-25 15:45 flippybackground.png
文件 340760 2011-06-21 21:05 flippyboard.png
相关资源
- python贪吃蛇小游戏源码
- 梯度下降求解逻辑回归(.ipynb)
- python石头剪刀布小游戏
- python弹球小游戏源码(基于pygame)
- python调用键盘控制游戏事件
- gnn(PageRank.ipynb)
- 利用python函数迭代实现hangman猜词游戏
- python实现贪吃蛇小游戏(面向对象)
- python一个打砖块的小游戏
- 贪吃蛇游戏
- 通过GUI页面实现猜数游戏
- KNN算法的Python实现(datingrecd.ipynb)
- 唐僧大战白骨精(源码)
- pip一键升级(python脚本)
- 写一段程序用于移除字符串前端和后
- VIP视频解析(python)
- python爬取接口json数据,并显示在Pre
- 多张图片识别文字(基于AipOcr)
- python推箱子 游戏素材
- Python开发的24点游戏
- python 贪吃蛇 游戏
- python 贪吃蛇 小游戏源码
- 五子棋游戏源码(python实现)
- Pygame游戏源代码:中国象棋
- python制作象棋程序源码(pygame)
- Python OpenCV 图像轮廓-.zip
- Python OpenCV 形态学操作-.zip
- Python OpenCV 傅里叶变换-.zip
- Python OpenCV 图像运算-.zip
- Python OpenCV 图像处理基础-.zip
评论
共有 条评论