Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
偶很乖🙂

小瓜呆黏誠 ncchen99

:octocat:
偶很乖🙂
View GitHub Profile
View Greedy-Snake.py
import pygame, sys, time, random
#初始設定(全域變數)
# tuple形式傳遞
# 顏色 = (R, G, B)
black = (0, 0, 0)
white = (255, 255, 255)
red = (255, 0, 0)
green = (0, 255, 0)