Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
Serializing Enum member to JSON
  • Loading branch information
billh0420 committed Apr 4, 2023
1 parent d9a0007 commit 0a6a45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rlcard/games/gin_rummy/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
from enum import Enum


class DealerForRound(Enum):
class DealerForRound(int, Enum):
North = 0
South = 1
Random = 2


class Setting(Enum):
class Setting(str, Enum):
dealer_for_round = "dealer_for_round"
stockpile_dead_card_count = "stockpile_dead_card_count"
going_out_deadwood_count = "going_out_deadwood_count"
Expand Down

0 comments on commit 0a6a45d

Please sign in to comment.