The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

About time for the second UF programming contest? by Arachnid2005-03-10 16:44:43
  I thought of a good one... by archnerd 2005-03-10 23:55:55
This game would be somewhat of a cross between Go and Conway's Game of Life...

The game would be played on a toroidal NxN board (that is, the edges wrap around). I suggest N=25. One bot plays red, the other plays blue. The board begins empty. On each turn, each bot simultaneously chooses an empty square on which to place a token.

After every turn beginning with turn #10, the board changes according to the following rules:

- Any square which contains a token and is surrounded by exactly 0, 1, or 4 squares which also contain a token (diagonal squares are not counted), has its token removed.
- Any square surrounded by exactly 2 squares containing tokens remains unaltered.
- Any square surrounded by exactly 3 squares containing tokens has a token placed on it of the same color as that of the plurality of surrounding tokens.

If both bots choose the same square, no tokens are placed and the above process occurs once even if it is not yet turn #10.

The game ends after a fixed number of turns and the bot with the most tokens of its own color wins. If the board empties completely after turn #10, the game ends in a draw.
[ Reply ]
    Slight correction by archnerd2005-03-11 07:40:39

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)