You bring a blank book, an ink pad, and your personal stamp, and when you find the letterbox, you stamp their book with your stamp, and your book with their stamp." The idea sounded awesome! He showed me his logbook and a couple of the stamps he'd carved, and then a little while later he bought some carving material and showed me what was up. I said no, and he described it like this: "It's sort of like geocaching, only instead of following your GPS, you follow a set of clues. I was talking about it with my roommate, and he asked if I'd ever heard of letterboxing. It's a lot of fun, and I'm still playing, but now I've added letterboxing to my outings. About a year ago I finally got a smart phone, and after a while I started finding some geocaches. If you're not familiar with geocaching, it's a sort of GPS based scavenger hunt game. ![]() I didn't have a GPS, so I pretty much filed it in the "Some Day!" section of my brain. I heard about geocaching from somewhere or another, I don't remember specifically. I got my start letterboxing through geocaching-I'm told a lot of letterboxers do. It's easy to get started and very rewarding, and somewhat similar to the more modern hobby of geocaching. This program asks the user for their name, greets them, then asks their age, and responds differently whether the user is 20 or more years old.Letterboxing is an amazing (and surprisingly old) outdoor activity that's really cool, a lot of fun, and right under your nose! In short, it's a hide and seek scavenger hunt game played by thousands of people all over the world. LcMAaab Pa ! This program should print out 2. This program increments a twice and prints the result. Hello World ! This program prints "Hello world" Anything that comes after a ! character on a single line is ignored by the interpreter. Each line of input will have its own line of output, so place your line breaks carefully.Ĭomments can also be placed in programs. If the string contains underscores, they will be printed as spaces.Ī valid Letterbox program is a series of function calls separated by spaces and/or line breaks. In lieu of this, Letterbox treats underscores (_) in strings as spaces. NOTE: No spaces are allowed in strings, because whitespace is not allowed within function calls. A string manipulator function has the form A:string where A is the function name, and everything after the colon (:) is the string you wish to pass in. Otherwise, does nothing.įor ease of I/O, Letterbox has some (albeit limited) string shortcuts. If a is true (nonzero), executes function F. Repeatedly executes function F, repeating a times. is another function call, which can have its own arguments after it. where A is the function name, b is a variable argument, and F. Prefix functions are functions that take in other functions as arguments. Pauses execution, gets input from the user of a certain type, and stores the value in a Operations: equal to, and, or, xor (exclusive or) This result will always be 0 (false) or 1 (true). Performs a boolean operation on b and c and stores the result in a. Operations: add, subtract, multiply, divide, equal to, greater than, less than Performs a mathematical operation on b and c and stores the result in a. are the variable arguments of the function. These take the form AXb., where A is the function name, X is a key letter that specifies what operation the function will perform, and b. Since there are only 26 possible simple function names in Letterbox, some functions have been combined into one in order to save letters for other functions that might possibly be implemented in the future. Using uppercase A as an argument resets all variables.īoolean negation. Variables are considered "true" if their value is nonzero, and "false" if their value is zero.įollowing are the four types of Letterbox function formats:Ī simple function follows the format Ab., where A is the function name and b. All Letterbox function names are singular uppercase English letters. No whitespace is allowed between these characters, as spaces are what separate Letterbox statements. ![]() A is the name of the function we are calling while b and c are two variables we are passing in as arguments. They can also technically hold strings (as the language is built over Python) but this implementation is buggy at best.Ī Letterbox function call generally looks like Abc. Each variable can hold a single number, which can be an integer or a decimal, positive or negative. Letterbox is case-sensitive, and uppercase letters are not variable names. Each is labeled as a lowercase letter from a to z and each is set to 0 by default. registers, for those familiar with Assembly). Letterbox programs manipulate a bank of 26 variables (a.k.a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |