Skip to content

Instantly share code, notes, and snippets.

@mostlygeek
Created February 8, 2024 06:10
Show Gist options
  • Save mostlygeek/515c83fc49a3da7398fd2f023a5de074 to your computer and use it in GitHub Desktop.
Save mostlygeek/515c83fc49a3da7398fd2f023a5de074 to your computer and use it in GitHub Desktop.
- reel layout
- payline layouts
-
# lives with the python code:
/game_data/
/slots
shrek.json
luckylady.json
stardust.json
/bonus_games
bonus1.json
# Schema:
{
"game_type": "slots",
"reel_layout": [
[ ... ]
],
"paylines": [
[2,1],[2,2],...
],
"images": {
"Minor 1": "some-image.png",
"Minor 2": "another-image.png",
},
".... something else for client": {
}
}
# Client / Server interaction
Client --> GET /game/shrek GET /game/
Server -->
{
"paylines": [
[2,1],[2,2],...
],
"images": {
"Minor 1": "some-image.png",
"Minor 2": "another-image.png",
},
".... something else for client": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment