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

> every possible permutation of 5 Xs and 4 Os

This would not include all possible end game states. A value is either X or O or empty. It's possible to end with empties.



Which is touched on; you don't need to evaluate game states, you merely need to count them. A game that ended with X or O before the board filled out could still have additional Xs and Os written on it; while that would "lose" the winning state, it's immaterial since you aren't interested in the state, just the outcomes (or, possibly, the ways to get there).




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

Search: