

Enter "WASD" to move around the board. My entry for the #TweetTweetJam using python. The game was done in 551 characters. Heres the code: from random import randint as v def P(m,s): print("Score: ",s) for r in m: for c in r: print(c,end=" ") print() def R(map,G): b[v(0,3)][v(0,3)]=G X,E,G=X,-,Ox,y,pX,pY=0,0,0,0s=0b=[[E]*4 for _ in range(4)]b[y][x]=XR(b,G)P(b,s) while(True): c= while c.lower() not in {w,a,s,d}:c=input("WASD? ") if(y+1>0 and y 0 and x<4): if c==w:y-=1 if c==s:y+=1 if c==a:x-=1 if ...

Tap to see all activity →
No reviews for Grab the O yet
Be the first to write one.