This project determines the state of a Tic-Tac-Toe game using an image as input. The function analyzes the board and returns one of four states: X Wins, O Wins, Ongoing, or Draw.
tic_tac_toe.py: Contains thecheck_statefunction.
- OpenCV (
cv2) - NumPy
from tic_tac_toe import check_state
state = check_state("path/to/image.jpg")
print(state)