Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bennuttall/uno
/ functions
Functions
77 in github.com/bennuttall/uno
⨍
Functions
77
◇
Types & classes
11
↓ 44 callers
Method
play
Process the player playing a card. player: int representing player index number card: int representing index number of card
uno.py:196
↓ 21 callers
Method
playable
Return True if the other card is playable on top of this card, otherwise return False
uno.py:75
↓ 6 callers
Method
reverse
Reverse the order of the iterable.
uno.py:325
↓ 5 callers
Method
can_play
Return True if the player has any playable cards (on top of the current card provided), otherwise return False
uno.py:122
↓ 4 callers
Method
playable
Return True if the other card is playable on top of this card, otherwise return False
uno_pgz.py:84
↓ 3 callers
Method
_pick_up
Take n cards from the bottom of the deck and add it to the player's hand. player: UnoPlayer n: int
uno.py:268
↓ 3 callers
Method
_pick_up
Take n cards from the bottom of the deck and add it to the player's hand. player: UnoPlayer n: int
uno_pgz.py:278
↓ 3 callers
Method
play
Process the player playing a card. player: int representing player index number card: int representing index number of card
uno_pgz.py:206
↓ 3 callers
Method
print_hand
(self)
uno.py:385
↓ 1 callers
Method
_check_first_card
(self)
uno_pgz.py:289
↓ 1 callers
Method
_create_deck
Return a list of the complete set of Uno Cards. If random is True, the deck will be shuffled, otherwise will be unshuffled.
uno.py:158
↓ 1 callers
Method
_create_deck
Return a list of the complete set of Uno Cards. If random is True, the deck will be shuffled, otherwise will be unshuffled.
uno_pgz.py:168
↓ 1 callers
Method
_deal_hand
Return a list of 7 cards from the top of the deck, and remove these from the deck.
uno.py:173
↓ 1 callers
Method
_deal_hand
Return a list of 7 cards from the top of the deck, and remove these from the deck.
uno_pgz.py:183
↓ 1 callers
Method
_print_winner
Print the winner name if available, otherwise look up the index number.
uno.py:258
↓ 1 callers
Method
_print_winner
Print the winner name if available, otherwise look up the index number.
uno_pgz.py:268
↓ 1 callers
Method
_validate
Check the card is valid, raise exception if not.
uno.py:38
↓ 1 callers
Method
_validate
Check the card is valid, raise exception if not.
uno_pgz.py:47
↓ 1 callers
Method
can_play
Return True if the player has any playable cards (on top of the current card provided), otherwise return False
uno_pgz.py:131
↓ 1 callers
Function
draw_deck
()
uno_pgz.py:453
↓ 1 callers
Function
draw_players_hands
()
uno_pgz.py:468
↓ 1 callers
Method
reverse
Reverse the order of the iterable.
uno_pgz.py:341
↓ 1 callers
Function
show_log
()
uno_pgz.py:481
Method
__eq__
(self, other)
uno.py:35
Method
__eq__
(self, other)
uno_pgz.py:44
Method
__format__
(self, f)
uno_pgz.py:38
Method
__init__
(self, color, card_type)
uno.py:23
Method
__init__
(self, cards, player_id=None)
uno.py:98
Method
__init__
(self, players, random=True)
uno.py:139
Method
__init__
(self, iterable)
uno.py:301
Method
__init__
(self, players)
uno.py:333
Method
__init__
(self, color, card_type)
uno_pgz.py:25
Method
__init__
(self, cards, player_id=None)
uno_pgz.py:107
Method
__init__
(self, players, random=True)
uno_pgz.py:148
Method
__init__
(self, iterable)
uno_pgz.py:317
Method
__init__
(self)
uno_pgz.py:349
Method
__init__
(self, players)
uno_pgz.py:380
Method
__next__
Iteration sets the current player to the next player in the cycle.
uno.py:152
Method
__next__
(self)
uno.py:306
Method
__next__
(self)
uno.py:343
Method
__next__
Iteration sets the current player to the next player in the cycle.
uno_pgz.py:162
Method
__next__
(self)
uno_pgz.py:322
Method
__next__
(self)
uno_pgz.py:386
Method
__repr__
(self)
uno.py:29
Method
__repr__
(self)
uno.py:110
Method
__repr__
(self)
uno_pgz.py:32
Method
__repr__
(self)
uno_pgz.py:119
Method
__str__
(self)
uno.py:32
Method
__str__
(self)
uno.py:116
Method
__str__
(self)
uno_pgz.py:35
Method
__str__
(self)
uno_pgz.py:125
Method
_color
(self)
uno.py:61
Method
_color
(self)
uno_pgz.py:70
Method
_delta
(self)
uno.py:314
Method
_delta
(self)
uno_pgz.py:330
Method
card_type_short
(self)
uno.py:54
Method
card_type_short
(self)
uno_pgz.py:63
Method
color_short
(self)
uno.py:50
Method
color_short
(self)
uno_pgz.py:59
Method
current_card
(self)
uno.py:181
Method
current_card
(self)
uno_pgz.py:191
Method
current_player
(self)
uno.py:189
Method
current_player
(self)
uno_pgz.py:199
Function
game_loop
()
uno_pgz.py:445
Method
is_active
(self)
uno.py:185
Method
is_active
(self)
uno_pgz.py:195
Function
on_mouse_down
(pos)
uno_pgz.py:491
Method
pos
(self)
uno.py:318
Method
pos
(self)
uno_pgz.py:334
Method
print_hand
(self)
uno_pgz.py:430
Method
selected_card
(self)
uno_pgz.py:356
Method
selected_color
(self)
uno_pgz.py:366
Method
temp_color
(self)
uno.py:65
Method
temp_color
(self)
uno_pgz.py:74
Function
update
()
uno_pgz.py:484
Method
winner
(self)
uno.py:193
Method
winner
(self)
uno_pgz.py:203