Skip to main content

PicoSnake - 4.0.0 - 304B

The ever-increasing (decreasing?) progression of smaller snakes.


Ian Mallett
(geometrian)
The ever-increasing (decreasing?) progression of smaller snakes.

Changes

replaced " and " with "&", replaced first loop with "while not x&528:"
from pygame import*;q=display;T=16;f=q.set_mode([256]*2).fill;l=[];d=a=x=1
while not x&528:
 while a&528or a in l:a=a*9%512
 l=l[a!=x:]+[x];f(0);[f(99,(o%T*T,o/32*T,T,T))for o in l+[a]];q.flip();time.wait(99);D=d
 for e in event.get(2):
  v=e.key-272;n=((v&2)-1)*[1,32][v<3]
  if-n-D&0<5:d=n
 x+=d

Links

Home Page
http://www.pygame.org/

Releases

PicoSnake 2.0.0 — 1 Aug, 2008

PicoSnake 1.0.0 - 390B — 30 Jul, 2008

PicoSnake 3.0.0 - 320B — 30 Aug, 2009

PicoSnake 4.0.0 - 304B — 15 Feb, 2010

Pygame.org account Comments