Python Forum
tic-tac-toe with a computer player
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tic-tac-toe with a computer player
#2
If you want to learn about algorithms for choosing the best move, look at minimax. It's fairly straightforward to understand and it assumes both players choose the best move on their turn. It basically boils down to a depth first search of a tree, where the tree represents the board states that can be reached from the start. Minimax will search that tree unconditionally, meaning some paths will be explored even if that's unnecessary - alpha-beta pruning is an improvement on this.
Reply


Messages In This Thread
tic-tac-toe with a computer player - by Clunk_Head - Sep-02-2020, 08:30 PM
RE: tic-tac-toe with a computer player - by ndc85430 - Sep-03-2020, 05:59 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020