Skip to content

Commit

Permalink
stop doing stupid hacky thing
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslowry committed Sep 1, 2024
1 parent ee31d80 commit f54c607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/arrange.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'''Helpers to set up a game for testing'''
from typing import Callable, Optional
from uuid import uuid4

from hundredandten.actions import Bid, Discard, Play, SelectTrump
from hundredandten.constants import (AnyStatus, BidAmount, GameRole,
Expand Down Expand Up @@ -93,7 +94,7 @@ def __get_waiting_for_players_game(seed: Optional[str]) -> Game:
people=Group(
list(map(
lambda identifier: Person(str(identifier), roles={GameRole.PLAYER}),
range(4)))), **{k: v for k, v in {'seed': seed}.items() if v is not None})
range(4)))), seed=seed or str(uuid4()))
new_game.people.add_role(new_game.people[0].identifier, GameRole.ORGANIZER)
return new_game

Expand Down

0 comments on commit f54c607

Please sign in to comment.