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
"Lost Key" by Rob | |
The Prison is a room. "Dirty, smelly, and cold -- everything that you hate in a room." | |
There is a key. The key can be found or lost. The key is lost. The description is "This must be the key for the door." | |
A pile of dirt is here. | |
Instead of examining the pile of dirt when the key is lost: | |
now the key is found; |
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
"Lost Key 2" by Rob | |
The Prison is a room. "Dirty, smelly, and cold -- everything that you hate in a room." | |
There is a key. The description is "This must be the key for the door." | |
A pile of dirt is here. It is scenery. | |
Instead of examining the pile of dirt for the first time: | |
move the key to the Prison; |
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
"Lost Key 3" by Rob | |
Include Hidden Items by Krister Fundin. | |
The Prison is a room. "Dirty, smelly, and cold -- everything that you hate in a room." | |
There is a key. The description is "This must be the key for the door." The key is hidden in the Prison. | |
A pile of dirt is here. It is scenery. |
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
"Dog and Bone" by Rob Clarke | |
The Garden is a room. | |
A dog is in the Garden. It is an animal. | |
A bone is here. | |
Instead of giving the bone to the dog: | |
say "'Woof' says the dog happily!"; |
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
"Hells Kitchen" by Robert Clarke. | |
Use scoring; | |
Kitchen is a room. A Pie is in the Kitchen. Bread is in the Kitchen. | |
A Chef is a man in the Kitchen. | |
The oven is a closed openable container in the Kitchen | |
Heat is a kind of value. The heats are raw, slightly cooked, cooked, overcooked, burnt. |
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
for (var i=0; i<selection.count(); i++) { | |
var layer = selection[i]; | |
[layer setRotation:Math.random() * 360]; | |
} |
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
var currentArtboard = selection[0].parentArtboard; | |
log(currentArtboard); | |
var layer = selection[0]; | |
var layerWidth = [[layer frame] width]; | |
var layerHeight = [[layer frame] height]; | |
var frame = [layer frame]; | |
var parent = [layer parentGroup]; |
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
var currentArtboard = selection[0].parentArtboard; | |
log(currentArtboard); | |
var layer = selection[0]; | |
var layerWidth = [[layer frame] width]; | |
var layerHeight = [[layer frame] height]; | |
var frame = [layer frame]; | |
var parent = [layer parentGroup]; |
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
var layer = selection[0]; | |
var layerWidth = [[layer frame] width]; | |
var layerHeight = [[layer frame] height]; | |
var frame = [layer frame]; | |
var parent = [layer parentGroup]; | |
var widthOffset = layerWidth / 100 * 50; | |
var heightOffset = layerHeight / 100 * 60; | |
for (var row=0; row<5; row++) { |
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
// Playground - noun: a place where people can play | |
import Foundation | |
func toRoman(number: Int) -> String { | |
let romanValues = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"] | |
let arabicValues = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1] | |
var romanValue = "" |
OlderNewer