Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,210 Members 49,205 Now Online
XDA Developers Android and Mobile Development Forum

[GAME] Langton's Ant

Tip us?
 
FireFly
Old
(Last edited by FireFly; 8th May 2011 at 12:58 PM.)
#1  
Senior Member - OP
Thanks Meter 23
Posts: 100
Join Date: Mar 2011
Default [GAME] Langton's Ant



DESCRIPTION


Langton's Ant is actually a two-dimensional cell automaton that evolves by following very simple rules.
It was invented by scientist Christopher Langton in 1986 and helped to highlight an example of emergent behavior.

The two basic rules are:
If the ant is on a black square, it turns right, changes the color to white and moves forward
If the ant is on a white square, it turns left, changes the color to black and moves forward


These simple rules lead to a surprising behavior of the ant:
The ant builds a road that repeat indefinitely


Here are the main features of my implementation:

Play/Pause/Clear buttons
Changing the speed
Changing the size of the world
Changing the background color
Changin the rules:
- 35 predefined rules
- create your own rules
Creation of multiple states automatons
Add as many ant as you want, simply by touching the screen!

There are many extensions (several colors, states, etc.) but it's up to you to discover them.


For any bug, suggestion or information contact me at:

sim.dev.android@gmail.com


NOTE:
- Available in French and English
- Compatible with all screens
- Compatible with all android versions

For more information, visit the official wiki:
http://en.wikipedia.org/wiki/Langton%27s_ant

Or on this one, about Turmites (multiple states automaton) :
http://en.wikipedia.org/wiki/Turmite


SCREENSHOTS





DOWNLOAD

From an Android Device

From the web market


The Following 2 Users Say Thank You to FireFly For This Useful Post: [ Click to Expand ]
 
FireFly
Old
#2  
Senior Member - OP
Thanks Meter 23
Posts: 100
Join Date: Mar 2011
Edit : Modification of the QRCode (Null Pointer)
 
HardAndroid
Old
#3  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Mar 2011
One again o_O
I had not seen this before.

thanks for sharing
 
HardAndroid
Old
#4  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Mar 2011
Hello,
Will there be an option to send our rules like there was in the game of life, because I have some good ones.
 
FireFly
Old
#5  
Senior Member - OP
Thanks Meter 23
Posts: 100
Join Date: Mar 2011
Well, honestly I'm working on it since 2-3 days.
And I'll prepare an other option to add to the "expert rules" section.
 
HardAndroid
Old
#6  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Mar 2011
Thank you, you are a very reactive developer.
Could you tell me what the new option will be ?
 
FireFly
Old
#7  
Senior Member - OP
Thanks Meter 23
Posts: 100
Join Date: Mar 2011
It would be an option to specify the number of stpes after each instruction.
Something like :

turn rigth, two steps forward
turn left, five steps forward


I'm almost done with it
 
FireFly
Old
#8  
Senior Member - OP
Thanks Meter 23
Posts: 100
Join Date: Mar 2011
In fact I was very busy these days, so i didn't worked on it.
I think it would be for next week, be patient
 
FireFly
Old
#9  
Senior Member - OP
Thanks Meter 23
Posts: 100
Join Date: Mar 2011
Here is the update :
v2.0 :
- Fixed several minor issues
- Added option "Number of steps forward"
- Added 15 new rules
- Added a section of fans rules
- Ability to send your rules by mail


Enjoy
 
HardAndroid
Old
#10  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Mar 2011
Finally it comes out ;D
I will send you my rules, and hope they will be in next update.
Good work by the way

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Give Your Screen Some Color with HexaTime Live Wallpaper

We don’t often cover very many live wallpapers here on the XDA Portal. You may … more

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more

Control Your Toast Notifications with SlicedToasts

Toasts are delicious, even in their Android flavor. In Android, toast doesn’t lead … more