5,596,179 Members 34,061 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  
Member - OP
Thanks Meter 23
Posts: 98
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  
Member - OP
Thanks Meter 23
Posts: 98
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  
Member - OP
Thanks Meter 23
Posts: 98
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  
Member - OP
Thanks Meter 23
Posts: 98
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  
Member - OP
Thanks Meter 23
Posts: 98
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  
Member - OP
Thanks Meter 23
Posts: 98
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

Force Translucent Status Bar in KitKat ROMs with Xposed

It’s been a while since Android 4.4KitKat wasreleased, and we’re slowly … more

Fix the Ambient Light Issues on Your Google Nexus 5 using Xposed

The Google Nexus 5 is a great and rather popular device. This LG-produced … more

Google Glass XE16 Update Factory Image and Rooted Bootloader Now Available

You may recall that early yesterday, we talked about the XE16 … more