
Goal
To create tow player Tic Tac Toe game using classes, a matrix and using exceptions
Example
Consider the following game play:
1|2|3 ----- 4|5|6 ----- 7|8|9 Player X enter a move:1 X|2|3 ----- 4|5|6 ----- 7|8|9 Player O enter a move:2 X|O|3 ----- 4|5|6 ----- 7|8|9 Player X enter a move:3 X|O|X ----- 4|5|6 ----- 7|8|9 Player O enter a move:2 (0,1) is taken! Player O enter a move:d Move must be a number! Player O enter a move:20 Move must be in range 1-9! Player O enter a move:4 X|O|X ----- O|5|6 ----- 7|8|9 Player X enter a move:5 X|O|X ----- O|X|6 ----- 7|8|9 Player O enter a move:6 X|O|X ----- O|X|O ----- 7|8|9 Player X enter a move:7 X|O|X ----- O|X|O ----- X|8|9 Wow! X wins!
Program Shell Here is a start: https://repl.it/@JimSkon/TicTacToeStart
Complete this program with game play as seen above.
Grading
| Requirement | Points | Comments | Score |
|---|---|---|---|
| Meets all requirements | 70 | ||
| Code is broken up into functions (Including the ones provided), with one specific task per function | 10 | ||
| Each function is commented at top of function, after the function name | 10 | ||
| Program has meaningful comments, good variable names, and good formatting | 10 | ||
| Total | 100 |
