comparison sheep.pl @ 52:d2ac1e198ce4

implement a new agent based on Decision Tree (Decision::ParseTree)
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Mon, 20 Oct 2008 19:07:53 +0800
parents 5849b6fdc76c
children 3a611c51b99b
comparison
equal deleted inserted replaced
51:bc31729f29f4 52:d2ac1e198ce4
35 35
36 Ikariam::User->set_sql(sheeps => qq { 36 Ikariam::User->set_sql(sheeps => qq {
37 SELECT user.id 37 SELECT user.id
38 FROM user, cities 38 FROM user, cities
39 WHERE user.id == cities.user 39 WHERE user.id == cities.user
40 AND user.trader_score_secondary >= 50000 40 AND user.trader_score_secondary >= 20
41 AND user.army_score_main <= 100 41 AND user.army_score_main <= 100
42 AND cities.island IN (SELECT island.id FROM island WHERE island.x <= ? AND island.x >= ? AND island.y <= ? AND island.y >= ? ) 42 AND cities.island IN (SELECT island.id FROM island WHERE island.x <= ? AND island.x >= ? AND island.y <= ? AND island.y >= ? )
43 } 43 }
44 ); 44 );
45 45