Project- Game of Tic Tac Toe with Python

3 / 16

Tic Tac Toe with Python - Create function to display instructions

In this step, we will be creating a function display_instructions that will display various instructions on screen.

INSTRUCTIONS
  • Define a function named display_instructions as shown below:

    def <<your code goes here>>():
        print(
        """
        Welcome to a game of Tic-Tac-Toe. You will be playing against an AI.
        You will be able to make your move on the board by entering any number from 0 - 8.
        The number will correspond to the board position as shown below:
    
                          0 | 1 | 2
                          ---------
                          3 | 4 | 5
                          ---------
                          6 | 7 | 8
    
        May the best player win!\n
        """
        )
    
See Answer

No hints are availble for this assesment


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

Loading comments...