8.12.04

Tic Tac Toe is HARD!!!

...or coding it is. When my brain was unable to fathom creating a set of rules for a computer to follow (mostly because I had painted myself into a corner with my earlier "dumb" design), I set out to encoding every possible situation that could arrise, and the approrpriate action for the computer to take. It was all going rather well... Until the compiler decided I had too many nested "if statements." Sigh. So I gave up. Cropped the situations list to an acceptable amount, and had my dumb function solve anything it couldn't. And you know what, I'm tired, I don't care right now. In future, though, I'll give myself more than a night on programming AIs.

No comments: