References

Levels

FQM

🎮 What is Function Quest?

Function Quest is a logic-based puzzle game where players solve levels by reading a narrative story and deducing a sequence of function calls that will achieve a specified goal. Unlike traditional coding games, Function Quest is not about writing or executing code — it's about understanding and reasoning with a list of named functions.

Each level presents a short story ("problem statement") and a list of available functions. These functions are described by their names, purposes, and return values. Players must analyze the story, mentally simulate the effects of functions, and logically determine the correct chain of calls needed to win.


🎯 Game Objective

Your objective in each level is to use the available functions in the correct order (with the right parameters) to achieve the level's stated goal — such as unlocking a door, escaping a room, or solving a mechanical puzzle.

Each function has a predictable effect, and there's always a single or minimal path to the goal, which the player must deduce.


🧠 Game Rules

  1. Fixed Function Set: Each level gives you a curated list of functions. These are your only tools.
  2. No Guesswork: The logic is fully deductible from names, descriptions, return values, and story context.
  3. Logical Sequencing: The correct sequence must match the narrative's implied logic.
  4. Repetition Allowed: You may call functions more than once unless a specific constraint forbids it.
  5. Winning: You win a level when your final function returns the target success value (e.g., "The door opens!").

🧾 Narrative-Based Problem Statements

Every level begins with a short passage written in natural language. These Problem Statements describe a scene or action sequence that hides a logical structure the player must uncover.

These narratives: