Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

  Apply Now

Project- Game of Tic Tac Toe with Python

7 / 16

Tic Tac Toe with Python - Create the board structure to play on

Here we will define a function named new_board to create a new board on which the players can start playing.

INSTRUCTIONS
  • Define the function new_board as shown below. Here we are initializing the board with empty squares by appending with the EMPTY constant. It also returns a list called board.

    def <<your code goes here>>():
        board = []
        for square in range(NUM_SQUARES):
            board.append(<<your code goes here>>)
        return <<your code goes here>>
    
See Answer

No hints are availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...