Exemple #1
0
def drawComputerMoves(image):
    # Draws all the computer's moves on the frame
    for move in board.getSquares('O'):
        x = regions.center()[move][0]
        y = regions.center()[move][1]
        cv2.rectangle(image, (x - 40, y - 40), (x + 40, y + 40), (255, 0, 0),
                      10)
Exemple #2
0
def drawComputerMoves(image):
    # Draws all the computer's moves on the frame
    for move in board.getSquares('O'):
        x = regions.center()[move][0]
        y = regions.center()[move][1]
        cv2.rectangle(image, (x - 40, y - 40), (x + 40, y + 40), (255, 0, 0), 10)
Exemple #3
0
def drawOpponentMoves(image):
    # Draws all the opponent's moves on the frame
    for move in board.getSquares('X'):
        x = regions.center()[move][0]
        y = regions.center()[move][1]
        cv2.circle(image, (x, y), 40, (0, 0, 255), 10)
Exemple #4
0
def drawOpponentMoves(image):
    # Draws all the opponent's moves on the frame
    for move in board.getSquares('X'):
        x = regions.center()[move][0]
        y = regions.center()[move][1]
        cv2.circle(image, (x, y), 40, (0, 0, 255), 10)