How to represent a game of chess in mathematics/array of numbers?
Hello, of course, in this respect, I am not the first, but I want to try to write a neural network plays chess, but I can't figure out how to represent the rules of chess to her. The location of chess pieces I thought I'd make, as an array with the first element or zero or unit, where zero is white, the next element is the number of the figure, where 0 pawn, 1 rook, etc., However, I can't figure out how to submit the program rules for the movement of the figures or the options which in the game is a draw. Can be you something will prompt?
You can try:
Let the neural network plays the role of the evaluation function.
I.e. the input of the network serves as the Board and the output is a numerical score position.
The tree of possible moves is formed not by the network, and the external function.
In fact to build the tree of moves from the current position for each move is obtained a valuation using a neural network, and then selects the move with the best evaluation.
In this implementation of chess with neural network must run faster than the search depth.
For training, you can try to calculate the position of the classic Robin, and then to give her a neural network and train while estimates from the neural network will not coincide with the estimates obtained by enumeration.
Similar question here understands: