-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
29 lines (20 loc) · 881 Bytes
/
test.py
File metadata and controls
29 lines (20 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# from time import ctime
# current_time = ctime()
# # with open('scoress.txt', 'r+') as high_score_file:
# # high_scores = [0, 0, 0, 0, 0]
# # for item in high_scores:
# # high_score_file.write(str(high_scores[item]) + "\n")
# # high_score_file.close()
# high_score = 0
# new_score = False
# # with open('scoress.txt', 'r+') as high_score_file:
# # current_score = (input("high score?" ))
# # high_score = high_score_file.read()
# # if current_score > high_score:
# # high_score = current_score
# # high_score_file.write(str(current_score) + "\n")
# # # new_sentence = ("High score of " + str(high_score) + " at " + str(current_time))
# # # high_score_file.write(new_sentence)
# # # else:
# # # high_score_file.write(str(high_score) + "\n")
# # # high_score_file.write(sentence)