Skip to content

Flatten nested animation profiles so they load from the gallery - #24

Merged
nirlipo merged 1 commit into
masterfrom
gallery/restructure-nested-profiles
Oct 12, 2026
Merged

nirlipo merged 1 commit into
masterfrom
gallery/restructure-nested-profiles

Conversation

@nirlipo

@nirlipo nirlipo commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

The demo gallery only reads files at the top of each AnimationProfiles/<folder>. These profiles kept their problems in subfolders, so they couldn't be loaded. This PR adds 7 gallery cards.

Before After
FlowFree/ (2 domains, problems in EdgyStrategy/, Pre-Strategy/) FlowFree/ (edgy) and FlowFree-Pre-Strategy/, each flat with its own domain, problems and the shared profile
Switching-soldier/: 8 size folders, each with a copy of the domain and a size-specific profile One domain, one shared profile, 8 problems
pddl_grid_problems/examples/{bloxorz,lights-out,sokoban,traffic-rush} Bloxorz/, Lights-Out/, Sokoban/, Traffic-Rush/; the project folder keeps its README (links updated), report, scripts and archived examples

Other changes:

  • Switching-soldier profile: the old profiles hard-coded each ground cell's x position per size. The new ap_switching_soldier.pddl places cells with distributex, so one profile works for every size. Ground labels are off; they overlapped at 20+ cells.
  • Fixed the 3plus3 problem, which was named prob_2plus2_with_3_clear. Removed the 8 duplicate domain files and old_files/.
  • Renamed Bloxorz problem-basic-large to problem-large so the default problem is one the online planner solves.
  • Covers and descriptions for all 7 new cards. Bloxorz, Lights Out and Traffic Rush added to AnimationProfiles/Readme.md.

Test plan

  • Every problem sent to planimation.planning.domains/upload/pddl with the default BFWS planner. All 8 Switching-soldier sizes render with the shared profile.
  • Frontend-JS Add gallery covers and descriptions for 12 animation profiles #23 built against this branch: 24 gallery cards (was 17), each new card loaded through the gallery and animated in headless Chromium.

Known issues, not caused by this PR:

  • Planner timeouts: FlowFree 7x7/8x8 (edgy), 8x8 (pre-strategy), Bloxorz problem-large and Lights-Out problem5x5 time out on the online planner.
  • Initial state only: FlowFree problem2_6x6_edgy_fd and problem2_7x7_edgy_fd return only the initial state. They look written for Fast Downward; plans are in Plans/.
  • Backend error: Lights-Out problem2 and problem3 fail with unhashable type: 'dict'.

Depends on planimation/Frontend-JS#23 (file matching and natural sort). Without it, these cards' problem lists stay empty.

🤖 Generated with Claude Code

The demo gallery only reads files at the top of each AnimationProfiles
folder, so FlowFree, Switching-soldier and the pddl_grid_problems games
could not be loaded.

- FlowFree: split into FlowFree (edgy strategy) and FlowFree-Pre-Strategy,
  each with its domain, its own problems and the shared profile.
- Switching-soldier: replace the 8 size-specific profiles (hard-coded x
  positions) with one profile that lays out ground cells with distributex;
  all 8 problems now sit beside one domain. Drop the duplicated domain
  copies and old_files. Fix the 3plus3 problem's name.
- pddl_grid_problems: move Bloxorz, Lights-Out, Sokoban and Traffic-Rush
  to their own folders and update the project README links. Rename
  Bloxorz problem-basic-large to problem-large so the default problem is
  one the online planner solves.
- Add covers and descriptions for the 7 new cards; list the new games in
  AnimationProfiles/Readme.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nirlipo
nirlipo merged commit cc7dab6 into master Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant