Skip to content

Commit

Permalink
Update tic_tac_toe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding4Hours authored Jul 9, 2024
1 parent 11d1b10 commit 5c92c5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tic_tac_toe.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ def update_readme(board, status):
# If you need to persist the updated board in "stuff.json"
with open('stuff.json', 'w') as file:
json.dump(data, file)

def main(move):
with open('README.md', 'r') as file:
content = file.read()


board = re.findall(r'\| (.) \| (.) \| (.) \|', content)
board = [item for sublist in board for item in sublist]

current_player = board['turn']

with open('stuff.json', 'r') as file:
Expand Down

0 comments on commit 5c92c5b

Please sign in to comment.