Computer Science 2024

HCC Website | Computer Science 2024

Assignment: Tic Tac Toe (part 3)

Due 10/23 at 11:59

In part 1 of this project, you created the functions necessary to print a game board. In part 2 you added the game state and player input. Now, it’s time to add the final touch: winning! 👑

Your program must follow these specifications:

Checking the Winner

Your new function check_winner must check the current game state (in board variable) and do the following:

Thare are several ways that you can check whether a player has three pieces in a row, it doesn’t really matter how you do it. The important thing is that a player can win, lose, or tie to end the game.

Just make sure to test your code before submitting!

Submit Assignment

When your program meets the requirements, download and submit tic_tac_toe.py (which is part 2 & 3 of the project).

Submit Assignment