Voyager's automatic curriculum proposes the next task based on what the agent has already done. The simplest version walks the proposed tasks in order and skips completed ones.
Implement next_task(done, candidates), returning the first unfinished candidate.
Scan the candidates in order and return the first not present in the done set.
No results yet
Run your code to check it against the examples, or submit to run every test.