Efficient algorithm for counting unique states of tic tac toe

后端 未结 6 853
抹茶落季
抹茶落季 2021-02-07 12:51

I\'m trying to build a tic tac toe game to demonstrate and experiment with machine learning algorithms, and i\'ve found an interesting problem.

eg: a tic tac toe board c

6条回答
  •  别那么骄傲
    2021-02-07 12:58

    Tic tac toe is related to AI, specifically minmax algorithm from Game theory, even more specifically AB Pruning for good results. The entire topic is huge, but is easy and procudural. It is easy to grasp and you can get started at these page:

    http://en.wikipedia.org/wiki/Game_theory

    http://www.cs.trincoll.edu/~ram/cpsc352/notes/minimax.html

    Something lucid and easier than the above link:

    http://www.cs.ucla.edu/~rosen/161/notes/alphabeta.html

提交回复
热议问题