New answers tagged tic-tac-toe
2
votes
Accepted
another first tic-tac-toe game
Returning true and false
In your generate win conditions function, instead of returning true or false if the condition evaluates ...
2
votes
First tic tac toe game. want to see if valid or needs improvement
Start Over
Start from scratch. You need to build a sense of the big picture of coding Tic-Tac-Toe. That perspective serves for any coding project.
The before and after will give you insight that ...
4
votes
First tic tac toe game. want to see if valid or needs improvement
I have a few suggestions, but I'll just mention two.
I would recommend defining the game board as just a 3 by 3 array containing only X, O, or blank. The way you've coded it here makes easy to print ...
Top 50 recent answers are included
Related Tags
tic-tac-toe × 636python × 202
beginner × 202
game × 142
c++ × 110
java × 103
python-3.x × 84
object-oriented × 68
javascript × 64
ai × 62
c × 42
c# × 38
console × 37
performance × 24
algorithm × 22
html × 19
c++11 × 19
ruby × 19
python-2.x × 16
swing × 15
haskell × 14
gui × 14
css × 12
array × 11
jquery × 8