Skip to content

Commit 670ed38

Browse files
committed
update directory
1 parent 03f082c commit 670ed38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Projects/2048/2048.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
init_count = 0
4040
direction = ""
4141
score = 0
42-
file = open("2048\high_score.txt", "r")
42+
file = open("high_score.txt", "r")
4343
init_high = int(file.readline())
4444
file.close()
4545
high_score = init_high
@@ -230,7 +230,7 @@ def take_turn(direc, board):
230230
if game_over:
231231
draw_over()
232232
if high_score > init_high:
233-
file = open("2048\high_score.txt", "w")
233+
file = open("high_score.txt", "w")
234234
file.write(f"{high_score}")
235235
file.close()
236236
init_high = high_score

0 commit comments

Comments
 (0)