What's new
IPTV SAT FORUM

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Tic Tac Toe Part 1 | 9.1.1

Tic Tac Toe Part 1 | 9.1.1

# Check diagonals if board[0][0] == board[1][1] == board[2][2] == player: return True if board[0][2] == board[1][1] == board[2][0] == player: return True

Next, we need to display the game board to the players. We can create a function to print the game board: 9.1.1 tic tac toe part 1

board = [ [" ", " ", " "], [" ", " ", " "], [" ", " ", " "] ] # Check diagonals if board[0][0] == board[1][1] ==

# Check columns for col in range(3): if board[0][col] == board[1][col] == board[2][col] == player: return True 9.1.1 tic tac toe part 1

Top
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.