Added TODOs
This commit is contained in:
parent
68d4eada8c
commit
0b2df69c07
21
quartett.py
21
quartett.py
|
@ -14,7 +14,7 @@ def central_function():
|
||||||
..., players_with_cards, players = initialize()[0], initialize()[1], initialize()[2]
|
..., players_with_cards, players = initialize()[0], initialize()[1], initialize()[2]
|
||||||
while deckP1 and deckP2 and deckP3 not empty:
|
while deckP1 and deckP2 and deckP3 not empty:
|
||||||
round(..., players_with_cards, players)
|
round(..., players_with_cards, players)
|
||||||
# rotate_active_player
|
# TO DO implement active_player rotation
|
||||||
|
|
||||||
|
|
||||||
def round(..., players_with_cards, players):
|
def round(..., players_with_cards, players):
|
||||||
|
@ -46,7 +46,7 @@ def choose(..., players_with_cards, players):
|
||||||
|
|
||||||
def steal(P1, P2):
|
def steal(P1, P2):
|
||||||
"""defines how the active players steals cards from chosen player """
|
"""defines how the active players steals cards from chosen player """
|
||||||
|
# TODO: write steal function
|
||||||
|
|
||||||
def initialize():
|
def initialize():
|
||||||
"""
|
"""
|
||||||
|
@ -89,3 +89,20 @@ def initialize():
|
||||||
|
|
||||||
# print(len(card_deck))
|
# print(len(card_deck))
|
||||||
# print(players_with_cards)
|
# print(players_with_cards)
|
||||||
|
return ..., players_with_cards, players # TODO: clarify what is returned, this is needed is central()
|
||||||
|
|
||||||
|
|
||||||
|
'''
|
||||||
|
players_with_cards = [
|
||||||
|
{'player': 'player0', 'cards_on_hand': [{'id': 13, 'number': 1, 'letter': 'f'},
|
||||||
|
{'id': 26, 'number': 3, 'letter': 'c'},
|
||||||
|
{'id': 22, 'number': 2, 'letter': 'g'},
|
||||||
|
{'id': 10, 'number': 1, 'letter': 'c'},
|
||||||
|
{'id': 19, 'number': 2, 'letter': 'd'},
|
||||||
|
{'id': 31, 'number': 3, 'letter': 'h'},
|
||||||
|
{'id': 6, 'number': 0, 'letter': 'g'},
|
||||||
|
{'id': 9, 'number': 1, 'letter': 'b'},
|
||||||
|
{'id': 5, 'number': 0, 'letter': 'f'},
|
||||||
|
{'id': 15, 'number': 1, 'letter': 'h'}]
|
||||||
|
},
|
||||||
|
...]'''
|
||||||
|
|
Loading…
Reference in New Issue