A Genetic Algorithm for Tic-Tac-Toe

前端 未结 2 1171
梦如初夏
梦如初夏 2021-01-31 11:07

So I was assigned the problem of writing a 5x5x5 tic-tac-toe player using a genetic algorithm. My approach was to start off with 3x3, get that working, and then extend to 5x5,

2条回答
  •  一生所求
    2021-01-31 11:45

    This seems to be a very old conversation but attracted my attention. Thinking it might serve the public discussion, here is my input.

    I think the aim in your assigned task needs to be defined more clearly:

    1. Are you trying to find a set of winning boards? I don’t think so, because this is very straigtforward for a 3x3 board which can even be solved by hand, and it can be extrapolated to larger boards. GA could be utilized for larger boards, but it would only be a GA exercise.

    2. Are you trying to utilize GA to train TicTacToe to AI players? I think this should be the case. In that case, your GA strings/chromosomes should not represent winning boards, but rather, they should represent ordered move sequences of players, for winning games. This is really a bit trickier to model though, as expected, and it would be a real AI training programming exercise.

    I hope this perspective helps.

提交回复
热议问题