Skip to content

Instantly share code, notes, and snippets.

@cluelessperson
Created October 15, 2019 18:29
Show Gist options
  • Save cluelessperson/a9e69eac5e99db2bf10789a3bd9df352 to your computer and use it in GitHub Desktop.
Save cluelessperson/a9e69eac5e99db2bf10789a3bd9df352 to your computer and use it in GitHub Desktop.
default_state = {
"turn": 1,
"player_count": 1,
"players": [
{
"score": 0,
"depth": 0,
"turned_back": False,
"haul": {
"stacks": 0,
"lvl1": 0,
"lvl2": 0,
"lvl3": 0,
"lvl4": 0
}
}
],
"board": [
{
"lvl1": 1 if 0 <= i <= 7 else 0,
"lvl2": 1 if 8 <= i <= 15 else 0,
"lvl3": 1 if 16 <= i <= 23 else 0,
"lvl4": 1 if 24 <= i <= 31 else 0
}
for i in range(32)
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment