Skip to content

Commit

Permalink
update directory
Browse files Browse the repository at this point in the history
  • Loading branch information
choidf committed Nov 5, 2023
1 parent 03f082c commit 670ed38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Projects/2048/2048.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
init_count = 0
direction = ""
score = 0
file = open("2048\high_score.txt", "r")
file = open("high_score.txt", "r")
init_high = int(file.readline())
file.close()
high_score = init_high
Expand Down Expand Up @@ -230,7 +230,7 @@ def take_turn(direc, board):
if game_over:
draw_over()
if high_score > init_high:
file = open("2048\high_score.txt", "w")
file = open("high_score.txt", "w")
file.write(f"{high_score}")
file.close()
init_high = high_score
Expand Down

0 comments on commit 670ed38

Please sign in to comment.