Friday, May 23, 2008

Game of Life

REACT! 
It's been some time since my last post. Since then many things happened. Well in fact just one serious thing: my laptop's HD has been fried... :-( At the same time I fell in love with Ubuntu Live CD which I've been using for the past 5 days...

I went to some stores but I couldn't find any IDE HD with more than 80GB capacity, so I'll wait one more day for their supplies to arrive. One of the salesmen told me that they "might" get some IDEs for laptops this Friday. >:-(

Anyway. Today I made a nice little prog that calculates a possible state in Game of Life that will evolve into a specific state after one step. I'm too tired to explain more about the Game of Life so try wikipedia. :-)

Here's what I made with it:

# ## ## # # #
# #
#### #### ##### #### ########### ###########
## # # # # # # # # #
### # # ## #### # # # # #
##### ## ## ## ####### # #
# # # ## ###### # ### # #
# # # ## ## ## ## # #
## ### # ### ##### # # ## #
# # # # ## ## # ## # # # # #
# ## # # # # # ## # # # # #
### # # ##### ### ### # ## #
## ## # ## ### # ### # # ## #
### ### # # ## # # # # #
#### # # ### # ## # # # # #
# ### ######## ######
# # # ##### ####### ## #


To the left is the first state which evolves into what you see to the right. (TrT stands for Tritonio). I simply gave the right state to the program and it calculated the left one. The script uses an algorithm similar to the one I used while making my keyboard.

I am trying to make an "INSHAME" logo right now but, if at all possible, it will take much time due to it's size.

If you are really curious you can find the Lua source code of the program here but it's undocumented, written in the past three hours, and geek-only. ;-)

UPDATE:

Finally the Logo has finished!!!!!!! Here it is!!!


# # ## ## # # # # ## # # # # ##
# # # # # #
### ### ### ##### ## ## ## # # #
## # #### # #### # # # ### # # # ####
# # # # # ## # # ### # # ## # #
## # ## # ## # ### # # ## # # # #
## # # ### # ##### # # #### ##
## ## # ## # # # ## # # ###
# # # # #### # #### ### ##
# ### # # ## # ### # # # ### #### ## #
# # # # # # # ## # ##
# # # # # # ## # # ## # #

This evolves into INSHAME! :-D
I am still improving the algorithm.

1 comment:

  1. Hi! Remember me? Well… I changed nationality.
    The “Game of Life” has much to do with dynamical systems, equilibrium points and periodic orbits. As I see in both of your examples when the system you begin with evolves to the other (Tr or INSHAME), it losses many of its #. That means that your system appears instability and it losses many points. The other way round (when you start with Tr as to produce your program) same points or orbits behave as attractors.
    Your “Game of life” has one step, so it has period one… In one step it losses many of its unstable points and the others move to the appropriate pos.
    Two or more steps may complicate your program, but it will be more realistic. A little closer but still far away from Real Life! Xe!

    ReplyDelete

Popular Posts