shithub: puzzles

Download patch

ref: 9be7db547aa2eba68492dc3326ea36ebeeb63505
parent: 418cb3a5671404d2d91bf221887df2be2ae2654f
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Feb 13 18:22:59 EST 2023

Add a game_state argument to decode_ui()

Some games would like a way to check that the parameters in the encoded
UI string are consistent with the game parameters.  Since this might
depend on the current state of the game (this being what changed_state()
is for), implement this by adding a game_state parameter to decode_ui().
Nothing currently uses it, though Guess usefully could.