Overview: Basic example of TODO-list based Loop Processing that progressively improves learning scores. Achieves reliable, highly visible loop processing by using TODO task management without traditional counter control.
Learning Objectives:
- Understanding basic TODO-list based loops
- Utilizing clean start functionality
- Implementing conditional loop termination
- Complete visibility of execution state
Delete variables.json if it exists Clear all TODO list items
Display "=== Learning Progress Management System Started ===".
Set {{score}} to 30 Set {{session}} to 0 Set {{learning_log}} to empty
Add the following task pair to TODO list up to 5 times:
- Execute one learning session
- If {{score}} is 70 or above, delete remaining tasks and terminate
Execute TODO list tasks sequentially from top
For each "Execute one learning session" task:
- Add 1 to {{session}}
- Display "--- Learning Session {{session}} Started ---"
- Add 12 to {{score}} (learning effect)
- Append "Learning+12 points" to {{learning_log}}
- Display "--- Learning Session {{session}} Completed ---"
- Display "Current score: {{score}}"
After all TODO tasks complete:
Display "=== Learning Results Report ===".
Report the following learning outcomes:
- Final learning score: {{score}}
- Number of learning sessions executed: {{session}}
- Learning trajectory: {{learning_log}}
Summarize learning effectiveness and future recommendations.
Initial State: Score 30, Session 0 Goal: Score 70 or above Expected Execution Pattern:
- Session 1: 30→42 (continue)
- Session 2: 42→54 (continue)
- Session 3: 54→66 (continue)
- Session 4: 66→78 (condition met! delete remaining tasks)
Technical Features:
- No counter management required for stability
- Complete progress visibility through TODO list state
- Reliable conditional termination through dynamic task deletion