Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions games/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,31 @@
},
gui='v3'),

'lunarlockout': Game(
name='Lunar Lockout',
variants={
ui_name: Variant(
name=ui_name,
data_provider=GamesmanPy,
data_provider_game_id='lunarlockout',
data_provider_variant_id=internal_name,
gui='v3'
)
for ui_name, internal_name in {
"Beginner 1": "beginner-1",
"Beginner 2": "beginner-2",
"Easy 16": "easy-16",
"Easy 17": "easy-17",
"Medium 28": "medium-28",
"Medium 29": "medium-29",
"Hard 34": "hard-34",
"Hard 35": "hard-35",
}.items()
},
is_two_player_game=False,
gui='v3'
),

'mancala': Game(
name='Mancala',
variants={
Expand Down
34 changes: 33 additions & 1 deletion games/image_autogui_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,38 @@ def get_lite3(variant_id):
}
}
}


def get_lunarlockout(variant_id):
return {
"defaultTheme": "regular",
"themes": {
"regular": {
"space": [7, 7],
"centers": [[col + 0.5, row + 0.5] for row in range(7) for col in range(7)],
"background": "lunarlockout/board.svg",
"charImages": {
"0": {"image": "lunarlockout/robotcat0.svg", "scale": 1},
"1": {"image": "lunarlockout/robotcat1.svg", "scale": 1},
"2": {"image": "lunarlockout/robotcat2.svg", "scale": 1},
"3": {"image": "lunarlockout/robotcat3.svg", "scale": 1},
"4": {"image": "lunarlockout/robotcat4.svg", "scale": 1},
"5": {"image": "lunarlockout/robotcat5.svg", "scale": 1},
},
"arrowWidth": 0.06,
"entitiesOverArrows": True,
"animationType": "simpleSlides",
"sounds": {
"0": "general/slide.mp3",
"1": "general/place.mp3",
"2": "general/place.mp3",
"3": "general/place.mp3",
"4": "general/place.mp3",
"5": "general/place.mp3",
}
}
}
}

def get_mutorere(variant_id):
return {
"defaultTheme": "octagon",
Expand Down Expand Up @@ -2791,6 +2822,7 @@ def get_orbito(variant_id):
"lgame": get_lgame,
"lightsout": get_lightsout,
"lite3": get_lite3,
"lunarlockout": get_lunarlockout,
"mutorere": get_mutorere,
"neutron": get_neutron,
"nim": get_nim,
Expand Down