Skip to content

Commit f4d0dc7

Browse files
committed
pylint fixes, add title card
1 parent f7e6c1f commit f4d0dc7

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

Metro/Metro_RP2350_Match3/match3_game/match3_game_helpers.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,9 @@ def handle_left_click(self, player_index, coords):
580580
# if 3 cards have been clicked
581581
if len(self.clicked_cards) == 3:
582582
# check if the 3 cards make a valid set
583-
valid_set = validate_set(*self.clicked_cards)
583+
valid_set = validate_set(self.clicked_cards[0],
584+
self.clicked_cards[1],
585+
self.clicked_cards[2])
584586

585587
# if they are a valid set
586588
if valid_set:
@@ -658,7 +660,7 @@ def handle_left_click(self, player_index, coords):
658660
# load the game from the given game state
659661
self.load_from_game_state(self.game_state)
660662
# hide the title screen
661-
self.title_screen.hidden = True
663+
self.title_screen.hidden = True # pylint: disable=attribute-defined-outside-init
662664
# set the current state to open play
663665
self.cur_state = STATE_PLAYING_OPEN
664666

@@ -674,7 +676,7 @@ def handle_left_click(self, player_index, coords):
674676
# initialize a new game
675677
self.init_new_game()
676678
# hide the title screen
677-
self.title_screen.hidden = True
679+
self.title_screen.hidden = True # pylint: disable=attribute-defined-outside-init
678680
# set the current state to open play
679681
self.cur_state = STATE_PLAYING_OPEN
680682

Binary file not shown.

Metro/Metro_RP2350_Match3/tilepalettemapper_demo/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
import supervisor
6-
from displayio import Group, OnDiskBitmap, TileGrid, Palette
6+
from displayio import Group, OnDiskBitmap, TileGrid
77
from tilepalettemapper import TilePaletteMapper
88

99
# use the default built-in display,

Metro/Metro_RP2350_Match3/two_mice_demo/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import terminalio
77
import usb.core
88
from adafruit_display_text.bitmap_label import Label
9-
from displayio import Group, OnDiskBitmap, TileGrid, Palette, ColorConverter
9+
from displayio import Group, OnDiskBitmap, TileGrid, Palette
1010

1111
import adafruit_usb_host_descriptors
1212

@@ -181,4 +181,4 @@ def get_mouse_deltas(buffer, read_count):
181181

182182
# set the output string into text of the label
183183
# to show it on the display
184-
output_lbls[mouse_index].text = out_str
184+
output_lbls[mouse_index].text = out_str

0 commit comments

Comments
 (0)