Skip to content

Instantly share code, notes, and snippets.

@guilhermemauro
Created March 1, 2017 19:38
Show Gist options
  • Save guilhermemauro/590786cb9272883d87983a68f09535c1 to your computer and use it in GitHub Desktop.
Save guilhermemauro/590786cb9272883d87983a68f09535c1 to your computer and use it in GitHub Desktop.
import numpy as np
import cv2
import tictactoe as tic
import time
#choose X and O color for color detection
CARD_COLOR_UP = np.array([255,255,255],dtype="uint8")
CARD_COLOR_LOW = np.array([150,150,150],dtype="uint8")
#font to cv2.putText
FONTE = cv2.FONT_HERSHEY_SIMPLEX
global choose_user, player, computer
KERNEL = np.ones((3,3),np.uint8)
choose_user = True
game = True
init = False
last_time = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment