Last active
January 21, 2017 11:45
-
-
Save sinewalker/8a2e2535337edecfb966aaea69338ee8 to your computer and use it in GitHub Desktop.
Pickup Sticks in Python (compare to https://gist.github.com/sinewalker/c8fa68158a63f95c01c5eb39f354df7b)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame, random | |
pygame.init(); | |
scr=pygame.display.set_mode([640,400]) | |
df=pygame.display.flip; rnd=random.randrange; draw=pygame.draw | |
scr.fill([0,0,255]); df() | |
while True: | |
draw.aaline(scr, [rnd(255),rnd(255),rnd(255)], | |
[rnd(640),rnd(400)], | |
[rnd(640),rnd(400)]); df() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment