Created
March 1, 2017 19:38
-
-
Save guilhermemauro/590786cb9272883d87983a68f09535c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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