My Simple Tic-Tac-Toe Game

Published: (December 31, 2025 at 10:11 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Overview

As part of Codecademy’s portfolio project series, I built an interactive Tic‑Tac‑Toe game that runs entirely in the terminal. This was my first complete Python program, and it was the perfect way to practice core concepts like loops, functions, lists, conditionals, and handling user input with input().

I chose Tic‑Tac‑Toe because it’s an iconic two‑player game that’s simple on the surface but lets you dive into game logic—checking for wins, handling invalid moves, and detecting ties. Plus, making it replayable without restarting the program felt like a nice touch!

Screenshots

Game board screenshot

Gameplay screenshot

Source Code

Check out the full commit history & code here: https://github.com/Shea31j/python-tic-tac-toe-game

Back to Blog

Related posts

Read more »

Ruby 제어문 - 조건문과 반복문

조건문 ruby s1 = 'Jonathan' s2 = 'Jonathan' s3 = s1 if s1 == s2 puts 'Both Strings have identical content' else puts 'Both Strings do not have identical content'...