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")
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")
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])
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])