Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
A jam submission

Grab the OView game page

My entry for the #TweetTweetJam using python. Written in 551 characters.
Submitted by Jessica Turner (@jesyika) — 3 days, 12 hours before the deadline
Add to collection

Play game

Grab the O's itch.io page

How many characters of code did you use?
551

If you're comfortable with it, paste your game code here, so we can marvel at your achievement!
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','-','O';x,y,pX,pY=0,0,0,0;s=0;b=[[E]*4 for _ in range(4)];b[y][x]=X;R(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<4 and x+1>0 and x<4):
if c=='w':y-=1
if c=='s':y+=1
if c=='a':x-=1
if c=='d':x+=1
if b[y][x]==G:s+=1;R(b,G)
b[y][x]=X;b[pY][pX]=E;pY,pX=y,x;
P(b,s)

Leave a comment

Log in with itch.io to leave a comment.

Comments

HostSubmitted(+1)

Nice work! These little Python games make me want to try my hand at a standalone Python game!

Developer(+1)

Thanks! You should, python is pretty fun :P