RSS
 

Archive for the ‘Algorithm’ Category

Travian Strategy: Conquering a distant village

28 Apr

This tutorial is for Travian (http://travian.com/)

If you have 3-4 Chief and want to conquer a village which is far away (about 14:00 hrs attack time of catapults). Then you must follow this strategy.  (If you have 5 or more Chiefs just clear target village’s troop and Send all the chiefs they will do the job. Don’t forget to destroy his residence first). You must have town-hall in at least one of the village. You need to have a Great Celebration before Chiefing the target. (This increase your chief’s efficiency).

Read the rest of this entry »

 
1 Comment

Posted in Game

 

Project: CODEGEN PHP

15 Apr

I like to code a program manually. This makes me learn from my mistakes. After coding many php applications I have noticed there is a basic procedure we repeat every time, that is creation of Class for each table in Database.

This is a tedious task when done manually for each table. So I have decided to write a PHP application which will develop a fully coded Php Class from a Database Table Structure.

The Application will take structure of database as input and will produce the Class structure. This will reduce most of the coding work.

I will start working on this App after my sessionals i.e. after 22nd April 2009 and will try to finish it before 30th April. Its code will be opensource and will be directly downloadable from my website and the project will be hosted in Sourceforge. Its live demo will be available on my website http://www.rahulprasad.com. If time permits I will write a tutorial on How the project Codegen Php is acomplished.

This is going to be my first contribution to opensource community.

I get this feeling that somehow this project can lead to a website that can “evolve”. Which means the website which can change its own code and upgrade its algorithm. Currenly this is just a theory. I will think on it later. I have to sleep now. :)

 

Travian Algorithm for best rank

01 Mar

Travian is a browser based online game. It’s one of the most famous online game and my favorite. You can find more about it at http://www.travian.com/

After playing it for 2-3 months I have written this algorithm to get the best rank as soon as possible.

The idea behind this algorithm is “More Population = Better Rank”.

Read the rest of this entry »