Archive for June, 2006

Real-World Gaming

Thursday, June 29th, 2006

Ever since the invention of the board game, mankind has invented a vast number of them. Most of them could just as easily be played on paper or on a computer. For example, Chess, Checkers, and Go have no elements of randomness and so they could even be played verbally if the players’ visual memories were good enough. Some require the roll of a die or dice in order to make decisions, but are otherwise deterministic. For example, Axis and Allies or Monopoly translate well into digital versions.

Then there’s a whole other class of game that relies on real-world physics to operate. Sure, there are non-board games like basketball where it’s expected that physics plays a role, but it really fascinates me that a game of Fireball Island would play out differently on the moon than it would here on earth. In zero-gravity environments, several games come to mind that would be completely unplayable. The poster child of “relies on physics to operate” is of course Mouse Trap, which is arguably unplayable anyway, but it probably takes a pretty narrow range of gravitational acceleration to successfully go through the whole chain of traps from start to end. Hell, I could only get it to work about 50% of the time anyway. Games where things roll around a lot like Crossfire or Hungry Hungry Hippos would probably end up with a lot of balls flying off the table if you tried to play them on the moon. Dominoes would be boring at best.

Hypothetically, in the distant future when the economy spans multiple planets, games such as these would be difficult to design. Gravity is such an intrinsic part of our interaction with the world that I can’t even begin to imagine how the board game industry would cope with it being variable. Chess, however, is a game you can play anywhere.

Chess Update

Wednesday, June 14th, 2006

Exactly two months ago, I posted about my mystery chess match. This was concluded today. I lost. :(

Put the ‘Fun’ Back in Befunge

Wednesday, June 14th, 2006

Disclaimer: may or may not be interesting to non-programmer types.

I’ve always been fascinated by esoteric programming languages, though I didn’t until recently know what to call them. The poster child of the esoteric languages is Brainfuck, a programming language whose programs consist entirely of the following eight characters: <> + – [ ] . ,

Any characters other than these eight are ignored by the interpreter (including whitespace). Here is an example brainfuck program:

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.++++++
+..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

It simply outputs “Hello World!” to the screen.

But one-dimensional code is so passé. All the real coders are using two-dimensional languages, for example PATH. PATH programs look somewhat like pictures, and if you look at them you can trace the path of the program visually around it, in two dimensions. I did a little experimentation in PATH but then settled on Befunge as my esoteric language of choice because it allows for user interaction (which PATH does not).

Here is an example Befunge program:

vv  <      <
    2
    ^  v<
 v1<?>3v4
    ^   ^
>  >?>  ?>5^
    v   v
 v9<?>7v6
    v  v<
    8
 .  >  >   ^
^<

It generates random numbers.

Unfortunately, there was no interpreter for Befunge written in PHP (that I could find) so I wrote one. It’s called Bephunge and it’s awesome.

I am currently working on a Befunge program that allows two humans to play Tic-Tac-Toe. This could probably be done in about 5 minutes in any typical programming language, but then it wouldn’t blow my mind.

Left-Side Economics

Wednesday, June 14th, 2006

Everyone is familiar with the concept of calling shotgun. When there are three or more people going to get in the same car, someone always calls shotgun. The front passenger seat is arguably better than any other passenger spot; You get as much leg room as you want, your view isn’t limited to the seat in front of you, and you have easy access to radio and climate controls. Clearly, this is a seat in the car that everyone wants. My group of friends, however, has gotten into the habit of also calling “left-side.” That is, after shotgun has been grabbed by someone, the next-highest seat in the hierarchy is the leftmost seat in the back. This seat is arguably not better than the right-side seat in the back (although both are clearly better than bitch). The point here is that someone always calls left-side, and for apparently no reason. Of course, what’s really going on here is “left-side economics” (a term coined by roommate Nick).

Left-side economics refers to a system where demand begets more demand. The demand here is for the left-side seat in the car. The actual seat is not worthy of demand, but it has a higher position in the hierarchy than the right-side seat. Why? Because it has higher demand. To recap more succinctly: Everyone wants the left-side seat because it has more prestige than the right-side, but it only has more prestige than the right-side because everyone wants it.

Here are a couple analogies.

In the 1920’s, the stock market was chock full of left-side economics. People bought up plenty of stocks because of the expectation that stock prices were ever rising. However, rising stock prices were caused mostly by the increased demand for shares of stock. That is, the demand for stocks was caused by the existing demand, and this only created more demand. What’s missing from the equation here? Actual value. Go left-side economics!

The same can be said of the Tulip crash in Holland. The same kind of thing happened — people started to notice a trend in the tulip market that tulip bulbs were going way up in price all the time. Everyone bought them up expecting to be able to sell them for more, and this buy-craze only served to increase prices further. Again, the tulip bulbs themselves have very little value, it was only the artificial value that made people buy them. Left-side economics strikes again.

A common theme among the stock market crash and the tulip crash is… well… the crash. Eventually people realize that the huge demand for these things is based on an artificial notion, and as soon as confidence starts to slip, the true value takes hold. This is the fundamental problem with left-side economics. And I am waiting for the left-side of the car to crash any day. (Especially if a woman is driving it LOLOL!!!111one)