Skip to content
Sign upLog in
← Back to Community

Tic-Tac-Toe

Profile icon
CyanCoding

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!

Voters
Profile icon
Gunnerdev09
Profile icon
THEFUNSIDE
Profile icon
XavierDD
Profile icon
DylanFarmer
Profile icon
Eric5322
Profile icon
anttoinecadiou
Profile icon
aurora_Rod
Profile icon
BrandonWooledge
Profile icon
richtan
Profile icon
WyvianValenca
Comments
hotnewtop
Profile icon
Riski_Rahmat

Do you have social media?

Profile icon
ClaytonHickey

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;
}
...

Profile icon
NEMONEIL

how long did you take to code this?