Skip to content
← Back to Community
Tic Tac Toe in python from scratch
Profile icon
h
has Hacker Plan
Dart

So I’ve always wanted to try and make a sort of interactive game in python, like tic tac toe or connect 4, I know there are a lot of tutorials on grid based games but my goal was to do it all on my own. Here is the outcome. It was really difficult to work with but I think it turned out pretty good.

I hope you enjoy
-Dart

Voters
Profile icon
AtharvaKhadke
Profile icon
CoolCoderSJ
Profile icon
KENNETHTRIPP
Profile icon
TsunamiOrSumth
Profile icon
lolwhat
Profile icon
Zombs
Profile icon
OldWizard209
Profile icon
Addiction
Profile icon
aladair
Profile icon
angrydoge
Comments
hotnewtop
Profile icon
SilvermoonCat

pretty nice, but the computer is a little dumb

Profile icon
Dart
Profile icon
[deleted]

nxt time, try doing a GUI version of it using python Tkinter

Profile icon
Dart

@Hacky I’ve never used tkinter mainly because I do most of my programming from an iPad but I’ll try it sometime

Profile icon
OldWizard209

Now this is cool and all but you should change the plus and the minus for the positions cuz it looks confusing. But overall, pretty sick game @DartZII

Profile icon
MonaJabir

your mom

Profile icon
KENNETHTRIPP

May I fork it? I want to figure out how you made the computer make its moves.
BTW nice project. I made one without a computer and it still took me forever. I can only imagine how much effort you put into this.

Profile icon
Ponali

i like this game but it misses some things for vertical moving.

Profile icon
LuckyOreos

Nice, I made a super cool python Connect 4 with AI too. - https://repl.it/@LuckyOreos/Connect4-with-AI#main.py

Profile icon
angrydoge

no advertise >:( @LuckyOreos

Profile icon
LuckyOreos

@angrydoge Advertising means the activity or profession of producing advertisements for selling commercial products. This is not something that I’m selling nor is my repl a product. So I don’t know what you mean.

Profile icon
Dart

@angrydoge its ok, he put a link to a repl not a post. So it’s fine. Cool program btw

Profile icon
LuckyOreos

@DartZII Thanks

Profile icon
angrydoge

oof. @DartZII nice prog tho.