game package

Submodules

game.ai_wrapper module

class game.ai_wrapper.ThreadAI(pieces, settings)[source]

Bases: PyQt5.QtCore.QThread

finished_calculation
run(self)[source]

game.board module

class game.board.Board(screen)[source]

Bases: object

cords_to_pos(cords)[source]
height_margines
mapFromGlobal(glob_pos)[source]
pos_to_cords(pos)[source]
redraw()[source]
size_of_one_tile
width_margines

game.drawPiece module

class game.drawPiece.DrawPiece(game, cords, color)[source]

Bases: PyQt5.QtWidgets.QFrame

cords
mouseMoveEvent(self, QMouseEvent)[source]
mousePressEvent(self, QMouseEvent)[source]
mouseReleaseEvent(self, QMouseEvent)[source]
paintEvent(self, QPaintEvent)[source]
size_of_piece

game.game_logic module

game.game_logic.possible_attacks(cordy_pionka, cord_list_of_bottom_pieces, cord_list_of_top_pieces)[source]
game.game_logic.possible_moves(cordy_pionka, cord_list_of_bottom_pieces, cord_list_of_top_pieces)[source]

game.pieces module

class game.pieces.Pieces(game)[source]

Bases: object

add_piece(cords, color)[source]
get_piece(cords)[source]
remove_piece(cords)[source]
two_lists

:return two lists of cords of pieces. First list is list of pieces on top of the board

Module contents

class game.Game(screen, settings)[source]

Bases: object

ai_end_turn()[source]
ai_start_turn()[source]
compute_possible_moves_in_this_turn()[source]
connection_error(err)[source]
end_match()[source]
end_turn()[source]
list_of_pieces_which_can_attack() → list[source]
list_of_pieces_which_can_move() → list[source]
mp_enemy_make_move(list_of_moves)[source]
mp_enemy_special_action(command)[source]
start_match()[source]
start_multiplayer_match(connection)[source]
try_attack(piece, dest_cords)[source]
try_move(piece, dest_cords)[source]
try_to_make_a_move(piece, dest_cords)[source]
update_drawing()[source]