Fix pylint issues
This commit is contained in:
parent
d1c09dcd61
commit
08dc8367c5
2 changed files with 12 additions and 3 deletions
|
|
@ -142,7 +142,14 @@ ui_group = Group()
|
|||
main_group.append(ui_group)
|
||||
|
||||
# Create the game logic object
|
||||
game_logic = GameLogic(display, game_grid, swap_piece, selected_piece_group, GAME_PIECES) # pylint: disable=no-value-for-parameter
|
||||
# pylint: disable=no-value-for-parameter, too-many-function-args
|
||||
game_logic = GameLogic(
|
||||
display,
|
||||
game_grid,
|
||||
swap_piece,
|
||||
selected_piece_group,
|
||||
GAME_PIECES
|
||||
)
|
||||
|
||||
# Create the mouse graphics and add to the main group
|
||||
mouse = find_and_init_boot_mouse("/bitmaps/mouse_cursor.bmp")
|
||||
|
|
|
|||
|
|
@ -386,7 +386,8 @@ class GameLogic:
|
|||
|
||||
return True, len(all_matches) > 0
|
||||
|
||||
def check_horizontal_match(self, grid, row, column, piece):
|
||||
@staticmethod
|
||||
def check_horizontal_match(grid, row, column, piece):
|
||||
"""Check for horizontal 3-in-a-row matches centered
|
||||
around or including the given position."""
|
||||
matches = []
|
||||
|
|
@ -404,7 +405,8 @@ class GameLogic:
|
|||
|
||||
return matches
|
||||
|
||||
def check_vertical_match(self, grid, row, column, piece):
|
||||
@staticmethod
|
||||
def check_vertical_match(grid, row, column, piece):
|
||||
"""Check for vertical 3-in-a-row matches centered around or including the given position."""
|
||||
matches = []
|
||||
rows = len(grid)
|
||||
|
|
|
|||
Loading…
Reference in a new issue