|
|
@ -28,6 +28,16 @@
|
|
|
|
// a little Zig program to help him plan his trips through the woods,
|
|
|
|
// a little Zig program to help him plan his trips through the woods,
|
|
|
|
// but it has some mistakes.
|
|
|
|
// but it has some mistakes.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
// *************************************************************
|
|
|
|
|
|
|
|
// * A NOTE ABOUT THIS EXERCISE *
|
|
|
|
|
|
|
|
// * *
|
|
|
|
|
|
|
|
// * You do NOT have to read an understand every bit of this *
|
|
|
|
|
|
|
|
// * program. This is a very big example. Feel free to skim *
|
|
|
|
|
|
|
|
// * through it and then just focus on the few parts that are *
|
|
|
|
|
|
|
|
// * actually broken! *
|
|
|
|
|
|
|
|
// * *
|
|
|
|
|
|
|
|
// *************************************************************
|
|
|
|
|
|
|
|
//
|
|
|
|
const print = @import("std").debug.print;
|
|
|
|
const print = @import("std").debug.print;
|
|
|
|
|
|
|
|
|
|
|
|
// The grue is a nod to Zork.
|
|
|
|
// The grue is a nod to Zork.
|
|
|
|