Alright, back from testing tic-tac-toe. It didn't go very well, but I'm
back anyways. Currently, I'm testing the three functions passed in to
NegamaxDark, and ensuring that they work. isTerminalVertex is
functioning properly.
Added a whoseTurnIsIt function to simplify those 1s and -1s and Colors.
Tested stepTaker. Is operational, I believe. heuristicCalculator
shouldn't be implemented for a while now; I might, but I'll probably
code the step generator first.
The new C4_StepGenerator is now also working, with it's isDone and it's
next! I think I'll start building heuristicCalculator now. First, I'll
abstract a pattern-finding function that check4win and
heuristicCalculator will both use. I'll probably paraphrase the previous
line in my next commit. Cheers!
Oh goodness. I have just shifted most of the board-evaluation 'thinking'
methods out of Engine and into struct Computer. About to test, but
committing to allow reference that the previous commit will restore all
messy Computer stuff. Will start retesting methods in Computer, and
check back in IIF there are any errors. Else, will start on
heuristicCalculator. Oh! Also implemented findPattern and testPatterns.
I lied; I'm still checking in anyways. Testing done; everything is fine.
This includes the new findPattern and testPatterns. Right. Onwards to
heuristicCalculator!