3 ms·
I've been working on a minimax tic tac toe solver[0] to stretch my legs in JS and I ran into this exact same bug. I ended up making objects for the positions in
by jedimastert 6y ago
I've been working on a minimax tic tac toe solver[0] to stretch my legs in JS and I ran into this exact same bug. I ended up making objects for the positions instead[1]
[0]:https://github.com/amtunlimited/ttt-js https://github.com/amtunlimited/ttt-js
[1]:https://github.com/amtunlimited/ttt-js/blob/0994d6ff03b338a6c0ca938aaaf52e3c6d5d71c9/frontend.js#L68 https://github.com/amtunlimited/ttt-js/blob/0994d6ff03b338a6...