-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
150 additions
and
63 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Place | ||
relation of colors: counterpart relation | ||
"whether or not the counterpart relation is empty" = truth state: true | ||
relation of colors: counterpart relation | ||
Counterpart relates one color to one color: | ||
red >=> blue | ||
orange >=> green | ||
"whether or not the counterpart relation is empty" = truth state: false | ||
relation of colors: counterpart relation | ||
"whether or not the counterpart relation is empty" = truth state: true | ||
relation of colors: counterpart relation | ||
Counterpart relates one color to one color: | ||
yellow >=> indigo | ||
"whether or not the counterpart relation is empty" = truth state: false | ||
relation of people to colors: pairing relation | ||
"whether or not the pairing relation is empty" = truth state: true | ||
relation of people to colors: pairing relation | ||
Pairing relates one person to one color: | ||
Alice >=> red | ||
Bob >=> orange | ||
"whether or not the pairing relation is empty" = truth state: false | ||
relation of people to colors: pairing relation | ||
"whether or not the pairing relation is empty" = truth state: true | ||
relation of people to colors: pairing relation | ||
Pairing relates one person to one color: | ||
Carl >=> yellow | ||
"whether or not the pairing relation is empty" = truth state: false | ||
|
||
Welcome | ||
An Interactive Fiction | ||
Release 1 / Serial number 160428 / Inform 7 v10.2.0 / D | ||
|
||
Place | ||
You can see Alice, Bob and Carl here. | ||
|
||
> > Place | ||
> Are you sure you want to quit? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Test: EmptyOToORelations | ||
For: Z-Machine | ||
|
||
Place is a room. | ||
|
||
A color is a kind of value. The colors are red, orange, yellow, green, blue, indigo and violet. | ||
|
||
Counterpart relates one color to one color. The verb to counter means the counterpart relation. | ||
|
||
When play begins: | ||
show relation the counterpart relation; | ||
showme whether or not the counterpart relation is empty; | ||
now red counters blue; | ||
now orange counters green; | ||
show relation the counterpart relation; | ||
showme whether or not the counterpart relation is empty; | ||
now the counterpart relation is empty; | ||
show relation the counterpart relation; | ||
showme whether or not the counterpart relation is empty; | ||
now yellow counters indigo; | ||
show relation the counterpart relation; | ||
showme whether or not the counterpart relation is empty; | ||
|
||
Alice is a woman in Place. | ||
|
||
Bob is a man in Place. | ||
|
||
Carl is a man in Place. | ||
|
||
A color is a kind of value. The colors are red, orange, yellow, green, blue, indigo and violet. | ||
|
||
Pairing relates one person to one color. The verb to pair with means the pairing relation. | ||
|
||
When play begins: | ||
show relation the pairing relation; | ||
showme whether or not the pairing relation is empty; | ||
now Alice pairs with red; | ||
now Bob pairs with orange; | ||
show relation the pairing relation; | ||
showme whether or not the pairing relation is empty; | ||
now the pairing relation is empty; | ||
show relation the pairing relation; | ||
showme whether or not the pairing relation is empty; | ||
now Carl pairs with yellow; | ||
show relation the pairing relation; | ||
showme whether or not the pairing relation is empty; |