Making a new branch so I can experiment with this (broken) test. This test reflects what the scores should look like on the 3rd move overall.
Corners are valuable realestate. They get an extra point if they are unoccupied.
Getting rid of the global wp_SCORES. The board scores can be calculated from move to move so there is no real advantage to having the memory (in terms of high numbers). Additonally this will make testing/verification much easier.
Zero out the score of cells that have already been played. This is being done to simplify the processing logic (just let it run on 'invalid' cells and then we just clean up at the end.)
Adding in checks for neighboring cells, and adjusting the score accordingly.
Correcting a bug where users could overwrite a cell that had already been played
Changing order so computer goes first
Changed player to winningPlayer
Bug: Tie does not cause game to break, so added in a check to the checkForWin function.
Adding debug to look at scores
Changes to getUserInput where not reflected in the tests.
An overhaul for the scoring function. It now takes the contents of the row/column/diag into account and weights the cell heavily when it detects a win condition (skewed towards offense). The tests have also been updated to reflect this new change.