File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
2727
4. RESET would reset thecurrent game session and
2828
start over a fresh board.
29-
3029
"""
3130

3231
import os
3332
import numpy as np
3433
import PySimpleGUI as sg
3534

35+
# change the default theme.
36+
# sg.theme('dark grey 9')
37+
3638
INIT_WINDOW = None
3739
GAME_BOARD = None
3840

@@ -237,7 +239,7 @@ def is_winning():
237239

238240
def display_winner_and_continue(winning_marker: str):
239241
'''display the winner of the current board.
240-
242+
241243
PARAMS:
242244
1. winning_marker - the marker that won the current board.
243245
'''
@@ -272,7 +274,11 @@ def init_game_window():
272274

273275
def reset_game_board(reset_board: str):
274276
'''Resets the current game board and re-initializes all the
275-
game parameters to continue playing the game with the same players.'''
277+
game parameters to continue playing the game with the same players.
278+
279+
PARAMS:
280+
1. reset_board - resets the current board to the initial state.
281+
'''
276282

277283
global GAME_PROGRESS_ARRAY
278284
global STEP_COUNTER
@@ -394,7 +400,7 @@ def initialize_game_board():
394400
else PLAYER2_MARKER if CURRENT_MARKER == PLAYER2_MARKER else ' ')
395401

396402
# Change the color of the player text to mark
397-
# the next player's turn. 'DarkBlue indicates
403+
# the next player's turn. 'DarkBlue' indicates
398404
# the player who should make the next move.'
399405
# Additionally, Once the player has made a move,
400406
# disable the button.

0 commit comments

Comments
 (0)