tic_tac_toe module
- tic_tac_toe.is_win(player, board)
Check rows, columns, and diagonals for win condition for a given player
Parameters: - player: str - The player (‘X’ or ‘O’) to check for win - board: list[list[str]] - The game board
Returns: - bool: True if the player wins, False otherwise
- tic_tac_toe.main()
Main function to control the Tic-Tac-Toe game
- tic_tac_toe.print_board()
Prints the Tic-Tac-Toe board
- tic_tac_toe.tally_wins(results)
Tally the number of wins from a list of results
Parameters: - results: list - List of boolean results indicating win (True) or loss (False)
Returns: - int: Total number of wins