added sodoku game first draft

This commit is contained in:
2023-04-28 15:32:17 +02:00
parent 07d3f5388e
commit 81d0c09003

View File

@@ -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