The guide
The guide
This guide is one story, told from start to finish. Mira keeps score for a dice game she plays with Tomas and Ines, and you are going to write the program that adds the scores up. Over nine short chapters it grows from a program that only returns a number into one that reads a file of scores and prints each player’s total.
Read it in order the first time. Each chapter starts where the previous one stopped, and the reference section is there for later, when you know what you are looking for.
What kind of language qdx is, and the few rules that shape everything else.
Compile a program, run it, and make it print.
Numbers, truth values and bytes, and the functions that work on them.
How to repeat something in a language without loops.
Keeping a player’s name and points together.
Unions, match, and a list of results.
What the compiler tells you, and how a program stops on purpose.
Read the scores from a file and finish the program.
What the standard library is built on, and why to leave it alone.