Skip to content

Instantly share code, notes, and snippets.

@selfsame
Created May 7, 2014 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selfsame/e61a3a9dbea673aaba83 to your computer and use it in GitHub Desktop.
Save selfsame/e61a3a9dbea673aaba83 to your computer and use it in GitHub Desktop.
"The space captain" by Joseph Parker
Chapter 1 - Declarations
A zone is a kind of container. Zones are usually enterable. Zones are usually transparent.
A galaxy is a kind of room.
A cluster is a kind of zone.
A system is a kind of zone.
A sun is a kind of zone.
A planet is a kind of zone.
A moon is a kind of zone.
The beacon is a unmentioned thing. The description of beacon is "your ship".
The beacon is not marked for listing.
A zone is usually marked for listing.
A ship is a kind of room.
The unformed room list is a list of objects that varies.
First when play begins (this is the Ships initialization rule):
now the unformed room list is the list of ships.
A module is a kind of container. Modules are usually enterable. Modules are usually transparent.
A bridge-module is a kind of module.
A bridge-module (called bridge) is usually inside every ship.
A module (called engine room) is usually inside every ship.
A module has a description "a boring module.".
[A color is a kind of value. A color can be red, yellow, white.]
A sun is in every system. [Every sun has a color.]
Before printing the name of a ship when the holder of the player is transparent:
let H be the holder of beacon;
let J be the holder of H;
let K be the holder of J;
say "[K] : [J] : [H] : ";
Before printing the locale description of the ship when the player is inside the bridge:
say "[line break]On the view screen: [line break]";
place the holder of beacon in scope;
Let parent be the holder of beacon;
list the contents of parent, indented, with newlines, and including all contents;
say "[line break]"
Section 2 - Organizations
An organization is a kind of thing.
Membership relates various people to one organization.
The verb to be a member of implies the membership relation.
A rank is a kind of thing. A rank has a number called importance.
Appointment relates one person to one rank.
The verb to be a appointed implies the appointment relation.
Definition: a person (called P) is captain if the rank of P is 5.
Before printing the name of a person (called P) when P is a member of an organization (called O):
say "[rank of P] ";
Section 3 - Machinery
A console is a kind of device.
A navigation-console is a kind of console.
A navigation-console is usually inside every bridge-module.
Understand the commands "plot" or "set plot" or "set a plot/course" as something new.
Understand "set plot for [something]" or "set a course for [something]" as plotting for.
Plotting for is an action applying to one visible thing.
Carry out an actor plotting for:
if the noun is a zone:
say "setting plot for [noun]".;
otherwise:
say "you can't set a course for that".;
Chapter 2 - Rules
Chapter 3 - Gameplay
Chapter 4 - Zones
The Milky Way is a galaxy. "Stars and gases at a wide range of distances from the Galactic center orbit at approximately 220 kilometers per second."
A frog is an animal.
The Orion Nebula is a cluster in the Milky Way. "The Orion Nebula contains a very young open cluster, known as the Trapezium due to the asterism of its primary four stars. Two of these can be resolved into their component binary systems on nights with good seeing, giving a total of six stars. The stars of the Trapezium, along with many other stars, are still in their early years."
Betelguese is a system in the Orion Nebula. "Distinctly reddish, it is a semiregular variable star whose apparent magnitude varies between 0.2 and 1.2, the widest range of any first-magnitude star. Betelgeuse is one of three stars that make up the Winter Triangle, and it marks the center of the Winter Hexagon."
B12 is a planet in Betelguese.
Luna is a moon in B12.
Chapter 5 - Init
Star Fleet is an organization.
after deciding the scope of the player when the player is inside the bridge:
place the holder of beacon in scope;
The beacon is in B12.
The spaceship is a ship.
The bridge is a module in the spaceship.
The player is inside the bridge.
A man called Picard is inside the bridge. Picard is a member of Star Fleet.
The player is wearing a space suit. "It's a stiff suit."
[α (Betelgeuse) β (Rigel) γ (Bellatrix) δ (Mintaka) ε (Alnilam) ζ (Alnitak) η (Algjebba)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment