Share your repls and programming experiences

← Back to all posts
Tic-Tac-Toe
CyanCoding (1415)

https://repl.it/@CyanCoding/Tic-Tac-Toe

A simple Tic-Tac-Toe game created in C++! It doesn't get much more fun than that.

P.S Tic-Tac-Toe impossible mode is beatable using 1-2 strategies. See if you can find them!

Commentshotnewtop
Riski_Rahmat (0)

Do you have social media?

ClaytonHickey (47)

Interesting, try to add some error-catching and shorten this:
if (fm1 == 1 && r1c == false) {
r1 = "X";
r1c = true;
stillTurn = false;
}
else if (fm1 == 2 && r2c == false) {
r2 = "X";
r2c = true;
stillTurn = false;
}
...

NEMONEIL (0)

how long did you take to code this?