This file contains 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 datetime | |
import pathlib | |
import pickle | |
import sys | |
class Board: | |
def __init__(self, size_x: int, size_y: int, value: str): | |
self._size_x = size_x | |
self._size_y = size_y |
This file contains 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
from PIL import Image | |
import datetime | |
import os.path | |
def getnewsize(size, direction): | |
if direction == 'V': | |
return (size[0], size[1]*number) | |
elif direction == 'H': | |
return (size[0]*number, size[1]) | |
return (0, 0) |
This file contains 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 win32gui, win32api, win32con, ctypes | |
class Mouse: | |
"""It simulates the mouse""" | |
MOUSEEVENTF_MOVE = 0x0001 # mouse move | |
MOUSEEVENTF_LEFTDOWN = 0x0002 # left button down | |
MOUSEEVENTF_LEFTUP = 0x0004 # left button up | |
MOUSEEVENTF_RIGHTDOWN = 0x0008 # right button down | |
MOUSEEVENTF_RIGHTUP = 0x0010 # right button up | |
MOUSEEVENTF_MIDDLEDOWN = 0x0020 # middle button down |