1. Home
  2. Computing & Technology
  3. C / C++ / C#
photo of David Bolton
David's C / C++ / C# Blog

By David Bolton, About.com Guide to C / C++ / C#

Assembly Language AI Animals on your Mac

Saturday June 27, 2009
AI CreaturesI haven't done much coverage of Mac open source software until now but that starts today. As always with the open source libraries: if you know of one that would be of interest, then let me know and any broken links of course.

Creatures is a sort of evolution laboratory where life forms breed and mutate and the fittest ones survive. They eat the plant food, move about and increase population according to their varying genomes. What marks this way ahead of other similar programs is the 32 bit assembly language that drives each type of animal. Yes each has it's own virtual machine. It's a pretty sophisticated laboratory! Here's a short example of the language.

slp  r0  # sleep
fwd  r0  # move
slp  r0  # sleep
jnez  r0  no_turn   # loop if move successful

It would be interesting to see a Windows/Mac conversion! Any takers?

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.