view README @ 369:fb3cfa5533ac

merged
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Thu, 05 Mar 2009 17:36:03 +0800
parents 9c9d7a59420a
children
line wrap: on
line source

Project Homepage: http://www.assembla.com/spaces/eagle-eye

= Files =

Ikariam.pm - Basic modules for collectoin information from web, and the web access/submit functions will be also implemented.

ally.pl - list all the cities which owned by an ally.
enemy.pl - list all the islands and scores the enemy have.
freeland.pl - find the available place we can build the city.
inactive-map.pl - finding the sheep and list them in a map.
agent.pl - a simple proof-of-concept of decision making robot.
scan.pl - scan the islands and cities by coordinate or default world view.
scores.pl - scan and update the scores of accounts.
sheep.pl - find the sheep to kill, takes coordinate or default world view.

= HOWTO =
 * Install *many* perl modules. 
Carp::Assert - libcarp-assert-perl
Carp::Assert::More - libcarp-assert-more-perl
Class::DBI::AutoLoader - libclass-dbi-autoloader-perl
Class::DBI - libclass-dbi-perl
Class::DBI::SQLite - libclass-dbi-sqlite-perl
Decision::ParseTree - libdecision-parsetree-perl
XML::LibXML - libxml-libxml-perl
IO::Uncompress::Gunzip - libio-compress-zlib-perl
LWP - libwww-perl
WWW::Mechanize - libwww-mechanize-perl
YAML - libyaml-perl
JSON - libjson-perl
Parallel::Forkmanager - libparallel-forkmanager-perl

  You can download missed debian packages from http://www.assembla.com/spaces/eagle-eye/documents
  
 * Create the sqlite3 database 'ikariam.sqlite' first, based on ikariam.sql
   $ cat ikariam.sql|sqlite3 ikariam.sqlite
 * Create the config file, at ${HOME}/.eagleeye.pm. The file content are
package main;

$::server = 's4.ikariam.tw'; # Delta server.
$::user = "chihchun";
$::pass = "YOUKNOW";

1;

 * Run the bot, 'perl agent.pl' (mark the 'eval' call in triggerAction for avoid action triggered by the bot.)
 * Update the islands information by runing 'perl scan.pl'
 * List sheeps, 'perl sheep.pl' (run scan.pl first)
 * Plan multi-wave attack, 'perl planner.pl targetCity navyCity armyCity wingman1.. wingman2..' All citys defined by city ID.

 1. scan.pl 找附近的群島資訊
 2. agent.pl 收集自己的兵力與座標資訊 (這個會幫你蓋東西,要小心)
 3. planner.pl 自動規劃計算海陸軍出兵城
 4. 改寫,並跑 planner.pl 生出來的 task.pl
 task.pl 會包含你所有的兵力,兵力再依據情報與敵方狀態調整
 第一波,我設定通常是攻略輸,防守高於對方攻擊力,確保撐過第一回合
 第二回合就會有其他城來的兵�J[彙整,以絕對武力壓制
 通常敵方會剩下一半兵力,我第一波會損兩三隻
 這樣好處是容易一次就搶滿運輸船