Share your repls and programming experiences

← Back to all posts
Tic Tac Toe Bot
smwhalen94

Here is a tic tac toe game that allows you to both verse another human or an AI. The AI uses the randint algorithm to determine what space it will choose, so sometimes you will be able to beat the AI but other times it will be impossible! I also have implemented the play board using turtle so you can see where you and your opponent have gone. I also added a little easter egg in AI mode, see if you can find it and Good luck beating the AI! Have Fun !

https://repl.it/@smwhalen94/AI-Tic-Tac-Toe

Voters
smwhalen94
JOSHUAKONDUR
MichaelMutunga
OscarMarret
10780
bonnie31909
ash15khng
IbenPolanco
JayFeather
rodrigonunes2
Comments
hotnewtop
Barry123

Computer goes first all the time

smwhalen94

@Barry123 I tried it out myself and it is random, looks like you just had the luck of the computer going first for the games you played.

Barry123

It said I lost when it was a tie

smwhalen94

@Barry123 I fixed the issue where the computer thinks it wins when there is actually a tie

cgorji19

What is this dumb poo

smwhalen94

@cgorji19 I always wondered what a nine year old would say if they ran my code.. Now I know! Thanks Gojira ;)

oignons

@cgorji19 please don't be mean, this person took time to create this.

Robodahobo

jks its good

smwhalen94

@Robodahobo lol. Thanks man!

Robodahobo

meh

dartain123

nice

smwhalen94

@dartain123 Thanks !