Code-eating software battles it out in P2P arena

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

NEWS
Coders across the UK will be flexing their digits over the coming weeks in an effort to write software whose sole purpose is to propagate across the Internet and battle similar pieces of code to the death. It's not a virus, says Microsoft, which created the game to show what can be achieved in peer-to-peer applications -- particularly those using the company's .Net Framework -- but it does share some similarities with the way viruses work. For instance, the object is to propagate as many pieces of code -- or creatures -- as possible in the three weeks that the competition will last for. And although it is just a game for now, it does show the possibilities of peer-to-peer computing. The best way to think of Terrarium, says Microsoft developer tools product manager Gavin King, is as a game like Age of Empires. The word Terrarium means a glass case for small animals, or a sealed globe for plants. In the Terrarium world, each creature represents a piece of code. Once written, it goes out into the world to do battle and the gamer has no further control over it. "Each player has their own Terrarium client, and once they have written their code it is left to wander around in their client," said King, explaining the fundamentals of the game. A ball rolls around the Terrarium client and if it lands on a piece of code (or creature), said King, it copies (or teleports in Terrarium parlance) that code to between 15 and 20 other Terrariums on the Internet. The code, which can be written in any .Net language -- such as C#, Visual Basic.Net or C++.Net -- is translated into Microsoft's .Net low-level assembly language, called Intermediate Language, or IL. It sounds difficult, but you don't have to be a hard-core programmer to participate, says Microsoft: the company is supplying a set of skeleton creatures with a basic set of behaviours to get people started. "You could release one of these as-is, but it might not last long," said King. Successful creatures will be the ones that have more complex behaviours, he added. "It is even possible to get these things working together as a group. The better the code you create, the better its chances of success and the higher its chances of procreation. The idea is not to get eaten." The ultimate goal is to have the highest number of creatures across the Terrarium community. A control panel built into the client gives real-time statistical feedback on how each creature is performing, and the distributed nature of the game means that a creature can continue to propagate and move around even when the machine it was created on is switched off. "Obviously, the longer your Terrarium is online, the better chance you have of getting more creatures out there," King added. "But once they are out there they have a good chance to procreate elsewhere." King stressed that there is no danger of creatures that host malicious code causing any damage outside the Terrarium clients. "The game does have organic principles, and parallels could be drawn with viruses," he said. "But there is no opportunity in the code to write anything that could jump out of the Terrarium. If any code within creature tries to do anything outside the event model it is killed immediately." Terrarium is played on the .Net framework, which is downloadable for free from Microsoft's Web site. The game starts on 13 February and is timed to coincide with the launch of Visual Studio .Net. King said that in theory, a Terrarium could be run on the .Net redistributable framework, which is a significantly smaller download (about 21MB compared to 130MB), but this would not give the world-view stats, or allow creatures to be created.
For everything Internet-related, from the latest legal and policy-related news, to domain name updates, see ZDNet UK's Internet News Section. Have your say instantly, and see what others have said. Go to the Telecoms forum. Let the editors know what you think in the Mailroom.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Marcus Karlsson

Any update on this, considering the claimed "first week of February"?

32 minutes ago by Marcus Karlsson via Facebook on Archos confirms G9 Ice Cream Sandwich update schedule
apexwm

Bill Goodrich : Just as al_langevin pointed out, with Windows Server 2008 there is no Services for Macintosh anymore. It's gone, not available....

9 hours ago by apexwm on Windows Server 2008 drops the ball for Mac compatibility
txtrainguy

Replying to an old topic that I'm currently facing with my CEO (who is on a Mac). Our servers are primarily Windows Servers, office is about...

15 hours ago by txtrainguy on Windows Server 2008 drops the ball for Mac compatibility
k0tcs3

Sure, that makes perfect sense. Pay wrong-doers money and thank them for breaching your security and pointing out your flaws, that would surely...

16 hours ago by k0tcs3 on US indicts Romanian over NASA climate change hack
Random_Error

I think he's referring specifically to Android apps, as Apple do regulate their App Store, but Google seem to let any old crap onto the Android store!

16 hours ago by Random_Error on RIM: BlackBerry will keep 'garbage' apps out of store
Paul Fezziwig

Keep the crap apps out?! How will they compete with Android and Apple's claim to fame of having so many life changing apps? I wonder if the media...

21 hours ago by Paul Fezziwig via Facebook on RIM: BlackBerry will keep 'garbage' apps out of store
Aigars Mahinovs

It has been shown time after time that if there is an author store that sells the songs at even 1$ per song and gives you a high-quality digital...

22 hours ago by Aigars Mahinovs via Facebook on Copyright isn't working, says European Commission
awbMaven

""As a result of Butyka's alleged conduct, researchers were unable to use the computers for more than two months while NASA removed the malicious...

1 day ago by awbMaven on US indicts Romanian over NASA climate change hack
subhorup

It simultaneously worries me and uplifts me that a self-proclaimed group of internet activists name themselves after Indian mythical figures....

1 day ago by subhorup on Anonymous activists release PCAnywhere source code
naviathan

It's actually far easier to work anonymously on the internet than you think. With tools like Tor bouncing your traffic around the world before...

2 days ago by naviathan on Anonymous activists release PCAnywhere source code
Agnostic_OS

1000272134 and bluedalmatian with you both there but then I'm still in 10.04 land (and happy with it)

2 days ago by Agnostic_OS on Ten factors that make Ubuntu 11.10 a hit
apexwm

Interesting article and definitely see your points on the products mentioned. One of the top products for our Help Desk (approximately 20% of all...

2 days ago by apexwm on Ten flawed products that derail productivity
Paul Hutchinson

Absolutely - this should obviously not be handled my isp - but handled by their hosting operator. What's been suggested here is that my isp police...

2 days ago by Paul Hutchinson via Facebook on MPs urge ISPs to take down terrorist material
Techs UK

Looks like a great phone. I don't notice any deficiencies in WP7. used IOS before, that's pretty good. I don't spend much time in Apps, all i need...

2 days ago by Techs UK on Nokia pins US 're-entry' hopes on Lumia 900
Larry Bloggy

Now with the help of these apps you are always synced with MS outlook while on the move. Just download apps like xobni or outlookreflex and get...

2 days ago by Larry Bloggy via Facebook on Outlook Social Connector beta 2 and the LinkedIn connector
mike40g123

Your details are wrong. The version currently being made is the one with 2 USB ports, 256MB RAM and a network port. This is the Model B. The...

2 days ago by mike40g123 on Raspberry Pi boards set to go on sale
Moley

The thing that has been puzzling me for quite a while is how Anonymous can remain anonymous whilst not only being active on the Internet but also...

3 days ago by Moley on Anonymous activists release PCAnywhere source code
Don Dilly

If what Semantec is saying is rue, that is even worse and shows a complete disregard for thier users. If what Anonymous claims is true and the...

3 days ago by Don Dilly via Facebook on Anonymous activists release PCAnywhere source code
MattChurchy

Didn't seem particularly biased to me either. Oh though you might have mentioned some other competitors with free search and email services...

3 days ago by MattChurchy on Time for an evil umpire: Google, Microsoft & privacy
Simon Bisson and Mary Branscombe

James - exactly as much as anyone paid you for your comment; I don't feel that I need to say that I'm independant and unbiased, but just for you...

3 days ago by Simon Bisson and Mary Branscombe on Time for an evil umpire: Google, Microsoft & privacy