Memorytweet
A downloadable game
A game where all the code takes up less space than a tweet - and you can see it here (written in python):
import random, os
def c():os.system('cls')
def p(s):print(s)
n=''
i=0
p("Write")
while True:
s="Score "+str(i)
m=str(random.randint(0,9))
if(i!=0):p(s),p("At end add")
p(m)
n+=m
if input()!=n:
i=0
c()
p("Answer was "+n)
p(s)
p("Again")
n=''
else:
i+=1
c()
Status | Released |
Author | skovtrolden |
Genre | Puzzle |
Tags | Procedural Generation, Text based, tweet |
Download
Download
tweetGame.zip 5.3 MB
Install instructions
Haven't actually tested on other machines, but you should be able to do one of to thing:
- Download the zip folder and open the exe file
- Copy the code into a textfile, name it whatever.py, and run it with python installed (or just copy the code into your favorite python editor, just make sure it can use the "clear" function. If running on mac or linux, change "cls" with "clear")
Comments
Log in with itch.io to leave a comment.
Nice job! Good to see some Python programmers participating! :)