pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
BCsnake

BCsnake - 278 Bytes

josmiley / Luke spywoker (mutualaccount)

Tags:

Description

snake in 277 bytes

from pygame import*;d=display;y,D,S=s=[15,16,17];n,p,x=D,99,d.set_mode([225]*2).fill
while s.count(S)%2*S%n*(S&240):
for e in event.get(2):D=(-1,-n,n,1)[e.key&3]
s=s[p!=S:]+[S+D];x(-1)
if p==S:p=s[0]
for i in[p]+s:x(0,((i-1)%n*y,(i-n)/n*y,y,y))
d.flip();S+=D;time.wait(99)
python2.

Links

Home Page: http://joel-murielle.perso.sfr.fr
Source: http://joel-murielle.perso.sfr.fr/bcsnake.py.zip

Screenshot


click to view original size

Releases

BCsnake - 277 Bytes - Apr 7, 2012
BCsnake - 278 Bytes - Apr 5, 2012
BCsnake - 282 bytes - Jun 1, 2010
BCsnake - 285 bytes - Jun 1, 2010
BCsnake - 287 bytes - Jun 1, 2010
BCsnake - 288 bytes - Apr 30, 2010
BCsnake - 296 bytes - Apr 30, 2010

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

April 22, 2012 12:37am - Zachariah Callaway - nickname: (xzcallaway)
A .deb package of BCsnake is available for download at http://dotdeb.com/linktome.php?bcsnake
April 30, 2010 8:05am - josmiley / Luke spywoker - nickname: (mutualaccount)
fixed
April 30, 2010 7:31am - Jordan Trudgett - nickname: (tgfcoder)
Not a bad effort at all! There are some bugs and quirks sadly. Nice byte-crunching techniques though. :)
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Aug 26, 2015


Aug 25, 2015


Aug 21, 2015

Aug 16, 2015


Jul 30, 2015

Jun 24, 2015

Jun 17, 2015

Jun 14, 2015

Jun 8, 2015

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)