Guess the Password

Run some MiniScript code right in your browser!

um = floor(rnd * 3) dois = floor(rnd * 3) tres = floor(rnd * 3) print "You're locked in a room. You can get out of here if you" print "unlock the door with the corredt password, or ""passnumber""." print "Tip: the password is three numbers from 0 to 3." password = "" + um + "" + dois + "" + tres try = input("Guess the password.") if try == password then print "You open the door and get out safely. You wins!" else print "It's not the correct password." end if while try != password try = input("Guess the password.") if try == password then print "You open the door and get out safely. You wins!" else print "It's not the correct password." end if end while

Help & Information