Mail Archives: djgpp/1998/08/03/00:30:40
A better (faster) solution than NN for games like tic-tac-toe is
a backtracking algorithm, i.e. the computer tries a move, then
works backwards to see if any rules were violated (or if the move
puts him in 'check' or whatever). NNs are more generally used
when there is plenty of time for the computer to learn what a
particular pattern looks like, then use some rule for the next move
by the computer. With an unspecified number of rows and columns,
this becomes impracticable. You might use a backpropogation
network if say you always used a 3x3 board - you then train the
network to recognize every possible x/o permutation on the board
and train it to some given rule for each permutation, i.e., if the
board looks like this, do this move. You could do that also for nXn,
but realize there is some overhead training the network once he
knows what the board dimensions are.
For a 3x3 board, I would use 9 inputs into 9 rules, with perhaps an
intermediary layer of size {number of empty boxes}.
I've played a little with 3 layer backpropagation networks on a pc
and discovered I could really bog on anything greater than about
8x8.
-Chester
Vic wrote:
>
> Hello. Among other things, I'm interested in AI.
> I wanted to do a neural net with a buddy but neither of us has any
> experience with NNs. We wanted to do a TIC-TAC-TOE like game, but with
> any number of columns and rows. I know it's easier with a more "normal"
> approach, but the point of this is not the tic-tac-toe, it's the neural
> net. So, the question is, what neural net can I use here , and where can
> I read more about it?
> the only way this is related to DJGPP is that I would use DJGPP/Allegro
> to do it :)
>
> TIA,
- Raw text -