fix bug expecting seed

This commit is contained in:
Maximilian Keßler 2023-08-08 12:23:42 +02:00
parent e8a6b83d43
commit 330baff33c
Signed by: max
GPG key ID: BCC5A619923C0BA5
2 changed files with 1 additions and 5 deletions

View file

@ -1,6 +1,6 @@
[project] [project]
name = "hanabi" name = "hanabi"
version = "1.1.1" version = "1.1.2"
description = "Hanabi interface" description = "Hanabi interface"
readme = "README.md" readme = "README.md"
license = { file = "LICENSE" } license = { file = "LICENSE" }

View file

@ -49,10 +49,6 @@ def parse_json_game(game_json: Dict) -> Tuple[HanabLiveInstance, List[Action]]:
if num_players < 2 or num_players > 6: if num_players < 2 or num_players > 6:
raise ParseError(num_players) raise ParseError(num_players)
seed = game_json.get('seed', None)
if type(seed) != str:
raise ParseError("Unexpected seed, expected string, got {}".format(seed))
options = game_json.get('options', {}) options = game_json.get('options', {})
var_id = variants.variant_id(options.get('variant', 'No Variant')) var_id = variants.variant_id(options.get('variant', 'No Variant'))
deck_plays = options.get('deckPlays', False) deck_plays = options.get('deckPlays', False)