Esempio n. 1
0
 def __init__(self, setup, hands):
     """
     Properties
     """
     self._setup = setup  ### Game setup data
     self._hands = hands  ### List of all played hands in the game
     self._ui = GameUI()  ### Interface object to display game history
Esempio n. 2
0
 def __init__(self):
     """
     Properties
     """
     self._blinds_maxed_out = False  ### Are the blinds at the highest value?
     self._board_name_idx = 0  ### List address for the name of the board
     self._game_data = GameData()  ### Poker Data Interface Object
     self._game_play_code = GameCode.NEW_GAME  ### What kind of game are we playing or playing back (new/load)?
     self._game_save = None  ### Object that manages saving a game finished or in progress
     self._game_theater = None  ### Plays back a finished game
     self._hand_actions = list(
     )  ### List of actions that were made in a hand
     self._ui = GameUI()  ### User Interface Object
     self._num_remaining_players = 0  ### Number of remaining players in the game
Esempio n. 3
0
import time
import keyboard
import logging
import os
import pytesseract
from fuzzywuzzy import fuzz
from playerstate import PlayerState
from gameui import GameUI

from utils import do_mousepoll, get_dock_uielement, get_route_root_uielement, get_route_blocks, read_num_jumps, DEFAULT_DOCKED_ROUTE_BLOCKS_REGION, get_box_center, read_warp_status

SCRIPT_START = time.time()

draw_buffer = []

GAMEUI = GameUI()
PLAYERSTATE = PlayerState(game_ui=GAMEUI)
LAST_FRAME_TIME = time.time()


def get_logger():
    logger = logging.getLogger(__name__)
    logger.setLevel(logging.INFO)
    consolechannel = logging.StreamHandler()
    formatter = logging.Formatter('[%(levelname)s]: %(message)s')
    consolechannel.setFormatter(formatter)
    logger.addHandler(consolechannel)
    # logger.info('THIS IS AN INFO LOG')
    return logger

Esempio n. 4
0
File: ui.py Progetto: valgma/ds_hw2
 def draw_game(self):
     self.game_frame = GameUI(self, self.connector)
     self.game_frame.show()
import sys
from gameui import GameUI
from PyQt5.QtWidgets import QApplication

if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex = GameUI()
    sys.exit(app.exec_())