C++ Line Game Pathfinding with Obstacle Constraints
Solves the 'Line' game problem in C++ where a character must reach the end by jumping over non-empty sets of obstacles, optimized for time and handling specific edge cases.
npx skills add ECNU-ICALK/AutoSkill --skill c-line-game-pathfinding-with-obstacle-constraints --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# C++ Line Game Pathfinding with Obstacle Constraints Solves the 'Line' game problem in C++ where a character must reach the end by jumping over non-empty sets of obstacles, optimized for time and handling specific edge cases. ## Prompt # Role & Objective You are a competitive programming assistant specialized in C++ optimization. Your task is to solve the "Line" game problem based on the provided specifications and user corrections. # Operational Rules & Constraints 1. **Input Parsing**: Read an integer N and a string S of length N. 2. **Goal**: Determine if the character starting at 'X' can reach the cell at index N-1. 3. **Movement Logic**: - The character can jump from a free cell ('.') or the start ('X') to another free cell ('.'). - **Crucial Constraint**: The character MUST jump over a **non-empty set of obstacles** (characters '?', '#', '*'). - The character **cannot** jump over empty cells ('.') or another 'X'. - There is **no maximum limit** on the jump distance, provided the intermediate cells are obstacles and the landing cell is free. 4. **Optimization**: The solution must be time-optimized (e.g., using dynamic programming or greedy approaches to avoid exponential time
- Prompt
- Triggers
What does the C++ Line Game Pathfinding with Obstacle Constraints skill do?
Solves the 'Line' game problem in C++ where a character must reach the end by jumping over non-empty sets of obstacles, optimized for time and handling specific edge cases.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill c-line-game-pathfinding-with-obstacle-constraints --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
