Question: # Check vertical win if row
# Check vertical win if row <= N_ROWS - 3 and \ game_board[str_index(row, col, N_COLUMNS)] == current_player and \ game_board[str_index(row + 1, col, N_COLUMNS)] == current_player and \ game_board[str_index(row + 2, col, N_COLUMNS)] == current_player and \ game_board[str_index(row + 3, col, N_COLUMNS)] == current_player: game_over = True if_gameover: print('{current_player} has won the game!') if 'current_player' == RED_SQUARE: current_player = YELLOW_SQUARE else: current_player = RED_SQUARE display_game_board(game_board) Print ('The game is over!') Why does this code say "C:\Program Files\Python311\python.exe" C:\Users\User\PycharmProjects\The_Slide_Game\main.py File "C:\Users\User\PycharmProjects\The_Slide_Game\main.py", line 61 if_gameover: ^ IndentationError: unindent does not match any outer indentation level
Process finished with exit code 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
