Skip to content

razi-tm/tictactoe-state-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tic-Tac-Toe State Detection

Description

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.

File Structure

  • tic_tac_toe.py: Contains the check_state function.

Dependencies

  • OpenCV (cv2)
  • NumPy

Usage

from tic_tac_toe import check_state
state = check_state("path/to/image.jpg")
print(state)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages