How to program a neural network for chess?

后端 未结 9 570
失恋的感觉
失恋的感觉 2021-01-30 11:18

I want to program a chess engine which learns to make good moves and win against other players. I\'ve already coded a representation of the chess board and a function which outp

9条回答
  •  情话喂你
    2021-01-30 11:45

    Your input algorithm is sound - all positions, all pieces, and both players are accounted for. You may need an input layer for every past state of the gameboard, so that past events are used as input again.

    The output layer should (in some form) give the piece to move, and the location to move to.

    Write a genetic algorithm using a connectome which contains all neuron weights and synapse strengths, and begin multiple separated gene pools with a large number of connectomes in each.

    Make them play one another, keep the best handful, crossover and mutate the best connectomes to repopulate the pool.

提交回复
热议问题