Posts Tagged "inform"

2 posts ยท See All Tags

Scope of Variables in Inform 7

Consider this snippet of Inform 7 code:

To improve the mood of (character - an animal):
    if the mood of character is less than friendly, now the mood of the character is the mood after the mood of the character.

I am not sure whether or not the statement "the mood after the mood of the character" wraps around. That is to say, I am not sure whether the above code would "improve" the character's mood from the best one possible to the worst. I would hope it doesn't do that, but I'll have to investigate.

The if statement above can be translated into pseudo-Clojure as follows:

Continue reading

The Promise, Part W

If you were transformed into a wooden cylinder,
transported to the highest point of your current location,
and dropped so that you rolled,
would you like where you ended up?

You've overlooked all the colors of flavor: all 16 million of them!

D

To be precise, (16^2)^3 = 256^3 = 16,777,216 colors, if we're talking about RGB colors with two hex digits to specify each channel, e.g. FFAABB.

There's a connection here with wagon wheels. The following code is semi-pseudocode for Inform 7.

Continue reading