Ejemplo n.º 1
0
	def checkHighscore(self):
		eightcrypt = EightCrypt()
		if os.path.isfile("highscores.txt") == False:
			eightcrypt = EightCrypt()
			self.HIGHSCORES.append("Chuck Norris - 999999")
			self.HIGHSCORES.append("player 1 - 1001001")
			self.HIGHSCORES.append("bush - 2001")
			self.HIGHSCORES.append("John Cena - 10")
			self.HIGHSCORES.append("Liz Boese - 1")
			eightcrypt.write("highscores.txt", self.HIGHSCORES)
		else:
			eightcrypt = EightCrypt()
			self.HIGHSCORES = eightcrypt.read("highscores.txt")
Ejemplo n.º 2
0
 def checkHighscore(self):
     eightcrypt = EightCrypt()
     if os.path.isfile("highscores.txt") == False:
         eightcrypt = EightCrypt()
         self.HIGHSCORES.append("Chuck Norris - 999999")
         self.HIGHSCORES.append("player 1 - 1001001")
         self.HIGHSCORES.append("bush - 2001")
         self.HIGHSCORES.append("John Cena - 10")
         self.HIGHSCORES.append("Liz Boese - 1")
         eightcrypt.write("highscores.txt", self.HIGHSCORES)
     else:
         eightcrypt = EightCrypt()
         self.HIGHSCORES = eightcrypt.read("highscores.txt")
Ejemplo n.º 3
0
from EightCrypt import *
e = EightCrypt()
a = e.read("highscores.txt")
for i in range(0, len(a)):
    print "{0:1d}.\'{1:1s}\'".format(i, a[i])
Ejemplo n.º 4
0
from EightCrypt import *
e = EightCrypt()
a = e.read("highscores.txt")
for i in range(0,len(a)):
	print "{0:1d}.\'{1:1s}\'".format(i, a[i])