added sodoku game first draft
This commit is contained in:
@@ -2,6 +2,7 @@ import cv2 as cv
|
||||
import numpy as np
|
||||
from utils import mse
|
||||
from game_base_class import GameBase
|
||||
import random
|
||||
|
||||
GREEN = 1
|
||||
YELLOW = 2
|
||||
@@ -134,9 +135,9 @@ class Sodoku(GameBase):
|
||||
return
|
||||
|
||||
def deploy_finding_to_game(self, e, i, color):
|
||||
cv.waitKey(5000)
|
||||
cv.waitKey(random.randint(4000, 6500))
|
||||
click_pt = self.get_click_point(self.data_coordinates[e, i])
|
||||
self.dig_point(click_pt[0] + self.offset_left, click_pt[1] + self.offset_down, 100)
|
||||
self.dig_point(click_pt[0] + self.offset_left, click_pt[1] + self.offset_down, 500)
|
||||
|
||||
y = 1120
|
||||
x = 850 + ((color - 1) * 110) # +100
|
||||
|
||||
Reference in New Issue
Block a user