Skip to content

Commit

Permalink
mainly meld calculations and stuff and lay offs
Browse files Browse the repository at this point in the history
  • Loading branch information
jporubci committed Jul 4, 2023
1 parent 7ac8040 commit ec53d8f
Show file tree
Hide file tree
Showing 4 changed files with 350 additions and 139 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

TODO:

* Implement client player
* Implement Draw
* Fix broken client coro or something
* Fix drawing when option not presented
3 changes: 3 additions & 0 deletions host.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ async def handle_client(self, reader, writer):
elif message['command'] == 'leave':
# Trigger shutdown for this client handler
self.clients[(reader, writer)]['shutdown'].set()

else:
return

# Shutdown
writer.close()
Expand Down
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def __init__(self, rank, suit):

# Decomposes cards
def decompose(cards):
return [(card.rank, card.suit) for card in cards]
return [[card.rank, card.suit] for card in cards]

# Composes cards
def compose(cards):
return
return [Card(card[0], card[1]) for card in cards]


class Player:
Expand Down
Loading

0 comments on commit ec53d8f

Please sign in to comment.