Skip to content

Commit

Permalink
Host progress
Browse files Browse the repository at this point in the history
  • Loading branch information
jporubci committed Jun 4, 2023
1 parent 1eda02f commit 36fdd01
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 734 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

TODO:

* Start making the actual game!
* Implement client player
* Implement Draw
* Fix broken client coro or something
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def __init__(self):
self.SPADE = '\U00002663'
self.HEART = '\U00002665'
self.DIAMOND = '\U00002666'
self.SUITS = [ CLUB, SPADE, HEART, DIAMOND ]
self.SUITS = [ self.CLUB, self.SPADE, self.HEART, self.DIAMOND ]
4 changes: 2 additions & 2 deletions lobby.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async def displayJoin(state_info):
return

# Check client names
async with asyncio.timeout(state_info.settings.DELAY):
async with asyncio.timeout(Settings().DELAY):
try:
while state_info.handle.client_names == None:
await asyncio.sleep(0)
Expand Down Expand Up @@ -333,7 +333,7 @@ async def menuState(state_info):
state_info.handle = Host()

# Create server object
state_info.handle.server = await asyncio.start_server(state_info.handle.handle_client, host=socket.gethostname(), backlog=state_info.settings.MAX_CLIENTS)
state_info.handle.server = await asyncio.start_server(state_info.handle.handle_client, host=socket.gethostname(), backlog=Settings().MAX_CLIENTS)

# Save port for registration and shutdown
state_info.handle.port = state_info.handle.server.sockets[0].getsockname()[1]
Expand Down
211 changes: 0 additions & 211 deletions old/client.py

This file was deleted.

Loading

0 comments on commit 36fdd01

Please sign in to comment.