Project

Simple Tic-Tac-Toe with Python

Medium
6536 completions
~ 11 hours
4.3

Create a dynamic Tic-Tac-Toe game in Python, progressing from a basic grid display to a fully interactive two-player experience.

Provided by

JetBrains Academy JetBrains Academy

About

Everybody remembers this paper-and-pencil game from childhood: Tic-Tac-Toe, also known as Noughts and crosses or Xs and Os. A single mistake usually costs you the game, but thankfully it is simple enough that most players discover the best strategy quickly. Let’s program Tic-Tac-Toe and get playing!

Training project icon

Training project

This project allows you to practice and strengthen your coding skills, helping you get ready for more advanced tasks ahead.

What you'll learn

Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Now it’s time to analyze user input and print the state of the field depending on it. You’ll learn to address specific positions in a string to achieve the required outcome.
Now we’re going to write a fully-functioning multi-line program that responds to the user’s actions and analyzes the state of the field. Not only will it tell you who is winning, but it will also determine if the situation on a given field is theoretically possible!
Tic-tac-toe is not all about analysis – a game is meant to be played! Write a program that can change the state of the field, as your first real step toward a fully-functioning game application!
Finally! Thanks to this app, you can always challenge a friend to play a quick game of Tic-Tac-Toe!

Reviews

Erik Panjtar avatar
Erik Panjtar
1 month ago
In my opinion this project is easier of the previous projects "Medium" difficult. At the same time is funnier and different from the others. It needs to know how to manipulate and slice the lists.
Daniel Lopez
3 months ago
Hard tic-tac-toe, really have to notice the capitalization in the earlier stages.
Keri Southwood-Smith avatar
Keri Southwood-Smith
3 months ago
I have learned how to manipulate lists and make a list from a string. Also how to validate user input.

4.3

Learners who completed this project within the Python Developer course rated it as follows:
Usefulness
4.4
Fun
4.3
Clarity
4.4