Tic-Tac-Toe (Terminal)

Welcome to the Tic-Tac-Toe (Terminal) page.

This page contains a brief description and implementation instructions for the project.

Project Description

A two-player X/O game on a 3×3 grid. Players take turns choosing grid positions. The program displays the board and checks for a winner (three in a row horizontally, vertically, or diagonally) or a draw.

Project Requirements

Python 3.x (no extra libraries required; optionally numpy if using an array representation).

How to Run the Project

  1. Write a script (e.g. tic_tac_toe.py) that represents the board (e.g. a list of lists or flat list of 9 spots).
  2. Run it: python tic_tac_toe.py. The program will prompt Player 1 and Player 2 in turns to enter a move (e.g. a cell number).
  3. After each move, the board is displayed and the program checks for a winning condition or draw.

Key Concepts Learned

Possible Extensions

Troubleshooting & Debugging

See Troubleshooting & Debugging.

← Back to Python Programming Page