homegallery of drawings, logos, scripts, games 'n stuffseveral travelogues with lots of picturesfloR's favourite bookmarksfunny stuffall stuff about floR and this site

Qinzo - free online dating service site

Atlantis

I had written this game in Pascal en Java. Now it was time to do it in JavaScript.

The rules

Suppose there are two players, say Ren and Stimpy. Both players want to win. They achieve that goal by getting rid of the other player. One player is got rid of, when he doesn't have any boxes left with his color (after the first move of course). How could that happen? I'll get to that. First let me explain how a player can only put a token in an empty box or a box which has already one or more tokens of his color in it. There. Now let's concentrate on why someone would put tokens in a box. A player can only be eliminated if the other player explodes in the box next to his. By this time you'll ask yourself (and me) how one could explode. Well, very simple. When a box is full, and another token is being put in, it will burst. "Ok, but define full." Very well:

A box in the corner is full with 1 token;
a box on the edge is full with 2 tokens;
a box somewhere else is full with 3 tokens;
Or, put in a different way, a box will explode when there are as much tokens in it as it has neighbours.

Now for something cool. If, say, Ren explodes into Stimpy's box, Ren will gain Stimpy's tokens in that box (plus the token that exploded into it), so if there were 2 blue (suppose blue was Stimpy's color) tokens in that box, after the explosion there would be 3 red tokens. It's getting even better, because the rules say that an overfull box will explode, so if that particular box would be at the edge, it means it's overfull now, and therefor it will explode. Chainreaction! That way one can hardly say who is winning.

empty

1 token

2 tokens

3 tokens

The game