#!/usr/bin/python # Get to Flopside with Python ! import random import sys blocks = [ 0xAD, 0xD6, 0xBA, 0x79, 0xEA, 0x1F, 0x67, 0xD5 ] while 1 is 1: state = 0x00 for i in range(8): randIndex = random.randint(0, 7) state ^= blocks[randIndex] print "Block ", randIndex + 1 if state is 0xFF: print "Winnter!\n" sys.exit() print ""