Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

New answers tagged

5 votes
Accepted

Tic Tac Toe Basic C implementation

getchar() returns an int, not a char: Defined in header ...
Harith's user avatar
  • 6,720
2 votes

Text-based tic-tac-toe game in Python

Overview The code layout is good, you added ample docstrings and you used meaningful names for classes, functions and variables. When running the code, it handles unexpected input very well. For ...
toolic's user avatar
  • 3,491
3 votes

Tic-tac-toe OOP Minimax Algorithm

if 0 in self.board: return None There are board positions where a win is no longer possible but there still are open spaces. Continuing playing at this point ...
Cris Luengo's user avatar
  • 5,613
3 votes
Accepted

Tic-tac-toe OOP Minimax Algorithm

it would be nice to be able to speed it up a bit. To properly study that, I recommend you scale up from \$3 × 3\$ to \$n × n\$. mutable arg idiom ...
J_H's user avatar
  • 27.4k

Top 50 recent answers are included