This assignment does not count toward the final grade.
PA submission: n in a Row Game Level 1 (Tic Tac Toe)
- Due No Due Date
- Points 1
- Submitting a file upload
- File Types cpp
What should you submit here?
Your source code for the n in a row game Level 1 (Tic Tac Toe) for any of the following kinds of submissions:
- "50%" submission (at least a week before your completed submission)
- completed submission
- redo submissions
Rubric
Keep in mind that 12 students have already been assessed using this rubric. Changing it will affect their evaluations.
Criteria | Ratings | ||
---|---|---|---|
the game pits a human player (the user) against an AI (encoded in your program)
|
|
||
the player and AI have distinct markers; one is X, the other is O
|
|
||
each of the nine (9) spots on the tic tac toe board are represented with variables (or a vector), each keeping track of which player's marker is at that spot or if it's open
|
|
||
the main logic of the program is coded in the body of a loop that finishes when the game is over
|
|
||
on each iteration of the loop, the player is given a turn, followed by the AI
|
|
||
after each turn of either the AI or the human player, the board is displayed as a 3x3 grid with each player's marker presented in the spots they've claimed, and all unclaimed spaces are empty
|
|
||
after each player's turn, a check is made to see if one of the players has won or there is a draw
|
|
||
on the AI's turn, the AI selects an open spot randomly or one that will block the human player
|
|
||
the program compiles
|
|
||
the program runs without crashing
|
|
||
the program behaves as a "normal" player would expect
|
|
||
all output displayed by the program is well formatted and spaced nicely
|
|
||
the source code uses appropriately typed and named varaibles
|
|
||
the source code includes useful comments that clarify logical chunks of the program
|
|
||
the source code uses appropriate indentation
|
|
||
the source code uses appropriately placed blank lines to separate the code into chunks that hang well together
|
|
||
the source code includes a comment at the top stating whether you worked alone or with others, and if so, who you worked with
|
|
||
the source code includes a citation for any code not from the zyBook or from class
|
|
||
|