Code Legions0.133 (beta)
HomeCode KingdomExercises
Sign in
Code KingdomQuestsGame modesCreateGalleryGuide

5Programs and systems

Many scripts at once, talking through messages: searching, sorting, graphs, modules and the final project.

0 of 26 quests 0

You're playing as a guest: your progress won't be saved until you sign in.

Sign in Make an account

1 Searching and sorting

Searching one by one, halving to search faster, and sorting by hand.

2 Messages and events

A village that talks: notes, broadcasts, waiting, news from the game, and states.

3 Graphs

Depth-first and breadth-first search, weighted paths and tours on the map's grid.

4 Clean code

Style, constants, type hints, refactoring, and a whole village for the final project.

5 Modules

Code from elsewhere: three ways to import, names that hide imports, and reading the documentation.