Lune

Abstract

Block-based visual programming environments play a critical role in introducing computing concepts to K-12 students. One of the key pedagogical challenges in these environments is in designing new practice tasks for a student that match a desired level of difficulty and exercise specific programming concepts. In this paper, we formalize the problem of synthesizing visual programming tasks. In particular, given a reference visual task Tin\rm T^{in} and its solution code Cin\rm C^{in}, we propose a novel methodology to automatically generate a set {(Tout,Cout)}\{(\rm T^{out}, \rm C^{out})\} of new tasks along with solution codes such that tasks Tin\rm T^{in} and Tout\rm T^{out} are conceptually similar but visually dissimilar. Our methodology is based on the realization that the mapping from the space of visual tasks to their solution codes is highly discontinuous; hence, directly mutating reference task Tin\rm T^{in} to generate new tasks is futile. Our task synthesis algorithm operates by first mutating code Cin\rm C^{in} to obtain a set of codes {Cout}\{\rm C^{out}\}. Then, the algorithm performs symbolic execution over a code Cout\rm C^{out} to obtain a visual task Tout\rm T^{out}; this step uses the Monte Carlo Tree Search (MCTS) procedure to guide the search in the symbolic tree. We demonstrate the effectiveness of our algorithm through an extensive empirical evaluation and user study on reference tasks taken from the Hour of the Code: Classic Maze challenge by this http URL and the Intro to Programming with Karel course by this http URL.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. KASER: Knowledge-Aligned Student Error Simulator for Open-Ended Coding TasksZhangqi Duan, Nigel Fernandez, Andrew LanACL 2026 · 5 citations
  2. RePurr: Automated Repair of Block-Based Learners' ProgramsSebastian Schweikl, Gordon FraserFSE 2025

Related papers

  1. Reinforcement Learning and Data-Generation for Syntax-Guided SynthesisJulian Parsert, Elizabeth PolgreenAAAI 2024 · 7 citations
  2. Parametric Visual Program Induction with Function ModularizationXuguang Duan, Xin Wang, Ziwei Zhang, Wenwu ZhuICML 2022 · 3 citations
  3. TURTLEAI: Benchmarking Multimodal Models for Visual Programming in Turtle GraphicsChao Wen, Jacqueline Staub, Adish SinglaACL Findings 2026
  4. Visualization by exampleChenglong Wang, Yu Feng, Rastislav Bodík, Alvin Cheung et al.POPL 2020 · 36 citations
  5. Visual StoryCoder: A Multimodal Programming Environment for Children's Creation of StoriesGriffin Dietz, Nadin Tamer, Carina Ly, Jimmy K. Le et al.CHI 2023 · 21 citations
Dusk over the sea between two cliffs drawn in fine vertical lines