Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

[1]:https://github.com/amtunlimited/ttt-js/blob/0994d6ff03b338a6...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: