コード例 #1
0
ファイル: main_no_arm.py プロジェクト: xuhui/robo_tictactoe
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)
コード例 #2
0
ファイル: main.py プロジェクト: grassjelly/robo_tictactoe
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)
コード例 #3
0
ファイル: main.py プロジェクト: grassjelly/robo_tictactoe
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)
コード例 #4
0
ファイル: main_no_arm.py プロジェクト: xuhui/robo_tictactoe
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)