2011-10-28T00:00:14 lol, yeah i guess that is one reason 2011-10-28T00:01:05 *** Dominater has joined #aichallenge 2011-10-28T00:01:09 THIS IS SPARTAAA 2011-10-28T00:01:10 lol 2011-10-28T00:01:59 Does anyone know how to get a different map than the tutorial working locally? 2011-10-28T00:02:02 This is AI-CHALLENGE 2011-10-28T00:02:12 * SharkMonkey kicks bobbydroptable from the channel 2011-10-28T00:02:14 I changed the path in my shell script to a new map, it loads it but then crashed 2011-10-28T00:02:19 crashes* 2011-10-28T00:02:20 Into #big bit 2011-10-28T00:02:28 #bigpit 2011-10-28T00:03:05 Dominater, Make exctra double sure the path is correct. 2011-10-28T00:03:06 *falls* 2011-10-28T00:03:07 hehe 2011-10-28T00:03:21 Dominater, Are you getting any error message/output? 2011-10-28T00:03:47 nope nothing 2011-10-28T00:04:08 I changed the /example/tutorial1.map into /maze/maze_1.map 2011-10-28T00:04:22 It loads the map, but it crashes before any turns happen 2011-10-28T00:04:31 well i wouldn't take the behavior of the top bots to be indicative of their final version... they're probably working on new versions and trialing it on tcp servers... they're come in and steamroll everyone else 2011-10-28T00:05:19 *** danielharan has joined #aichallenge 2011-10-28T00:05:56 if I change it back to /example/tutorial1.map it works no problem 2011-10-28T00:07:21 Dominater, Is that exactly what you entered? Because there isn't a maze_1.map 2011-10-28T00:08:01 There is in mine, I downloaded the starter package before the contest started 2011-10-28T00:08:15 it may be a bad map, then 2011-10-28T00:08:20 actually the game finishes before it even starts "Lona Survivor" 2011-10-28T00:08:22 lone* 2011-10-28T00:08:31 probably has no hills 2011-10-28T00:08:31 Dominater, Why not use the latest version then? 2011-10-28T00:09:17 i'd guess it's more likely to have bugs if you are using a prelaunch version 2011-10-28T00:09:24 okay.. i don't understand the wall punch example. i take it u can't attack pass your own ant 2011-10-28T00:10:04 *** smiley1983 has quit IRC (Ping timeout: 258 seconds) 2011-10-28T00:10:15 grom358: You can as long as your ant is within range of the enemy ant 2011-10-28T00:10:26 didn't know they updated it, gonna try new one 2011-10-28T00:10:50 check jwkpiano http://aichallenge.org/visualizer.php?game=22208 2011-10-28T00:10:59 well.. i trying to write code that understands the rules of battle.. and I don't get the same reulsts 2011-10-28T00:11:13 024666420 2011-10-28T00:11:13 ...555... 2011-10-28T00:11:13 ...555... 2011-10-28T00:12:10 grom358: you want to count the number of enemy ants within the battle radius of each ant 2011-10-28T00:12:32 yeah I am.. don't get what I'm doing wrong 2011-10-28T00:12:55 SharkMonkey: The map gets loaded but it says "extermination" before the first term and finishes 2011-10-28T00:13:07 turn* 2011-10-28T00:13:27 grom358: why do the lower ants see 5 enemies? 2011-10-28T00:13:38 Dominater: did all bots crash? 2011-10-28T00:13:47 mleise: cause they inside attack radius 2011-10-28T00:14:20 what is the radius? 2011-10-28T00:14:26 77? 2011-10-28T00:14:35 yeah, for now 2011-10-28T00:14:42 no.. working on attack radius of 5 2011-10-28T00:15:11 oh, yeah there are many radius variables :p 2011-10-28T00:15:15 I got it... I still had the shell from the tutorial, the --scenario option was making it crash.. 2011-10-28T00:15:28 *** Knekkebjoern has joined #aichallenge 2011-10-28T00:15:44 gah.. something wrong with this code.. the ones at bottom shouldn't see 5 2011-10-28T00:18:53 *** analyst74 has quit IRC (Ping timeout: 258 seconds) 2011-10-28T00:19:41 omg.. i think its cause of my map wrap code.. like being able to move up and appear at bottom 2011-10-28T00:19:42 lol 2011-10-28T00:20:55 :) 2011-10-28T00:21:17 *** smiley1983 has joined #aichallenge 2011-10-28T00:21:58 yeap.. fixed 2011-10-28T00:24:19 grom358: :D 2011-10-28T00:24:29 *** pgoldbr has joined #aichallenge 2011-10-28T00:26:33 *** jsmnsr has quit IRC (Ping timeout: 265 seconds) 2011-10-28T00:28:00 *** v_paul_v_ has joined #aichallenge 2011-10-28T00:28:53 *** thestinger has joined #aichallenge 2011-10-28T00:29:39 *** yoden has quit IRC (Quit: Leaving.) 2011-10-28T00:31:52 *** rj_ has quit IRC (Ping timeout: 265 seconds) 2011-10-28T00:35:39 *** danielharan has quit IRC (Ping timeout: 244 seconds) 2011-10-28T00:38:40 *** danielharan has joined #aichallenge 2011-10-28T00:44:32 http://aichallenge.org/visualizer.php?game=22325 meh... 2011-10-28T00:46:07 *** danielha_ has joined #aichallenge 2011-10-28T00:46:31 *** danielharan has quit IRC (Read error: Connection reset by peer) 2011-10-28T00:46:32 *** joakimar has joined #aichallenge 2011-10-28T00:48:50 *** djr_ has joined #aichallenge 2011-10-28T00:50:47 Why do you show us meh? 2011-10-28T00:51:45 *** danielha_ has quit IRC (Remote host closed the connection) 2011-10-28T00:52:33 *** danielharan has joined #aichallenge 2011-10-28T00:53:41 "no fun"-gam 2011-10-28T00:53:44 e 2011-10-28T00:55:53 *** danielharan has quit IRC (Remote host closed the connection) 2011-10-28T00:56:25 *** danielharan has joined #aichallenge 2011-10-28T00:57:49 when is it possible that enemy ant and your ant can be side-by-side.. won't they kill each other before that happens? 2011-10-28T00:59:33 *** stano has joined #aichallenge 2011-10-28T00:59:57 distance hills < attack range? :-) 2011-10-28T01:00:29 ah yeah.. i was just about to say that.. only thing I can think of is new spawns 2011-10-28T01:00:55 was just looking at the wall punch example.. and thought.. is that even possible to get to that state 2011-10-28T01:01:57 Maybe I should look at this tutorial thing 2011-10-28T01:02:08 *** Relax has joined #aichallenge 2011-10-28T01:02:49 I totally missed the fact that it had 6 pages, when I first signed up 2011-10-28T01:04:37 Was it complete at launch 2011-10-28T01:08:23 115 players... 2011-10-28T01:08:52 *** icefox has quit IRC (Quit: icefox) 2011-10-28T01:09:13 Sitting in a tree? 2011-10-28T01:09:33 under 2011-10-28T01:09:49 *** danielharan has quit IRC (Ping timeout: 261 seconds) 2011-10-28T01:10:06 http://aichallenge.org/visualizer.php?game=22376 2011-10-28T01:10:16 check the timeouts 2011-10-28T01:10:41 My bot would suicide in a 115 player match 2011-10-28T01:11:01 Assuming the map was sized appropriately 2011-10-28T01:12:01 Did anyone not timeout or die? 2011-10-28T01:12:11 Oh, purple and pink were not wiped out 2011-10-28T01:12:37 If only they had hives, they could have racked up some bonus points. 2011-10-28T01:12:51 *** Alexer has quit IRC (Ping timeout: 244 seconds) 2011-10-28T01:15:43 avdg, Open maps with a lot of players tend to be boring 2011-10-28T01:16:35 meh, I have music on the background 2011-10-28T01:16:41 doesn't make me bored 2011-10-28T01:17:12 besides, I can always learn new things 2011-10-28T01:18:19 meh, a bot that follows walls and misses food 2011-10-28T01:19:28 *** Alexer has joined #aichallenge 2011-10-28T01:20:52 *** smiley1983 has quit IRC (Remote host closed the connection) 2011-10-28T01:21:03 *** smiley1983 has joined #aichallenge 2011-10-28T01:21:19 *** Israfel has quit IRC (Ping timeout: 248 seconds) 2011-10-28T01:22:37 *** Dominater has quit IRC (Ping timeout: 265 seconds) 2011-10-28T01:24:46 *** PaulJE has joined #aichallenge 2011-10-28T01:24:59 *** Areks has joined #aichallenge 2011-10-28T01:25:08 здарова всем 2011-10-28T01:25:55 PaulJE, Agreed 2011-10-28T01:32:13 *** mikewest has joined #aichallenge 2011-10-28T01:32:46 *** jesufer has quit IRC (Ping timeout: 265 seconds) 2011-10-28T01:33:36 *** djr_ has quit IRC (Quit: Leaving) 2011-10-28T01:37:00 *** PaulJE has quit IRC (Quit: Page closed) 2011-10-28T01:37:07 *** xar0l_ has quit IRC (Ping timeout: 265 seconds) 2011-10-28T01:40:26 *** puddy has quit IRC (Read error: Connection reset by peer) 2011-10-28T01:42:06 *** mikewest has quit IRC (Quit: Page closed) 2011-10-28T01:42:40 *** rj_ has joined #aichallenge 2011-10-28T01:42:43 hi 2011-10-28T01:42:57 in starter package of java 2011-10-28T01:43:43 *** Fandekasp has quit IRC (Ping timeout: 248 seconds) 2011-10-28T01:44:00 getFoodTiles does not get all food tiles 2011-10-28T01:44:03 but just few 2011-10-28T01:44:11 is that how it works? 2011-10-28T01:46:56 you can try to fix it 2011-10-28T01:47:25 but it may also be that it is all the food you currently can see 2011-10-28T01:47:45 your bot's vision is limited by a radius around each ant 2011-10-28T01:49:58 *** bearoff_w has joined #aichallenge 2011-10-28T01:50:34 *** bianconeri has joined #aichallenge 2011-10-28T01:50:44 *** steve__ has joined #aichallenge 2011-10-28T01:52:21 timeout... 2011-10-28T01:52:38 how can i fix it, do i scan entire map n note it down? 2011-10-28T01:52:53 http://aichallenge.org/visualizer.php?game=22482 2011-10-28T01:53:07 rj_: learn the game specification 2011-10-28T01:53:17 http://aichallenge.org/specification.php 2011-10-28T01:54:06 hi, im currently working through the tutorials, using C# so trying to convert the java code as i go. I'm having trouble with the end of step 2 where the food and ant locations are sorted. The java code uses TreeSets, which arn't in .net, but regardless the Location class doesn't implement IComparer so I can't just sort the list. Does anyone have any thoughts on how to get the locations sorted, I'd like to keep the output like the 2011-10-28T01:54:36 And Xathis takes first place 2011-10-28T01:54:41 brutal 2011-10-28T01:55:15 but fair ;-) 2011-10-28T01:55:29 *** Cyndre has joined #aichallenge 2011-10-28T01:56:15 haha yeh 2011-10-28T01:56:21 his ants got the offense down pat 2011-10-28T01:56:38 *** he_the_great has quit IRC (Ping timeout: 276 seconds) 2011-10-28T01:57:29 meh, there is 1 big problem with my current bot, and that is its good in book keeping, but not in cleaning it up afterwards (especially with food) 2011-10-28T02:00:11 anyone? 2011-10-28T02:00:32 *** bianconeri has quit IRC (Quit: Page closed) 2011-10-28T02:05:40 hi, im currently working through the tutorials, using C# so trying to convert the java code as i go. I'm having trouble with the end of step 2 where the food and ant locations are sorted. The java code uses TreeSets, which arn't in .net, but regardless the Location class doesn't implement IComparer so I can't just sort the list. Does anyone have any thoughts on how to get the locations sorted, I'd like to keep the output like the 2011-10-28T02:07:52 It seems my bot gets to run on the server every 10 hours now… :( 2011-10-28T02:08:20 What's the best way to do some real game testing locally? (with some reasonable enemies) 2011-10-28T02:08:26 *** Knekkebjoern has quit IRC (Quit: Leaving.) 2011-10-28T02:09:32 @tcp 2011-10-28T02:09:32 *** grom has joined #aichallenge 2011-10-28T02:09:32 thestinger: tcp could be http://ants.fluxid.pl/howto. 2011-10-28T02:09:48 joakimar: use that ^^ 2011-10-28T02:09:59 @steve_ you can implemnt the location compare yourself? 2011-10-28T02:10:00 bobbydroptable: You have no gotten any error messages recently, so here's a random one just to let you know that we care. 2011-10-28T02:10:06 or lol oops 2011-10-28T02:10:19 steve_ or just use lambda to sort the list. 2011-10-28T02:11:58 *** analyst74 has joined #aichallenge 2011-10-28T02:12:14 @bobbydroptable: what am I comparing though, is it the current location and the distance to the food? 2011-10-28T02:12:15 steve__: I'm sorry Dave, err steve__; I cannot 'bobbydroptable:'. 2011-10-28T02:12:37 @bobby: what am I comparing though, is it the current location and the distance to the food? 2011-10-28T02:12:38 steve__: I'm sorry Dave, err steve__; I cannot 'bobby:'. 2011-10-28T02:12:39 lol don't use @ its a bot command 2011-10-28T02:12:45 lol 2011-10-28T02:12:51 errr for what purpose? 2011-10-28T02:12:52 thought it was your name cocking up 2011-10-28T02:13:10 is it for the A*? 2011-10-28T02:13:20 or for finding the ant closest to food? 2011-10-28T02:13:32 *** grom358 has quit IRC (Ping timeout: 276 seconds) 2011-10-28T02:14:02 must be ant closest to food; so i guess implement icomparer then compare distance from ant to food 2011-10-28T02:14:43 yeh for that you probably don't want to use a comparer on location that wouldn't do anything without a reference point 2011-10-28T02:15:14 what are you keeping your Location objects in? 2011-10-28T02:15:18 a set? or a list? 2011-10-28T02:16:23 its a list atm 2011-10-28T02:16:48 then proabably go 2011-10-28T02:17:14 locations.OrderBy(l => distanceBetween(l,food)) or something like that should work 2011-10-28T02:17:47 *** grom has quit IRC (Quit: Ex-Chat) 2011-10-28T02:18:11 *** grom has joined #aichallenge 2011-10-28T02:20:14 performance wise, no idea 2011-10-28T02:22:29 so you can not use the starter kit as long as you call you main class MyBot.java .. correct? 2011-10-28T02:24:14 is the concept that we're sorting the food tiles by how close they are to an ant? 2011-10-28T02:24:24 *** stislav has joined #aichallenge 2011-10-28T02:24:50 steve: yes.. I believe that what that code in the tutorial is doing 2011-10-28T02:25:03 close by manhattan distance 2011-10-28T02:27:35 *** Cybsy has joined #aichallenge 2011-10-28T02:27:38 righto, ill have a think 2011-10-28T02:27:47 maybe i should try righting a c# tutorial as i go... 2011-10-28T02:27:51 *writing 2011-10-28T02:28:14 grom why not? 2011-10-28T02:31:35 *** ltriant has quit IRC (Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/) 2011-10-28T02:32:07 why not what? 2011-10-28T02:32:59 bobbydroptable: ^ 2011-10-28T02:33:19 using starter kit 2011-10-28T02:36:05 *** mviel has quit IRC (Ping timeout: 260 seconds) 2011-10-28T02:36:14 oh.. just wanting to track the owner of ants.. I guess I can just modify the starter kit code todo that 2011-10-28T02:37:27 *** overburn has joined #aichallenge 2011-10-28T02:37:47 hey guys , small question 2011-10-28T02:38:07 any idea on the data format of my bot's input ? 2011-10-28T02:38:10 meaning 2011-10-28T02:38:12 bobbydroptable: nvm.. I'll just override addAnt in MyBot 2011-10-28T02:38:14 in the specs 2011-10-28T02:38:28 it says it is like "f 2 5" etc 2011-10-28T02:38:41 yup what's wrong with that? 2011-10-28T02:38:44 overburn 2011-10-28T02:38:48 but when i read it in php , it is f 20 or f 28 , or such 2011-10-28T02:39:11 should be as specs 2011-10-28T02:39:21 bug with your input routines? 2011-10-28T02:39:48 don't think so 2011-10-28T02:39:52 it works perfectly for the rest 2011-10-28T02:40:09 no offence but why use PHP for this? 2011-10-28T02:40:45 *** Garf_ has joined #aichallenge 2011-10-28T02:41:02 grom sometimes people are just comfortable with their language of choice 2011-10-28T02:42:14 yeah I use PHP everyday of the week.. I just think its only good for web stuff.. pretty poor as a language 2011-10-28T02:42:49 grom: i kinda hate python , and can do this at work as well compared to c/c++ (my other language of choice) 2011-10-28T02:42:57 hehe i haven't used php in couple of years 2011-10-28T02:42:58 *** Garf has joined #aichallenge 2011-10-28T02:43:16 heh 2011-10-28T02:43:20 i would use C 2011-10-28T02:43:26 but i'm on windows 2011-10-28T02:43:30 *C++ 2011-10-28T02:43:42 and i have no idea how the autocompiler handles the C++ compilation 2011-10-28T02:43:49 i believe i would need a makefile and such 2011-10-28T02:43:52 too lazy i guess 2011-10-28T02:45:10 *** GarfTop has quit IRC (Ping timeout: 265 seconds) 2011-10-28T02:45:45 overburn: You don't need a makefile. It just compiles and links everything with a C++ extension. 2011-10-28T02:47:16 so basically say i use whatever IDE i choose , i just take out the cpp and h source files , zip-em and upload them? 2011-10-28T02:47:33 oooh awesome, i'm sick of php :)) 2011-10-28T02:49:58 overburn: You can see the gcc compile flags it uses here: https://github.com/aichallenge/aichallenge/blob/epsilon/worker/compiler.py#L313 2011-10-28T02:51:10 *** cameronz has joined #aichallenge 2011-10-28T02:54:08 *** smiley1983 has quit IRC (Ping timeout: 245 seconds) 2011-10-28T02:54:24 *** smiley1983 has joined #aichallenge 2011-10-28T02:54:31 *** grom has quit IRC (Ping timeout: 258 seconds) 2011-10-28T02:57:45 *** moises has joined #aichallenge 2011-10-28T03:04:18 *** Cybsy has quit IRC (Ping timeout: 258 seconds) 2011-10-28T03:04:58 thanks krishna 2011-10-28T03:10:20 *** maran has joined #aichallenge 2011-10-28T03:10:30 *** kaemo has quit IRC (Ping timeout: 260 seconds) 2011-10-28T03:12:10 *** Bluedgis has joined #aichallenge 2011-10-28T03:13:50 I just read an articel about CPU caches and did a little test on my Core 2 2011-10-28T03:14:11 I created a circular linked list. 2011-10-28T03:14:40 Test one uses memory of L1 cach size, and test 2 twice the L1 cache size 2011-10-28T03:15:04 Now I run once with all the elements in consecutive order, and once with a random order 2011-10-28T03:15:22 For test 1 both runs yield an equal speed. 2011-10-28T03:16:05 But make a guess how much slower the second test was with the random order? 1.5 times? 2 times? what do you think? 2011-10-28T03:16:34 *** aerique has joined #aichallenge 2011-10-28T03:17:27 *** bearoff_w has left #aichallenge 2011-10-28T03:17:31 *** AGrishchenko has joined #aichallenge 2011-10-28T03:17:35 *** bearoff_w has joined #aichallenge 2011-10-28T03:17:35 wild guess: 1.5x for consecutive, 10x for random 2011-10-28T03:17:50 Why is needed to be used player_seed parameter? And why it's a 64bit size? 2011-10-28T03:18:20 Even if I used 32bit machine... 2011-10-28T03:18:31 thestinger: consecutive was pretty much the same (too much noise to distinguish), but random was ~80 times slower :O 2011-10-28T03:18:44 wow 2011-10-28T03:18:53 stislav: its more for the server, i'd imagine; 2011-10-28T03:18:56 stislav: you don't need to parse that parameter if you don't need it 2011-10-28T03:19:08 thanks 2011-10-28T03:19:20 it is to make your bot reproduce the same results if you use some randomness 2011-10-28T03:19:26 *** knyppeldynan has quit IRC (Ping timeout: 244 seconds) 2011-10-28T03:19:59 i think it is for python bots at least 2011-10-28T03:20:30 thestinger: yeah, that number makes me think about the benefit of linked lists once again 2011-10-28T03:21:38 there are great data structures which use links, but when a small consecutive array can access data that much faster I think I'm gonna try and make use of that where possible :) 2011-10-28T03:21:41 *** coramoor has joined #aichallenge 2011-10-28T03:22:23 mleise isn't that too much bound to the specific cpu? 2011-10-28T03:22:29 thestinger: oh sorry I lied, the number was 3x not 80x 2011-10-28T03:22:57 lol, 80x is for a set size of 8 ;B 2011-10-28T03:23:00 *MB 2011-10-28T03:23:34 bobbydroptable: no, every cpu has at least 32KB L1 data cache :) 2011-10-28T03:24:03 *** ztfw has joined #aichallenge 2011-10-28T03:25:00 There is even an interpreted programming language that tries to put itself entirly into L1 cache: http://en.wikipedia.org/wiki/K_(programming_language)#Performance_characteristics 2011-10-28T03:25:13 so the strategy must work out 2011-10-28T03:26:19 *** knyppeld1nan has joined #aichallenge 2011-10-28T03:27:00 *** delt0r__ has quit IRC (Ping timeout: 276 seconds) 2011-10-28T03:27:23 *** knyppeld1nan has left #aichallenge 2011-10-28T03:27:38 *** erenrich has left #aichallenge 2011-10-28T03:27:45 *** knyppeldynan has joined #aichallenge 2011-10-28T03:30:40 *** onensora has joined #aichallenge 2011-10-28T03:31:54 *** sbasu3 has joined #aichallenge 2011-10-28T03:32:12 hullo 2011-10-28T03:32:30 need help regarding a cpp compiler error 2011-10-28T03:32:45 I am using c++0x 2011-10-28T03:33:03 you can't use -std=c++0x at the moment because you can't pass the compiler any options 2011-10-28T03:33:03 says library not found!! 2011-10-28T03:33:24 i am using unordered_set 2011-10-28T03:33:50 and unordered_map 2011-10-28T03:35:12 any workarounds?? 2011-10-28T03:36:05 is it just me or the starter packs are unnecessarily complicated while being really featureless? xD 2011-10-28T03:38:46 *** delt0r__ has joined #aichallenge 2011-10-28T03:38:53 sbasu3: https://github.com/aichallenge/aichallenge/blob/epsilon/worker/compiler.py#L313 2011-10-28T03:39:03 that's how c++ gets compiled 2011-10-28T03:40:41 *** poh has joined #aichallenge 2011-10-28T03:40:47 can you please add -std=c++0x to it 2011-10-28T03:41:07 *** poh is now known as Guest33304 2011-10-28T03:42:09 Hi, guys. I'm new for ants. So... can i edit ants.py? 2011-10-28T03:42:50 *** epicmonkey has joined #aichallenge 2011-10-28T03:44:03 *** sdf has joined #aichallenge 2011-10-28T03:44:19 -_- 2011-10-28T03:44:37 yeah, you can 2011-10-28T03:44:51 all you need is a file named MyBot.py 2011-10-28T03:45:03 *** sdf has left #aichallenge 2011-10-28T03:45:41 i know, but... what if i make some changes in ants.py and upload zip file? 2011-10-28T03:45:45 *** mviel has joined #aichallenge 2011-10-28T03:46:09 the server just runs your MyBot.py file, which does 'import ants' 2011-10-28T03:46:14 you can edit/delete/rename it or w/e 2011-10-28T03:46:47 @thestinger :can you please add -std=c++0x to it 2011-10-28T03:46:48 sbasu3: You have no gotten any error messages recently, so here's a random one just to let you know that we care. 2011-10-28T03:47:21 thestinger: can you please add -std=c++0x to it 2011-10-28T03:47:33 sbasu3 spamming isn't going to help. and thestinger isn't a admin afaik 2011-10-28T03:47:42 yeah, I'm just a random guy in this channel 2011-10-28T03:47:45 thestinger: oh, thanks, that's what i want to hear. 2011-10-28T03:48:06 :( 2011-10-28T03:48:31 *** neurowasho has joined #aichallenge 2011-10-28T03:49:21 sbasu3: https://github.com/aichallenge/aichallenge/issues try opening an issue here 2011-10-28T03:49:56 be sure to do a search first since there already is an existing one for c++0x ;) 2011-10-28T03:50:20 *** k333es has joined #aichallenge 2011-10-28T03:50:22 I'm just started (only read sources) and... every step i can "get" food/water/enemies only from my ants "point view", isn't it? 2011-10-28T03:53:38 yup 2011-10-28T03:53:47 So, why i can't "hold" water, to "understand" map more with more precision. So, before map_data = '' save some maps details, which will not change. 2011-10-28T03:54:18 thats what I am doing :) 2011-10-28T03:54:23 Guest33304: Why you can't? 2011-10-28T03:54:44 sbasu3, so you change ants.py? 2011-10-28T03:54:49 nopes 2011-10-28T03:54:52 hm 2011-10-28T03:54:59 I am a cpp coder 2011-10-28T03:55:10 no idea abt python :( 2011-10-28T03:55:35 so, how get "water", throw "passed" method? 2011-10-28T03:55:49 *passable 2011-10-28T03:56:21 in cpp package theres a concept of a square with a isWater bool 2011-10-28T03:56:53 saving all such squares in a grid 2011-10-28T03:58:15 *** rj_ has quit IRC (Ping timeout: 265 seconds) 2011-10-28T03:58:43 sbasu3: yeah, same in python. 2011-10-28T03:58:50 thestinger, the issue is already mentioned 2011-10-28T04:01:29 *** neurowasho has quit IRC (Quit: Page closed) 2011-10-28T04:02:36 *** halligalli has joined #aichallenge 2011-10-28T04:03:14 *** kaemo has joined #aichallenge 2011-10-28T04:03:19 *** mithos28 has quit IRC (Quit: mithos28) 2011-10-28T04:03:20 *** AGrishchenko has quit IRC (Quit: Page closed) 2011-10-28T04:04:25 *** stislav_ has joined #aichallenge 2011-10-28T04:04:30 *** mithos28 has joined #aichallenge 2011-10-28T04:05:21 *** epicmonkey has quit IRC (Ping timeout: 276 seconds) 2011-10-28T04:05:47 *** boegel has joined #aichallenge 2011-10-28T04:06:28 *** stislav has quit IRC (Ping timeout: 265 seconds) 2011-10-28T04:07:05 *** mithos28 has quit IRC (Client Quit) 2011-10-28T04:10:15 *** stislav_ has quit IRC (Quit: Page closed) 2011-10-28T04:10:44 *** stislav has joined #aichallenge 2011-10-28T04:12:52 *** coramoor has left #aichallenge 2011-10-28T04:13:00 *** FlyinFish has joined #aichallenge 2011-10-28T04:13:15 *** coramoor has joined #aichallenge 2011-10-28T04:13:30 *** amstan has quit IRC (Ping timeout: 260 seconds) 2011-10-28T04:15:44 *** analyst74 has quit IRC (Ping timeout: 276 seconds) 2011-10-28T04:15:45 *** FlyinFish is now known as analyst74 2011-10-28T04:18:04 *** sbasu3 has quit IRC (Ping timeout: 265 seconds) 2011-10-28T04:27:25 *** bearoff_w has left #aichallenge 2011-10-28T04:27:29 *** stano has quit IRC (Read error: Connection reset by peer) 2011-10-28T04:44:25 *** TheDigitalNinja has quit IRC (Ping timeout: 260 seconds) 2011-10-28T04:44:59 *** Tumi_ has joined #aichallenge 2011-10-28T04:49:27 *** Necrys has joined #aichallenge 2011-10-28T04:58:47 *** Necrys has quit IRC (Quit: Page closed) 2011-10-28T05:04:49 *** kaemo has quit IRC (Ping timeout: 260 seconds) 2011-10-28T05:11:10 *** knyppeldynan has quit IRC (Quit: leaving) 2011-10-28T05:12:14 *** liberforce has joined #aichallenge 2011-10-28T05:20:27 *** steve__ has quit IRC (Quit: Page closed) 2011-10-28T05:21:09 *** knyppeldynan has joined #aichallenge 2011-10-28T05:22:05 *** ikaros has joined #aichallenge 2011-10-28T05:23:02 *** smiley1983 has quit IRC (Ping timeout: 252 seconds) 2011-10-28T05:27:48 *** replore_ has quit IRC (Remote host closed the connection) 2011-10-28T05:35:20 *** stislav has quit IRC (Quit: Page closed) 2011-10-28T05:39:16 *** overburn has quit IRC (Ping timeout: 265 seconds) 2011-10-28T05:44:56 *** smiley1983 has joined #aichallenge 2011-10-28T05:47:10 *** g0llum has joined #aichallenge 2011-10-28T05:53:54 *** abc has joined #aichallenge 2011-10-28T05:54:20 *** abc is now known as Guest47828 2011-10-28T05:57:50 *** kaemo has joined #aichallenge 2011-10-28T06:02:28 *** pgoldbr has quit IRC (Ping timeout: 265 seconds) 2011-10-28T06:08:22 *** analyst74 has quit IRC (Ping timeout: 260 seconds) 2011-10-28T06:13:12 *** bobbydroptable has quit IRC (Quit: Page closed) 2011-10-28T06:31:44 *** Guest47828 has quit IRC (Quit: Page closed) 2011-10-28T06:33:56 *** bearoff_w has joined #aichallenge 2011-10-28T06:39:00 *** olexs has joined #aichallenge 2011-10-28T06:39:04 *** bearoff_w has left #aichallenge 2011-10-28T06:39:45 *** bearoff_w has joined #aichallenge 2011-10-28T06:42:05 *** bearoff_w has left #aichallenge 2011-10-28T06:49:22 *** sigh has joined #aichallenge 2011-10-28T06:55:44 *** liberforce has quit IRC (Quit: Leaving.) 2011-10-28T06:58:08 *** stislav has joined #aichallenge 2011-10-28T07:04:57 *** stislav has quit IRC (Quit: Page closed) 2011-10-28T07:07:14 *** Guest33304 has quit IRC (Ping timeout: 265 seconds) 2011-10-28T07:18:33 *** simlay has joined #aichallenge 2011-10-28T07:21:15 *** olexs has quit IRC (Quit: Leaving.) 2011-10-28T07:26:29 *** g0llum has quit IRC (Read error: Connection reset by peer) 2011-10-28T07:27:44 *** Boh has joined #aichallenge 2011-10-28T07:30:29 *** Boh has quit IRC (Client Quit) 2011-10-28T07:31:55 *** liberforce has joined #aichallenge 2011-10-28T07:38:54 *** Kingpin13 has joined #aichallenge 2011-10-28T07:40:41 *** xathis has joined #aichallenge 2011-10-28T07:49:06 *** Fandekasp has joined #aichallenge 2011-10-28T07:56:11 *** replore_ has joined #aichallenge 2011-10-28T07:58:10 *** replore_ has quit IRC (Remote host closed the connection) 2011-10-28T08:05:40 is it posible to turn of replays? 2011-10-28T08:08:50 whoop #90 with lots and lots of timeouts 2011-10-28T08:08:56 isbric: press the power button of your screen? 2011-10-28T08:09:02 I hope I have some time to fix those... 2011-10-28T08:09:07 * boegel hides 2011-10-28T08:09:43 isbric: --nolaunch should prevent the visualizer from launching, is that what you want? 2011-10-28T08:09:55 xathis: yes, thx 2011-10-28T08:12:32 lol wtf 2011-10-28T08:12:35 are you kidding me 2011-10-28T08:14:16 Have you guys got any way of redirecting stdin and stdout? I wish to debug my bot with valgrind while playing a game 2011-10-28T08:18:34 xathis: --nolaunch is exaxtly what it sounds like ;) 2011-10-28T08:19:14 GeorgeJ: can't you just redirect valgrind's output to a file and tail that file? 2011-10-28T08:21:01 Minthos: Not really, I run the bot within valgrind, It takes input from stdin and outputs to stdout as usual, but, the bot worker will also get input from valgrind, since valgrind also outputs on stdout afaik 2011-10-28T08:21:46 you can tell valgrind to output to file instead, but it should output on stderr 2011-10-28T08:21:50 by default 2011-10-28T08:22:04 I see 2011-10-28T08:22:28 *** gideonn has joined #aichallenge 2011-10-28T08:22:41 So I could output bot traces on stderr, valgrind also outputs on stderr, and stdin and stdout is used to communicate with the worker 2011-10-28T08:23:09 Output stderr to a file, and tail that file for clarity 2011-10-28T08:23:26 That's actually not too bad 2011-10-28T08:29:42 *** g0llum has joined #aichallenge 2011-10-28T08:29:49 *** v_paul_v_ has quit IRC (Read error: Connection reset by peer) 2011-10-28T08:30:10 *** gideonn has quit IRC (Quit: Page closed) 2011-10-28T08:31:51 *** dwins has joined #aichallenge 2011-10-28T08:32:27 *** yoden has joined #aichallenge 2011-10-28T08:33:43 *** barsandcat has joined #aichallenge 2011-10-28T08:37:56 GeorgeJ: valgrind on a bot? isn't that a bit overkill? or is your bot way more advanced than mine? 2011-10-28T08:38:11 *** modafinil is now known as sofuture 2011-10-28T08:38:21 *** sofuture is now known as modafinil 2011-10-28T08:38:22 gerard_: Overkill? Why? Because I want to look for leaks? 2011-10-28T08:39:21 *** mceier has joined #aichallenge 2011-10-28T08:39:28 I also get some segfaults it would appear. I started from scratch and making some pretty neat data structures that I need to get right 2011-10-28T08:41:54 GeorgeJ: ahh, you're having fun ;) 2011-10-28T08:42:01 go ahead then 2011-10-28T08:42:17 GeorgeJ: is your bot in C or C++ ? 2011-10-28T08:42:41 lericson: ? 2011-10-28T08:42:56 *** halligalli has quit IRC (Ping timeout: 265 seconds) 2011-10-28T08:43:04 Ofcourse, I've allready implemented tracking my ants, some nice map stuff, gotta tweak my datastructures then I can start pathfinding and grouping, then behaviours! :D 2011-10-28T08:43:05 C 2011-10-28T08:43:10 liberforce: C * 2011-10-28T08:43:16 *** smiley1983 has quit IRC (Ping timeout: 252 seconds) 2011-10-28T08:43:29 i'm doing C too 2011-10-28T08:43:39 but the starter project in C is a bit short 2011-10-28T08:43:49 I didn't touch the C starter project 2011-10-28T08:43:51 GeorgeJ: I never had to implement my own data structures, but maybe I haven't done enough advanced AI programming 2011-10-28T08:43:55 so i still haven't written path finding either :) 2011-10-28T08:43:56 GeorgeJ: heh, my ants have no memory (except about water squares) and they seem to do ok 2011-10-28T08:43:56 Started from 0, read the specs 2011-10-28T08:44:11 usually the standard ones (vector,set,map) work fine for me 2011-10-28T08:44:13 GeorgeJ: maybe that's what I should have done 2011-10-28T08:44:30 Me too. I restrated in C after the python thing timed out regularly. 2011-10-28T08:44:42 instead i'm getting a hard time doing it right from what was given 2011-10-28T08:44:47 Well, the more tools you've got when you're building the AI the more easier it is 2011-10-28T08:44:49 callahan: the servers are SLOW... somehow my bot keeps timing out 2011-10-28T08:45:08 currently overengineering a time manager 2011-10-28T08:45:18 Besides, with a 1.5Gb of memory. I'm thinking of implementing some cacheing at some point 2011-10-28T08:45:26 GeorgeJ: do you reimplement linked lists, etc., or do you use external code ? 2011-10-28T08:45:28 I haven't timed out in a while. But my bot is pretty dumb. 2011-10-28T08:45:37 liberforce: Reimplemented 2011-10-28T08:45:53 Their so easy I don't need external code 2011-10-28T08:45:59 They're* 2011-10-28T08:46:20 Well, I've got an AntList linked-list, but I think I'll go with a general linked list 2011-10-28T08:46:39 well, depends, you can gain lots of time in using code that has already been tested 2011-10-28T08:46:54 http://ants.fluxid.pl/replay.10299 i'm proud of my bot 2011-10-28T08:47:04 I thought in getting some GLib code, as i'm familiar with it 2011-10-28T08:47:19 liberforce: A linked list is a pretty straightforward think 2011-10-28T08:47:55 *** TTE has joined #aichallenge 2011-10-28T08:48:02 GeorgeJ: a linked list sure, but binary trees, growableable array, queues, etc. 2011-10-28T08:48:06 all this take time 2011-10-28T08:48:18 takes time to implement 2011-10-28T08:48:39 Yup, that's why I pondered switching to java 2011-10-28T08:48:43 Fluxid: cool 2011-10-28T08:48:57 But it's all a learning experience. I don't mind implementing 2011-10-28T08:49:04 and what is interesting in the challenge is the AI algorithms, not reimplementing basic stuff that python, java had right out of the box 2011-10-28T08:49:18 GeorgeJ: yeah, thought of python too 2011-10-28T08:49:28 but i'm better at optimizing C thant python :) 2011-10-28T08:49:39 Besides, I've got linked list so I don't have to use dynamic arrays, and queues are just a simple layer on top of a list 2011-10-28T08:50:08 GeorgeJ: linked lists and growable arrays don't have the same algorithmic complexity 2011-10-28T08:50:59 Ofcourse they don't, but having so many delete operations on a list makes it the better choice 2011-10-28T08:51:00 so i'm pretty sure i'll have to use both 2011-10-28T08:51:14 Atleast so far, for me 2011-10-28T08:51:26 hum... 2011-10-28T08:51:34 I don't really need traveral speed so far, perhaps for caches 2011-10-28T08:51:40 I don't understand your rationale on deletes ? 2011-10-28T08:51:56 oh, ok, i understand 2011-10-28T08:52:15 well, that depends if you need sorted things 2011-10-28T08:52:15 How do you delete an item from the middle of an array? ^_^ 2011-10-28T08:52:35 Sure, you can mark it as deleted, but then, how do you add an item to the array? Traverse the whole array? 2011-10-28T08:52:42 you replace it by the last item, and decrement the length of the array 2011-10-28T08:53:06 to add, you just append it, and track you've an item more 2011-10-28T08:53:08 easy 2011-10-28T08:53:20 the trick is to make the array big enoug 2011-10-28T08:53:28 *** Areks has quit IRC (Read error: Connection reset by peer) 2011-10-28T08:53:29 *** Areks has joined #aichallenge 2011-10-28T08:53:31 or resize it when needed 2011-10-28T08:53:38 liberforce: replace it by the last item? I don't understand 2011-10-28T08:54:00 if you want to remove an item in the middle of an array: 2011-10-28T08:54:07 If you delete an item from the middle of a simple array, you have an empty spot 2011-10-28T08:54:25 1. copy the last item of the array on the item you want to delete 2011-10-28T08:54:27 With a linked list, you do not 2011-10-28T08:54:36 2. decrement the size of your array 2011-10-28T08:54:56 of course, the order changes 2011-10-28T08:55:01 *** TTE has quit IRC (Ping timeout: 265 seconds) 2011-10-28T08:55:07 *** smiley1983 has joined #aichallenge 2011-10-28T08:55:13 but if order is not important, it's a better choice 2011-10-28T08:55:34 I still don't understand, array[5] = array[count] copies values, is that what you mean? 2011-10-28T08:56:23 to delete item 5 2011-10-28T08:56:44 well, to delete array[5]: 2011-10-28T08:56:48 memmove :P 2011-10-28T08:57:09 array[5] = array[--count]; 2011-10-28T08:57:36 yeah, or memmove 2011-10-28T08:57:41 Yes, then array[5] would be empty, wouldn't it? 2011-10-28T08:57:55 nope 2011-10-28T08:58:07 Oh I understand 2011-10-28T08:58:13 it is overwritten by the value of the last item 2011-10-28T08:58:24 Yeah, I get it 2011-10-28T08:58:33 omg. I was thinking to rewrite my python bot in C++, but now... I will not 2011-10-28T08:58:33 *** robin__ has joined #aichallenge 2011-10-28T08:58:42 linked list are good for ordering 2011-10-28T08:58:46 *** robin__ is now known as rogual 2011-10-28T08:58:52 Hmm, that's actually a good ideea 2011-10-28T08:58:56 but an array is better for non-ordered 2011-10-28T08:59:04 barsandcat: why not? 2011-10-28T08:59:24 You can not implement your container in python 2011-10-28T08:59:34 GeorgeJ: hey, that's what GLib does ;-) 2011-10-28T08:59:36 so you will not spend your time on it 2011-10-28T08:59:49 I don't need ordering. I was just thinking that the overhead of reallocating an array would have more of an inpact than the time to traverse a linked list 2011-10-28T09:00:01 *** bearoff_w has joined #aichallenge 2011-10-28T09:00:01 well, C++ has dynamic arrays (vector), lists, queues, deques, sets, maps, etc. just like python 2011-10-28T09:00:06 they're talking about C 2011-10-28T09:00:17 GeorgeJ: reallocationg is bad 2011-10-28T09:00:22 but there's ways to avoid it 2011-10-28T09:00:31 dynamic arrays and linked lists are pretty easy in C but I haven't ever really dealt with hash tables and stuff and I don't think I'd want to deal with that 2011-10-28T09:00:59 thestinger: yeah, hash tables are what worries me most 2011-10-28T09:01:04 14:59 < GeorgeJ> I don't need ordering. I was just thinking that the overhead of reallocating an array would have more of an inpact than the time to traverse a linked list 2011-10-28T09:01:05 who needs hash tables anyway 2011-10-28T09:01:07 you'd be surprised 2011-10-28T09:01:25 liberforce: Glib? Gnome library? 2011-10-28T09:01:28 emilk: yeah, depends on the size of the list 2011-10-28T09:01:43 doing push_back on a vector a million times compared to a std::list, its much quicker with a std::vector - even without .reserve 2011-10-28T09:01:46 bench it 2011-10-28T09:01:49 GeorgeJ: GLib, yeah by GTK, which is used by GNOME 2011-10-28T09:01:57 if you make a proper append() function for your array reallocating isn't a big deal, because you double the size each time 2011-10-28T09:02:15 mostly due to cache coherence 2011-10-28T09:02:16 liberforce: Is it lightweight? Isn't there a 2Mb code limit on the bot? 2011-10-28T09:02:32 thestinger: you just need to make sure you won't timeout on that turn ;-) 2011-10-28T09:02:55 *** yoden has quit IRC (Quit: Leaving.) 2011-10-28T09:03:20 liberforce: And as far as I can tell, you need to provide the library sources yourself, your bot is not compiled with the flags for any library 2011-10-28T09:03:55 anyway, cya guys 2011-10-28T09:03:56 *** thestinger has quit IRC (Quit: WeeChat 0.3.6) 2011-10-28T09:04:16 Hmm, perhaps going with C++ would be a better choice 2011-10-28T09:04:33 GeorgeJ: yep, hard time for libraries 2011-10-28T09:04:49 Nah :> 2011-10-28T09:04:51 i'll see when I really need it 2011-10-28T09:04:57 *** yoden has joined #aichallenge 2011-10-28T09:05:01 I'll just have to reimplement everything! Muhaha 2011-10-28T09:05:07 :p 2011-10-28T09:08:01 *** juuso_ has joined #aichallenge 2011-10-28T09:12:42 *** he_the_great has joined #aichallenge 2011-10-28T09:15:00 *** bearoff_w has left #aichallenge 2011-10-28T09:21:33 *** LexHagan has joined #aichallenge 2011-10-28T09:21:48 Hellooooooooo 2011-10-28T09:22:04 *** koh_h_h has joined #aichallenge 2011-10-28T09:22:15 hi 2011-10-28T09:22:24 I have kindof an annoying issue with my bot 2011-10-28T09:22:32 When I issue my orders 2011-10-28T09:22:46 it seems to accept it as valid 2011-10-28T09:22:53 but the ant is not moved apparently 2011-10-28T09:22:54 can anyone please tell me how to use javascript for programming?? 2011-10-28T09:23:07 i don't really know where to look for the bug 2011-10-28T09:23:15 koh_h_h: look at the starter package to get an idea 2011-10-28T09:23:20 because the output seems to get there (the second order gets recognized as invalid) 2011-10-28T09:23:26 and the syntax is correct 2011-10-28T09:23:29 koh_h_h: basically, toy use node.js to get a commandline program that uses stdio 2011-10-28T09:23:30 but it can't load 2011-10-28T09:25:53 my logs are really strange 2011-10-28T09:25:57 load what? who? where? what error? 2011-10-28T09:26:15 i would really appreciate if someone could check whether there is something stupid i'm missing 2011-10-28T09:26:26 *** dionoea has joined #aichallenge 2011-10-28T09:27:00 can't load the starter packet 2011-10-28T09:27:17 javascript 2011-10-28T09:27:50 do you have node.js installed? 2011-10-28T09:27:53 how are you loading it? 2011-10-28T09:28:20 i loaded python starter package and it works 2011-10-28T09:28:23 *** zerofoxdodo has joined #aichallenge 2011-10-28T09:28:31 but js, php doesn't work 2011-10-28T09:28:53 i do like what the tutorial said 2011-10-28T09:28:56 http://pastie.org/2773144 2011-10-28T09:29:02 does anyone know what's wrong there? 2011-10-28T09:29:06 it seems the first move order is accepted 2011-10-28T09:29:17 but then on the second turn, the ant seems to be still at the same spot 2011-10-28T09:29:43 i'm forced to learn pyhton 2011-10-28T09:29:49 and it's a pain 2011-10-28T09:31:04 still can't understand it 2011-10-28T09:31:38 i feel like, only python are given piority 2011-10-28T09:32:06 they explain everything in python 2011-10-28T09:32:34 you can switch to java too in the tutorial 2011-10-28T09:32:45 can't expect it to be explained in every possible language 2011-10-28T09:33:14 you still havent explained how you invoke the starter package 2011-10-28T09:33:34 command prompt 2011-10-28T09:33:48 i use command prompt 2011-10-28T09:34:23 now i'm trying to understand python 2011-10-28T09:37:19 *** savaron has joined #aichallenge 2011-10-28T09:40:24 *** pgoldbr has joined #aichallenge 2011-10-28T09:40:57 *** savaron has quit IRC (Client Quit) 2011-10-28T09:40:59 koh_h_h: I don't think python bots are prioritized 2011-10-28T09:44:27 I tried the starter package, only replacing "python MyBot.py" with "node MyBot.js" and it just works :-/ 2011-10-28T09:45:06 koh_h_h: You have to use node.js. Look it up 2011-10-28T09:45:17 koh_h_h: To use JavaScript 2011-10-28T09:48:15 *** zacharydenton has joined #aichallenge 2011-10-28T09:48:52 *** Harpyon has joined #aichallenge 2011-10-28T09:49:51 *** Blkt has joined #aichallenge 2011-10-28T09:51:01 *** HaraKiri has joined #aichallenge 2011-10-28T09:51:11 ok 2011-10-28T09:53:51 *** SharkMonkey has quit IRC (Ping timeout: 248 seconds) 2011-10-28T09:57:09 *** LexHagan has quit IRC (Quit: Page closed) 2011-10-28T09:57:53 *** sunshowers has joined #aichallenge 2011-10-28T10:00:04 *** sunshowers has quit IRC (Client Quit) 2011-10-28T10:02:12 *** gorogm has joined #aichallenge 2011-10-28T10:04:01 *** gorogm has joined #aichallenge 2011-10-28T10:04:45 Hi! Do you get "Status 500: ( The request is not supported. )" message on the website when want to see a gorogm replay?? 2011-10-28T10:05:06 *want to see any replay? 2011-10-28T10:08:01 Only if the replay is not yet processed 2011-10-28T10:09:51 LexHagan: seems straightforward 2011-10-28T10:10:20 *** Emanuel has joined #aichallenge 2011-10-28T10:10:26 *** Emanuel has left #aichallenge 2011-10-28T10:10:57 thanks GeorgeJ, I will wait then 2011-10-28T10:12:51 however something has changed, because until now one of the most recent games was shown on the home page, now there's this error message instead :) 2011-10-28T10:13:27 *** Vesbur has joined #aichallenge 2011-10-28T10:17:40 *** gorogm has quit IRC (Ping timeout: 265 seconds) 2011-10-28T10:20:10 *** Vesbur has quit IRC (Remote host closed the connection) 2011-10-28T10:21:36 *** gorogm has joined #aichallenge 2011-10-28T10:21:40 I think GergeJ isn't right, I can not even see some of my older games. There should be a problem at the server which didn't show up before 2011-10-28T10:21:44 *** Harpyon has quit IRC (Quit: Textual IRC Client: http://www.textualapp.com/) 2011-10-28T10:23:12 *** epicmonkey has joined #aichallenge 2011-10-28T10:23:23 *** paulwal has joined #aichallenge 2011-10-28T10:25:24 @repo 2011-10-28T10:25:25 paulwal: repo could be https://github.com/aichallenge/aichallenge. 2011-10-28T10:27:33 gorogm: There is no rule that older games are processed first 2011-10-28T10:27:42 *** Accoun has quit IRC (Ping timeout: 255 seconds) 2011-10-28T10:27:50 gorogm: I've had a recent game appear first, and an older one appear way later 2011-10-28T10:28:30 *** Accoun has joined #aichallenge 2011-10-28T10:28:51 *** zerofoxdodo has quit IRC (Remote host closed the connection) 2011-10-28T10:31:18 *** cyphase has quit IRC (Ping timeout: 260 seconds) 2011-10-28T10:38:53 *** boegel has quit IRC (Quit: *poof!*) 2011-10-28T10:41:31 43rd place, with higher skill 2011-10-28T10:41:48 top skill gets higher everyday... 2011-10-28T10:41:59 i wonder what sigma have the top bots 2011-10-28T10:43:24 *** cyphase has joined #aichallenge 2011-10-28T10:43:27 *** coramoor has quit IRC (Quit: Leaving) 2011-10-28T10:44:05 *** maran has quit IRC (Quit: Leaving) 2011-10-28T10:44:08 *** GeorgeJ has quit IRC (Quit: There is no spoon.) 2011-10-28T10:44:26 *** he_the_great has quit IRC (Ping timeout: 276 seconds) 2011-10-28T10:45:25 *** GeorgeJ has joined #aichallenge 2011-10-28T10:45:33 *** GeorgeJ has joined #aichallenge 2011-10-28T10:45:40 *** cyphase has quit IRC (Max SendQ exceeded) 2011-10-28T10:46:03 *** cyphase has joined #aichallenge 2011-10-28T10:48:21 *** cyphase has quit IRC (Max SendQ exceeded) 2011-10-28T10:48:42 *** cyphase has joined #aichallenge 2011-10-28T10:49:33 *** gorogm has quit IRC (Quit: Page closed) 2011-10-28T10:53:30 Fluxid: Thanks for setting up the tcp server. Very useful for development. 2011-10-28T10:54:10 http://aichallenge.org/visualizer.php?game=23825&user=5863 <- look a friendly bot :-) 2011-10-28T10:55:49 *** Areks has quit IRC (Ping timeout: 240 seconds) 2011-10-28T10:57:43 avdg: nice one ;-) 2011-10-28T10:57:46 *** fellmin has joined #aichallenge 2011-10-28T10:58:50 zacharydenton: np 2011-10-28T10:59:00 *** halligalli has joined #aichallenge 2011-10-28T10:59:14 where do i find the server settings again? default attack radius etc 2011-10-28T10:59:54 @settings 2011-10-28T10:59:55 avdg: settings could be http://aichallengebeta.hypertriangle.com/game_settings.php. 2011-10-28T11:00:11 *** red_panther has joined #aichallenge 2011-10-28T11:00:14 the settings are also given at the start of each game ;-) 2011-10-28T11:00:15 thx 2011-10-28T11:00:25 yes, i know ;) 2011-10-28T11:00:33 *** aerique has quit IRC (Quit: ..) 2011-10-28T11:00:33 just for local testing 2011-10-28T11:00:34 hi guys 2011-10-28T11:01:46 I'm trying to upload a bot, but all I get is Compile Error: error while compiling submission 2011-10-28T11:02:04 no error message, nothig except Note: Recompile with -Xlint:unchecked for details. 2011-10-28T11:02:20 the code compiles OK on my side 2011-10-28T11:04:52 *** icefox has joined #aichallenge 2011-10-28T11:05:11 *** McLeopold has joined #aichallenge 2011-10-28T11:05:57 is anyone here familiar with 'git push' 2011-10-28T11:06:12 whats the problem with git push? 2011-10-28T11:06:20 *** gerard_ has left #aichallenge 2011-10-28T11:07:04 paulwal: did you added a remote already (check it by typing "git remote -v" and see if the wanted repo is available) 2011-10-28T11:07:30 *** onensora has quit IRC () 2011-10-28T11:07:48 I forked the aichallenge repo, cloned it locally, copied some files into it (did not use git to do this, am i supposed to?), then tried running "git push orgin master" 2011-10-28T11:08:01 $ git remote -v origin git@github.com:paulwal/aichallenge.git (fetch) origin git@github.com:paulwal/aichallenge.git (push) upstream git://github.com/aichallenge/aichallenge.git (fetch) upstream git://github.com/aichallenge/aichallenge.git (push) 2011-10-28T11:08:09 there is no master ;-) 2011-10-28T11:08:13 try git branch 2011-10-28T11:08:32 ah, is master supposed to be a remote? 2011-10-28T11:08:36 master is just a branch, git doesn't care about the names of the branches 2011-10-28T11:08:54 no, I'm talking here about branches 2011-10-28T11:09:11 if I say origin though, its more likely I'm talking about remotes 2011-10-28T11:09:28 but don't worry about that, these are some hidden conventions 2011-10-28T11:09:30 paulwal: why does your push url differ from your fetch one? 2011-10-28T11:09:31 I'm trying to upload a new starter bot to my forked github repo so i can then send a pull request. I'll have to read up on branches 2011-10-28T11:09:36 just do "git branch" 2011-10-28T11:09:39 and push the branch you see 2011-10-28T11:09:47 github doesn't allow pushing over git://; you have to use ssh 2011-10-28T11:10:03 which corresponds to the git@github... variant 2011-10-28T11:10:17 dwins: one is for 'origin' and the other is for 'upstream' 2011-10-28T11:10:42 paulwal: can you repeat the command you tried last? 2011-10-28T11:10:46 I'm only trying to push to the origin 2011-10-28T11:10:57 sure 2011-10-28T11:11:06 oh i see, that output is confusing without line breaks 2011-10-28T11:11:06 origin is your repo, right? 2011-10-28T11:11:11 yes 2011-10-28T11:11:36 just try "git push origin " 2011-10-28T11:11:58 paulwal: you have committed before trying to push right? 2011-10-28T11:11:59 ok 2011-10-28T11:12:25 dwins: in that case, git would tell you there is nothing to update 2011-10-28T11:12:30 *** Trinidad has joined #aichallenge 2011-10-28T11:12:50 dwins: i'm not sure what committing is... I manually created a dir, copied some files into it, and edited another file. do i have to run a command, like git commit or something? 2011-10-28T11:13:12 avdg 2011-10-28T11:13:14 $ git push origin master 2011-10-28T11:13:20 error: src refspec master does not match any. 2011-10-28T11:13:26 error: failed to push some refs to 'git@github.com:paulwal/aichallenge.git' 2011-10-28T11:13:27 master doesn't exist in your repo ;-) 2011-10-28T11:13:34 ok 2011-10-28T11:13:35 else you would see master if you do "git branch" 2011-10-28T11:13:43 *** red_panther has quit IRC (Ping timeout: 245 seconds) 2011-10-28T11:13:50 but wait 2011-10-28T11:13:54 so you changed the files 2011-10-28T11:13:57 $ git branch 2011-10-28T11:13:58 * epsilon 2011-10-28T11:14:04 yes 2011-10-28T11:14:11 am i doing it wrong? ;) 2011-10-28T11:14:13 and didn't notify git about these changes? 2011-10-28T11:14:19 yea 2011-10-28T11:14:20 paulwal: thats good 2011-10-28T11:14:32 git branch gives you a list of available branches 2011-10-28T11:14:38 so 2011-10-28T11:14:43 if you want to add these files 2011-10-28T11:14:54 do "git add " for every file you want to add 2011-10-28T11:15:03 ahh 2011-10-28T11:15:14 how about directories and edited files? 2011-10-28T11:15:19 then do 'git commit -m ""' 2011-10-28T11:15:23 only files 2011-10-28T11:15:30 ok 2011-10-28T11:15:34 and only the files you want in the next change or commit 2011-10-28T11:16:06 after you ran commit, you can push ;-) 2011-10-28T11:17:02 thanks, I'll try that now. should i cd into the directory i've copied the file into, or should i be in the project's root directory? 2011-10-28T11:17:21 or does it not matter? 2011-10-28T11:17:31 you just cd in the git directory (you can see the .git directory from there) 2011-10-28T11:17:41 if you are in a submap, its fine as well 2011-10-28T11:17:45 *** moises has quit IRC (Remote host closed the connection) 2011-10-28T11:17:49 ok 2011-10-28T11:18:46 *** bmh has joined #aichallenge 2011-10-28T11:18:52 *** bmh has joined #aichallenge 2011-10-28T11:18:58 morning 2011-10-28T11:19:23 *** hulxter has joined #aichallenge 2011-10-28T11:20:08 paulwal: 1 more tip before doing "git commit", check "git status" to see if you added the right files ;-) 2011-10-28T11:20:21 ok 2011-10-28T11:20:47 and git reset will unmark all the files so you can try again 2011-10-28T11:21:02 http://aichallenge.org/visualizer.php?game=24360 maccam has some problems with deleting razed hills... 2011-10-28T11:21:19 yep, looks good. Committing now 2011-10-28T11:21:28 *** pgoldbr has quit IRC (Ping timeout: 265 seconds) 2011-10-28T11:22:47 so now I guess I should run 'git push origin epsilon' ? 2011-10-28T11:22:54 yep 2011-10-28T11:22:58 k 2011-10-28T11:24:05 *** amstan has joined #aichallenge 2011-10-28T11:24:05 *** ChanServ sets mode: +o amstan 2011-10-28T11:25:06 *** mrshady1 has joined #aichallenge 2011-10-28T11:25:14 cool, it worked: https://github.com/paulwal/aichallenge/tree/epsilon/ants/dist/starter_bots/tcl 2011-10-28T11:25:34 thanks avdg & dwins 2011-10-28T11:25:38 :-) 2011-10-28T11:25:46 nice commit 2011-10-28T11:25:50 *** Chirmaya has joined #aichallenge 2011-10-28T11:26:25 *** delt0r__ has quit IRC (Ping timeout: 256 seconds) 2011-10-28T11:26:44 Anyone able to provide a bit of general help? 2011-10-28T11:26:55 *** choas has joined #aichallenge 2011-10-28T11:26:57 Chirmaya: what's the question? 2011-10-28T11:26:59 paulwal: if you like, you can send a pull request 2011-10-28T11:27:26 I am wondering when a timeout is occuring. I get these lines: 2011-10-28T11:27:30 turn 46 stats: [4,2,0] 0 [0,1] - 30 1 [0,0] [0,1] [1,1] [1,1] 1 [0,1] score 1 3 status timeout survived playerturns 46 46 2011-10-28T11:27:39 avdg: yea, i'd like to. I'm reading up on that now 2011-10-28T11:27:42 score 1 3 2011-10-28T11:27:45 its the way to notify the owner of the repo, so they can add the changes 2011-10-28T11:27:53 status timeout survived 2011-10-28T11:27:53 avdg: pull request 2011-10-28T11:27:54 any chance anyone can help with using VB.net, I have added vbc.exe to my app path but unshore where to put "vbc /define:DEBUG /out:MyBot.exe *.vb" 2011-10-28T11:27:59 Chirmaya: if your bot doesnt reply in turntime ms 2011-10-28T11:28:29 Is anyone actually peaking at the timer to make sure that they don't time out? I'm just trying to make it fast enough that I can disregard the clock. 2011-10-28T11:28:42 %s/peak/peek/g 2011-10-28T11:28:46 The variable says I have 1000ms on this local test environment, and at this error my current is at 527ms 2011-10-28T11:28:53 mine runs only 1ms a turn locally, still timing out 2011-10-28T11:28:56 *** Knekkebjoern has joined #aichallenge 2011-10-28T11:28:58 mrshady1: I'll try helping 2011-10-28T11:29:10 (on server) 2011-10-28T11:29:36 cheers McLeopold 2011-10-28T11:29:38 Chirmaya: not sure if crashing counts as a timeout, but I think it does 2011-10-28T11:29:48 do you use vs 2010 express? 2011-10-28T11:30:01 Garf: no, a crash is different from a timeout 2011-10-28T11:30:06 visual studio 2010 pro 2011-10-28T11:30:23 mrshady1: okay, let me setup a starter bot 2011-10-28T11:30:37 I'll take a look at that, thanks kindly, Garf 2011-10-28T11:30:53 Oh 2011-10-28T11:31:09 That turn message shows right at the end of a turn, right? 2011-10-28T11:31:42 Would that show (assumedly) after the crash occurred? 2011-10-28T11:33:11 paulwal: did you created 2 commits? 2011-10-28T11:33:39 Yeah, I just edited the readme file a couple of times and committed it 2011-10-28T11:33:46 mrshady1: what is the path you used for vbc.exe? 2011-10-28T11:34:22 oh well, don't worry about it too much (I know how to fix that though, but its a bit more advantaged) 2011-10-28T11:35:19 McLeopold it was C:\Windows\Microsoft.NET\Framework\v2.0.50727 2011-10-28T11:36:03 avdg, what do you mean? 2011-10-28T11:36:15 nvm 2011-10-28T11:36:48 just do your pull request, I hope the pullers will ignore it 2011-10-28T11:36:54 in the forums it mentions something about adding this to the top of the script ("vbc /define:DEBUG /out:MyBot.exe *.vb") would that be at the top of the bat file script or some other script??? 2011-10-28T11:37:20 I guess you should create a script, probably "make.cmd" 2011-10-28T11:37:34 then you can just type "make" and it will compile 2011-10-28T11:38:54 that command makes an exe for me that works 2011-10-28T11:39:00 *** delt0r__ has joined #aichallenge 2011-10-28T11:40:09 *** Areks|2 has joined #aichallenge 2011-10-28T11:41:21 ok i will try and see what I can do lol 2011-10-28T11:41:28 *** sjoerd_visscher has joined #aichallenge 2011-10-28T11:46:14 *** bmh has quit IRC (Quit: bmh) 2011-10-28T11:47:58 *** keoma has joined #aichallenge 2011-10-28T11:49:29 avdg, pull request sent! https://github.com/aichallenge/aichallenge/pull/339 2011-10-28T11:50:53 do extra commits complicate the pulling procedure? 2011-10-28T11:51:20 paulwal: you probably want to add the package to the worker_setup_script.py as well 2011-10-28T11:51:33 Ok 2011-10-28T11:51:45 *** sjoerd_visscher has quit IRC (Quit: Page closed) 2011-10-28T11:52:21 *** hulxter has left #aichallenge 2011-10-28T11:53:01 *** analyst74 has joined #aichallenge 2011-10-28T11:53:13 *** fellmin has quit IRC (Quit: Page closed) 2011-10-28T11:57:56 there's new beavis and butthead aha 2011-10-28T11:59:39 *** kaemo has quit IRC (Quit: *puff*) 2011-10-28T11:59:59 *** keoma has quit IRC (Quit: Page closed) 2011-10-28T12:00:46 *** mleise has quit IRC (Read error: Connection reset by peer) 2011-10-28T12:00:58 *** mleise has joined #aichallenge 2011-10-28T12:04:16 http://aichallenge.org/visualizer.php?game=24334&row=21&col=111&turn=870 2011-10-28T12:04:37 hey, got a question about the spec 2011-10-28T12:04:47 *** lorill has joined #aichallenge 2011-10-28T12:04:56 it says that unseen territory is marked with '?' 2011-10-28T12:05:06 hard defend :-) 2011-10-28T12:05:12 but all the maps I saw use '.' for plain land 2011-10-28T12:05:30 the game was on the line, if yellow got it he would have tied for 1st 2011-10-28T12:06:04 hey guys about the tcp servers 2011-10-28T12:06:15 i connected as described in the how to 2011-10-28T12:06:17 liberforce: ? isn't really used for map files, only if you would want a map file with a bot perspective 2011-10-28T12:06:29 *** sigh has quit IRC (Remote host closed the connection) 2011-10-28T12:06:36 and it says i am connected, but nothing happens - does that mean i am in the waiting line? 2011-10-28T12:07:01 *** sigh has joined #aichallenge 2011-10-28T12:07:13 *** kaemo has joined #aichallenge 2011-10-28T12:07:28 to be more precise, i am talking about the ants.fluxid.pl tcp server 2011-10-28T12:07:39 *** kaemo is now known as Guest94687 2011-10-28T12:08:10 halligalli: I believe so 2011-10-28T12:08:20 McLeopold: I just added tcl8.5 to install_basic_languages() in setup/worker_setup.py 2011-10-28T12:08:57 *** Guest94687 has quit IRC (Client Quit) 2011-10-28T12:09:30 McLeopold, I suppose I should also edit /website/starter_packages.php, eh? 2011-10-28T12:10:15 it wouldn't hurt :) 2011-10-28T12:10:16 *** kaemo_ has joined #aichallenge 2011-10-28T12:10:29 McLeopold: thanks for the tip :) 2011-10-28T12:10:38 k 2011-10-28T12:11:13 *** sigh has quit IRC (Ping timeout: 245 seconds) 2011-10-28T12:12:02 paulwal: add it to extra languages 2011-10-28T12:12:21 does anyone want to join for a game on ants.fluxid.pl ? 2011-10-28T12:12:53 is there a good way to get info about a timeout on the real servers? my bot is pretty damn efficient but seemed to crash at the end of a game on a bigger map -- cant reproduce locally at all 2011-10-28T12:12:54 janzert, ah I see. ok 2011-10-28T12:12:54 *** koh_h_h has quit IRC (Quit: Page closed) 2011-10-28T12:13:12 thanks 2011-10-28T12:17:29 *** Flort has joined #aichallenge 2011-10-28T12:17:29 *** Mooloo has quit IRC (Read error: Connection reset by peer) 2011-10-28T12:21:29 *** Blkt has quit IRC (Remote host closed the connection) 2011-10-28T12:22:04 *** Flort has quit IRC (Ping timeout: 260 seconds) 2011-10-28T12:22:24 http://aichallenge.org/visualizer.php?game=23876&turn=371&row=23&col=62 <- ants can dance? 2011-10-28T12:22:40 *** lavalamp has joined #aichallenge 2011-10-28T12:23:20 hey lavalamp, are you a go player ? 2011-10-28T12:23:41 aichallenge: Scott Hamilton epsilon * r08c11a4 / ants/playgame.py : 2011-10-28T12:23:41 aichallenge: Merge pull request #335 from gcp/epsilon 2011-10-28T12:23:41 aichallenge: Fix relative import of python module - http://git.io/ItkGxg 2011-10-28T12:23:54 lorill: yes :) 2011-10-28T12:23:57 janzert & McLeopold, I've moved tcl8.5 setup into install_extra_distribution_languages() and I've also added Tcl to website/starter_packages.php. I think it's ready to go unless there's anything else? 2011-10-28T12:24:27 haha, i remebered the nickname right, then :) 2011-10-28T12:25:21 Yup. I made a post on L19 about the contest, actually. 2011-10-28T12:25:46 *** kaemo_ has quit IRC (Quit: Lost terminal) 2011-10-28T12:26:28 *** mrshady1 has quit IRC (Quit: Page closed) 2011-10-28T12:26:28 *** wilsone has joined #aichallenge 2011-10-28T12:27:30 *** rubencm has joined #aichallenge 2011-10-28T12:27:44 paulwal: thanks, I'll try and get it merged later today 2011-10-28T12:27:58 awesome, thanks 2011-10-28T12:27:59 working on Ada addition atm 2011-10-28T12:28:22 yea, i saw someone post that in the forum 2011-10-28T12:28:54 any idea why my ant might be behaving fine locally, but doesn't perform basic moves on the server? 2011-10-28T12:31:13 *** cyphase has quit IRC (Ping timeout: 245 seconds) 2011-10-28T12:32:21 *** rubencm has quit IRC (Client Quit) 2011-10-28T12:33:51 *** choas has quit IRC (Ping timeout: 248 seconds) 2011-10-28T12:34:06 *** Flort has joined #aichallenge 2011-10-28T12:34:06 spawnradius2 is what? 2011-10-28T12:34:07 wilsone: I think the bot might be shut down if it outputs to stderr. 2011-10-28T12:34:50 emilk: Food gathering radius squared 2011-10-28T12:34:56 emilk: http://aichallenge.org/specification.php 2011-10-28T12:35:43 *** otbzi has joined #aichallenge 2011-10-28T12:39:57 *** rogual has quit IRC (Ping timeout: 260 seconds) 2011-10-28T12:40:27 GeorgeJ: thanks! 2011-10-28T12:40:32 *** Zao has joined #aichallenge 2011-10-28T12:41:13 *** lorill has quit IRC (Ping timeout: 265 seconds) 2011-10-28T12:42:23 *** cyphase has joined #aichallenge 2011-10-28T12:42:23 *** analyst74 has quit IRC (Ping timeout: 248 seconds) 2011-10-28T12:47:57 *** Saulzar has joined #aichallenge 2011-10-28T12:47:57 *** acacacafsf123 has joined #aichallenge 2011-10-28T12:51:22 *** Trinidad has quit IRC (Ping timeout: 265 seconds) 2011-10-28T12:54:17 GerogeJ, that's unfortunate... it'd be nice if we could use stderr for debugging. 2011-10-28T12:54:26 GeorgeJ* 2011-10-28T12:55:23 paulwal: I never said you can't 2011-10-28T12:55:45 You just have to stop debuging on the version of the bot you send to the worker 2011-10-28T12:56:03 Have a compilation or runtime flag to toggle debuging or something 2011-10-28T12:56:04 *** kaemo_ has joined #aichallenge 2011-10-28T12:56:12 *** Chirmaya has quit IRC (Ping timeout: 265 seconds) 2011-10-28T12:56:56 i meant debugging on the server. there seems to be a lot of people saying "it works fine locally, but it crashes on the server and i have no idea why" 2011-10-28T12:57:29 Thanks for the info GeorgeJ, that is probably the issue 2011-10-28T12:58:07 why not just send stderr to /dev/null on the server, why does it even care tho? 2011-10-28T12:58:11 paulwal: I believe you can use a tcp socket or something 2011-10-28T12:58:37 wilsone: Because you usually send something to stderr when there's a problem 2011-10-28T12:59:12 the sandboxing allows opening sockets? wow 2011-10-28T12:59:36 *** Israfel has joined #aichallenge 2011-10-28T12:59:37 paulwal: I have no ideea, I was just throwing ideeas 2011-10-28T12:59:39 what stream is -e flag outputing to? 2011-10-28T13:00:57 it's be great to output to stderr. you could use it to see what your bot was thinking during important games... Are you sure it doesn't allow this? I haven't uploaded a bot yet, so I haven't tried. 2011-10-28T13:01:55 paulwal: You can always use a tcp server 2011-10-28T13:02:25 *** jfs has quit IRC (Quit: Leaving) 2011-10-28T13:02:53 As soon as my bot passed the test_bot test, I went straight for a tcp server 2011-10-28T13:03:46 which one is the most popular right now.... fluxid? 2011-10-28T13:04:54 accoun's, i think 2011-10-28T13:05:23 according to the forum, flukid is the main one 2011-10-28T13:05:42 which one is accouns? 2011-10-28T13:06:02 213.88.39.97 2011-10-28T13:06:23 another at ash.webfactional.com 2011-10-28T13:06:54 *** smoke_carrot has quit IRC (Ping timeout: 258 seconds) 2011-10-28T13:07:48 *** Cybsy has joined #aichallenge 2011-10-28T13:11:30 *** kaemo_ has quit IRC (Quit: Lost terminal) 2011-10-28T13:13:10 *** smoke_carrot has joined #aichallenge 2011-10-28T13:14:24 *** analyst74 has joined #aichallenge 2011-10-28T13:15:22 *** paulwal has quit IRC (Quit: Page closed) 2011-10-28T13:15:22 janzert: do you have a paypal account? 2011-10-28T13:15:42 yes? 2011-10-28T13:15:52 people want to give money 2011-10-28T13:15:59 we just need a way of accepting it 2011-10-28T13:16:11 I think we need to go through Jeff 2011-10-28T13:16:30 I wrote something on the google group, but got no response yet 2011-10-28T13:16:31 *** wombot_ has joined #aichallenge 2011-10-28T13:17:17 I'll try a text 2011-10-28T13:17:27 ah, server crashed in some weird way 2011-10-28T13:17:28 *** mviel has quit IRC (Quit: Leaving) 2011-10-28T13:17:31 restarted it, sorry 2011-10-28T13:17:52 pretty sure he said he has paypal as well and he may want to start a separate contest account 2011-10-28T13:17:55 it didn't work for two hours :| 2011-10-28T13:18:13 I don't know how far along he is on getting the non-profit formed as well 2011-10-28T13:18:39 *** qntar has joined #aichallenge 2011-10-28T13:18:52 okay, text sent, hopefully soon :) 2011-10-28T13:22:55 McLeopold: has a non-profit been set up yet? 2011-10-28T13:23:04 oh janzert already said 2011-10-28T13:23:05 ignore me 2011-10-28T13:23:15 i think we need the non-profit to accept donations 2011-10-28T13:24:16 *** paulwal has joined #aichallenge 2011-10-28T13:25:05 if the non-profit isn't up yet it just means Jeff has to worry about the tax issues for him personally 2011-10-28T13:25:26 it's the reason I don't want to accept them directly though 2011-10-28T13:25:53 janzert, are you talking about donations to get more servers up? 2011-10-28T13:26:00 paulwal: yep 2011-10-28T13:26:10 * janzert nods 2011-10-28T13:26:13 how much money is needed? 2011-10-28T13:26:22 or desirable... 2011-10-28T13:26:30 $120 per worker per month 2011-10-28T13:26:38 i think it's more people have suggested many times in the past that they're willing to contribute money for servers 2011-10-28T13:26:45 enough money until people stop complaining :) 2011-10-28T13:26:49 we just haven't had any way set up for people to donate 2011-10-28T13:27:03 how many workers are there currently, and how many would make all problems go away? 2011-10-28T13:27:07 McLeopold: you'll never make it :P 2011-10-28T13:27:13 :D 2011-10-28T13:27:13 define problem :P 2011-10-28T13:27:50 paulwal: there are no technical problems, just lots of users that want more games 2011-10-28T13:28:17 McLeopold: well, the current game rate could be a real issue come finals time 2011-10-28T13:28:21 *** argiopeweb has joined #aichallenge 2011-10-28T13:28:22 and right now there are 2 workers running continuously? 2011-10-28T13:28:37 http://aichallenge.org/server_stats.php 5 2011-10-28T13:28:47 k 2011-10-28T13:28:59 _flag: could you connect your bot please? :) 2011-10-28T13:29:07 xathis: and your :) 2011-10-28T13:29:10 and we've no idea how many contestants to expect yet, although I think jeff was a little over optimistic estimating a similar growth to what we had from tron to planet wars 2011-10-28T13:29:44 If a large donation were to be made by X, would you be willing to add "and X" next to "Sponsored by Google"? 2011-10-28T13:29:58 Fluxid: done 2011-10-28T13:30:06 xathis: thanks 2011-10-28T13:30:56 The regulations state that multiple processes or OS threads are forbidden. Does this imply that green threads are not forbidden? 2011-10-28T13:31:19 McLeopold ^ 2011-10-28T13:31:35 i can't speak officially, but i imagine we'd be open to the idea of putting other sponsors names on the website, it would have to be discussed with everyone though, and probably even run past google at this point 2011-10-28T13:31:39 argiopeweb: nope, green threads are good 2011-10-28T13:31:57 perhaps not right next to googles though 2011-10-28T13:31:58 amstan: Thanks. :) 2011-10-28T13:32:30 ok antimatroid1. do you know, or are you at liberty to say, how much google's donation was? 2011-10-28T13:34:03 paulwal: 2000 2011-10-28T13:34:04 i'm not sure if I should state that sorry 2011-10-28T13:34:11 ah, there we go 2011-10-28T13:34:12 heh, ok 2011-10-28T13:34:20 k 2011-10-28T13:34:21 antimatroid1: was in the mailing list, there's like 200 people there, so might as well 2011-10-28T13:35:22 Jeff has also kicked in a considerable chunk of his personal funds 2011-10-28T13:35:48 janzert: he did? i always assumed it was temporary 2011-10-28T13:36:01 *** liberforce has left #aichallenge 2011-10-28T13:36:20 yes he did, when I was working out what sort of budget I could use 2011-10-28T13:38:38 hehe, "ai challenge, sponsored by jeff" 2011-10-28T13:38:58 :) 2011-10-28T13:39:14 jeff (and google) 2011-10-28T13:39:33 who's google? 2011-10-28T13:39:46 who isn't google? 2011-10-28T13:41:31 argiopeweb: I heared earlier that green threads are ok, though I like to hear if thats still the case 2011-10-28T13:41:44 avdg: that's fine 2011-10-28T13:41:45 (hm, I didn't scroll down) 2011-10-28T13:43:34 *** acacacafsf123 has quit IRC (Ping timeout: 265 seconds) 2011-10-28T13:44:17 *** xunie-laptop has joined #aichallenge 2011-10-28T13:46:41 *** xunie-laptop is now known as toadie 2011-10-28T13:47:20 *** toadie is now known as Xunie` 2011-10-28T13:47:56 *** Xunie` has quit IRC (Changing host) 2011-10-28T13:47:56 *** Xunie` has joined #aichallenge 2011-10-28T13:53:15 *** JamesMG has joined #aichallenge 2011-10-28T13:53:17 *** otbzi has quit IRC (Quit: Page closed) 2011-10-28T13:55:29 *** JamesMG_ has quit IRC (Read error: Connection reset by peer) 2011-10-28T13:57:57 *** Knekkebjoern1 has joined #aichallenge 2011-10-28T13:58:30 *** smiley1983 has quit IRC (Quit: leaving) 2011-10-28T13:59:48 *** Knekkebjoern has quit IRC (Ping timeout: 258 seconds) 2011-10-28T13:59:55 *** rabuf` has quit IRC (Read error: Connection reset by peer) 2011-10-28T14:00:09 *** rabuf` has joined #aichallenge 2011-10-28T14:02:00 *** choas has joined #aichallenge 2011-10-28T14:02:23 *** jcdny has quit IRC (Ping timeout: 252 seconds) 2011-10-28T14:05:11 janzert: I am correct to make the remember me cookie no transfer between computers? 2011-10-28T14:06:31 what's the argument for that? I'm rather undecided 2011-10-28T14:07:05 well, that's how the pull request was coded, pull the cookie from the database and set it if it doesn't exists 2011-10-28T14:07:09 I'd rather not do that 2011-10-28T14:07:32 If you sign in on a different machine and select remember me, it should invalidate all other browser cookies everywhere else 2011-10-28T14:07:39 no, it should be an opt-in thing when you sign in 2011-10-28T14:07:49 It was opt in 2011-10-28T14:07:52 I don't think it should invalidate other ones though 2011-10-28T14:08:10 then, the cookies would need to be synced 2011-10-28T14:08:27 or we store a list of valid cookies for every machine/browser combo 2011-10-28T14:08:32 they just should have the same info 2011-10-28T14:08:45 that feels like a security hole 2011-10-28T14:08:57 how? 2011-10-28T14:09:09 the user has to trust each machine they're putting it on anyway 2011-10-28T14:09:12 I said "feel", I don't have a technical answer :) 2011-10-28T14:09:38 Because if the database was compromised, an attacker has a plain text password 2011-10-28T14:10:06 yes, that's true in any case though 2011-10-28T14:10:22 not if I encrypt the cookie like I do the password 2011-10-28T14:10:29 that's why the user has to trust the computer it's on 2011-10-28T14:10:54 a database compromise it outside the users control 2011-10-28T14:11:06 oh you mean our database 2011-10-28T14:11:11 yes :) 2011-10-28T14:11:14 I thought you meant the users cookie database 2011-10-28T14:11:26 I just assume that is compromised anyway :) 2011-10-28T14:11:50 so store it bcrypted on our side the same as the regular password 2011-10-28T14:12:04 ahh, ok it finally clicked :) 2011-10-28T14:12:08 ok, but then I can't sync cookies across machines, which I'm okay with 2011-10-28T14:12:10 *** DummySphere has joined #aichallenge 2011-10-28T14:12:11 hmm 2011-10-28T14:12:57 unless I store mutiple cookies per user 2011-10-28T14:13:34 of course compromising the cookie value is much less of a problem than compromising a users password 2011-10-28T14:13:55 I think it's the same 2011-10-28T14:14:11 if a compromise was discovered resetting it isn't a problem in anyway and there is no chance it's reused on another site 2011-10-28T14:14:16 once your in, you could change the password (when we code it and a forgot password) 2011-10-28T14:14:38 yeah, that's true 2011-10-28T14:14:57 *** jukkerknott has joined #aichallenge 2011-10-28T14:15:12 hi there 2011-10-28T14:15:54 I'll go multiple cookies per user, for maximum utility :) 2011-10-28T14:16:01 *** ccc has joined #aichallenge 2011-10-28T14:16:12 I personally jump between browsers and devices so like being able to stay logged into more than one 2011-10-28T14:16:24 yeah, sounds good 2011-10-28T14:16:40 one other thing 2011-10-28T14:16:54 *** amstan_ has joined #aichallenge 2011-10-28T14:16:54 *** ChanServ sets mode: +o amstan_ 2011-10-28T14:17:26 the server should store when a cookie was created and invalidate them after n days so that old cookies can't be found and used 2011-10-28T14:19:18 I have too much crashes with my bot on the server, and after some tests, it seems it's due to luajit 2.0.0 beta 5; is it possible to update to luajit 2.0.0 beta 8 ? 2011-10-28T14:20:23 *** Areks has joined #aichallenge 2011-10-28T14:20:48 DummySphere: the problem is we don't know if the upgrade will end up breaking other user's submissions 2011-10-28T14:21:37 how is this map symmetric? http://aichallenge.org/map.php?map=maze/maze_02p_02.map 2011-10-28T14:21:46 janzert: got it, cookies expire on server and browsers 2011-10-28T14:22:27 amstan: move the map so row 27 col 64 is near the center and you should see it 2011-10-28T14:22:32 amstan_: look at any games starting food for an idea 2011-10-28T14:23:11 *** Areks|2 has quit IRC (Ping timeout: 258 seconds) 2011-10-28T14:23:20 mirror symmetry across a line of slope 1 2011-10-28T14:23:37 janzert: oh, there we go 2011-10-28T14:23:58 *** jukkerknott has quit IRC (Quit: Page closed) 2011-10-28T14:24:52 janzert: there is 13 bots done in Lua, is it possible to update to luajit 2.0.0 beta 8, to wait 1 day and to check if there is no crashes in those 13 bots? 2011-10-28T14:25:31 janzert: it would be nice if the 13 submissions could all vote on it 2011-10-28T14:25:49 McLeopold: yes 2011-10-28T14:27:37 http://ideone.com/UZ5E7 2011-10-28T14:27:44 any ides of how to debug that? 2011-10-28T14:28:49 isbric: if you logged the bot input files, then you can pipe it back into your bot without the playgame or sandbox framework 2011-10-28T14:28:51 McLeopold: what do you think about, if more than half the number of people that have more than 1 submission in that language request the upgrade on the forum and less than 25% disagree then we'll do an upgrade (if and when we can) 2011-10-28T14:29:55 maybe make a special board for language upgrade requests 2011-10-28T14:30:32 amstan_: the above sound good to you? 2011-10-28T14:31:18 janzert: problem is that it's mostly us disagreeing with the upgrades 2011-10-28T14:31:22 I would say a serious competitor would have to have non-upgradable code, or a beta would have to be proven unstable to prevent upgrading 2011-10-28T14:31:45 amstan_: that's okay, but at least people have a place to go look at the status 2011-10-28T14:31:59 we just tag each request with accepted or denied in the title 2011-10-28T14:32:10 but mostly I'm disagreeing because of the fear of breaking current submissions 2011-10-28T14:32:38 janzert: the probem i see the most is that they demand an upgrade without any regard on how hard it is to get on ubuntu or stuff like that 2011-10-28T14:32:39 the worker needs a language check mode 2011-10-28T14:32:58 well, then a request needs to have that info to be valid 2011-10-28T14:33:20 I just mean that if these conditions are met we'll look into doing the upgrade 2011-10-28T14:33:48 no guarantee it will be done, just a guarantee it won't be done if the votes aren't met 2011-10-28T14:33:59 janzert: luajit 2.0.0 beta 5 and beta 8 uses the same language specification Lua 5.1 2011-10-28T14:34:18 janzert: do we have to do this on the forums? what about github issues with the language support tag? 2011-10-28T14:34:21 yeah, so do the recent D compilers theoretically ;) 2011-10-28T14:34:48 amstan_: I think the forums are more likely to be seen and just seemed easier 2011-10-28T14:34:52 McLeopold: would i have to log that myself or is there a lazy flag for that? 2011-10-28T14:35:25 don't have anything specific against github issues though, just that it will come up on the forums anyway 2011-10-28T14:37:02 janzert: yeah, but it pretty much means that we'll have to do double the issue reporting work, one in github issues/comments the other as forum replies 2011-10-28T14:37:19 i was just thinking to post a link to the issues on the forums, maybe give some instructions on the procedures 2011-10-28T14:37:35 well we can skip the github issues for the most part if we want, forums posts will come regardless 2011-10-28T14:37:37 isbric: -I is the lazy flag 2011-10-28T14:37:48 isbric: --log_input is the less lazy flag 2011-10-28T14:38:29 *** kaemo has joined #aichallenge 2011-10-28T14:38:47 but the specifics of how it is done don't really matter much to me, it just might be nice if we can come up with a way for users of a language to agree or disagree on an upgrade being done 2011-10-28T14:39:06 xathis: i didn't have many games with you but still, thanks. Now i know my bot is better than ever :) 2011-10-28T14:41:03 *** rogual has joined #aichallenge 2011-10-28T14:41:37 Fluxid: glad i could help you, thanks for hosting the tcp server btw 2011-10-28T14:41:57 np 2011-10-28T14:42:28 I have to go, so thank you by advance to take a look at it, I will check the website and the forum soon :) 2011-10-28T14:42:59 i think i'm not able to do more in my bot. i'll upload it and just wait for finals. and enjoy rest of my holiday in other way :) 2011-10-28T14:43:16 *** olexs has joined #aichallenge 2011-10-28T14:45:44 *** savaron has joined #aichallenge 2011-10-28T14:45:52 *** DummySphere has quit IRC (Quit: Page closed) 2011-10-28T14:46:53 *** argiopeweb has quit IRC (Ping timeout: 265 seconds) 2011-10-28T14:46:53 *** wilsone has quit IRC (Ping timeout: 265 seconds) 2011-10-28T14:46:53 *** joakimar has quit IRC (Ping timeout: 265 seconds) 2011-10-28T14:46:53 *** muha has quit IRC (Ping timeout: 265 seconds) 2011-10-28T14:47:22 *** ccc has quit IRC (Ping timeout: 265 seconds) 2011-10-28T14:47:22 *** xar0l has quit IRC (Ping timeout: 265 seconds) 2011-10-28T14:47:51 *** lavalamp has quit IRC (Ping timeout: 265 seconds) 2011-10-28T14:51:09 *** foob has joined #aichallenge 2011-10-28T14:51:31 *** amstan_ has quit IRC (Ping timeout: 252 seconds) 2011-10-28T14:51:31 hello.. is there any way to preserve learning state between matches? i'd like to apply a reinforcement learner.. 2011-10-28T14:51:47 no 2011-10-28T14:51:50 not online 2011-10-28T14:51:54 play matches on tcp servers 2011-10-28T14:52:01 i heard that we cannot write to files-- are we also prevented from making network connections? 2011-10-28T14:52:06 you cannot write to disk, you cannot connect to servers 2011-10-28T14:52:14 foob: yup 2011-10-28T14:52:21 *** optimus has joined #aichallenge 2011-10-28T14:52:31 hello 2011-10-28T14:52:43 So any ai learning we undertake must complete in its entirety over the course of a < 1000 turn game? 2011-10-28T14:52:56 foob: we cannot allow that due to technical limitations, what you can do is disable your learning, just use what you learned so far 2011-10-28T14:53:01 you can supply data files 2011-10-28T14:53:06 foob: you can train it locally using the replays from the main site 2011-10-28T14:53:10 but to learn them you want to learn outside of the site 2011-10-28T14:53:16 either on your own machines 2011-10-28T14:53:19 or use the tcp servers 2011-10-28T14:53:21 @tcp 2011-10-28T14:53:21 Zannick: tcp could be http://ants.fluxid.pl/howto. 2011-10-28T14:53:36 look in the forums, too, under 'Tools' 2011-10-28T14:53:51 Development & Tools 2011-10-28T14:54:26 thanks Zannick.. I'll check out those resources... 2011-10-28T15:02:12 *** onensora has joined #aichallenge 2011-10-28T15:02:20 Hello, when i followed the steps in the tutorial page (http://aichallenge.org/ants_tutorial.php) and run play_one_game.cmd , i don't get what it says. instead i get some errors. Here is what i get. Hello, when i followed the steps in the tutorial page (http://aichallenge.org/ants_tutorial.php) and run play_one_game.cmd , i don't get what it says. instead i get some errors. .Can some one please explain this to me ?? 2011-10-28T15:02:35 anyone familiar with Ada here? in particular Ada on ubuntu natty :) 2011-10-28T15:02:52 Here is what i get 2011-10-28T15:02:52 Exception in thread Thread-1: Traceback (most recent call last): File "C:\Python32\lib\threading.py", line 736, in _bootstrap_inner self.run() File "C:\Python32\lib\threading.py", line 689, in run self._target(*self._args, **self._kwargs) File "C:\aichallenge\tools\sandbox.py", line 330, in _monitor_file line = fd.readline() AttributeError: '_io.FileIO' object has no attribute 'read1' Exception in thread Thre 2011-10-28T15:03:59 optimus: use nopaste 2011-10-28T15:04:05 for example. paste.pocoo.org 2011-10-28T15:04:13 * Fluxid has 3154th place 2011-10-28T15:04:14 Fluxid: it's one line, it's fine 2011-10-28T15:04:51 optimus: use python2.7 2011-10-28T15:05:01 not python 3.x 2011-10-28T15:05:47 my guess is Python32 means it is Python 3.2 2011-10-28T15:06:08 @Fluxid , ill check that 2011-10-28T15:06:09 optimus: You have no gotten any error messages recently, so here's a random one just to let you know that we care. 2011-10-28T15:06:34 @Fluxid, here is the error http://paste.pocoo.org/show/499702/ 2011-10-28T15:06:35 optimus: User error -- Replace user. 2011-10-28T15:06:35 optimus: python 3.x is not backward compatible with python 2.x 2011-10-28T15:07:53 yeah, these are errors running the tools with python3 instead of python3 2011-10-28T15:07:54 argh 2011-10-28T15:07:56 yeah, these are errors running the tools with python3 instead of python2 2011-10-28T15:08:12 kk 2011-10-28T15:08:15 i tought the tools were updated to work with python3 as well 2011-10-28T15:08:19 then ill intsall python2 2011-10-28T15:09:10 *** oh_hi has joined #aichallenge 2011-10-28T15:09:12 i wonder why it fails inside _io module 2011-10-28T15:09:21 monkeypatching or something? 2011-10-28T15:09:29 should winning bots get more playtime? 2011-10-28T15:09:36 there are so many simple submits 2011-10-28T15:09:50 and it seems my bots never gets to play a second match 2011-10-28T15:09:54 there was a python3 bug fixed in ~2009 2011-10-28T15:09:55 -s 2011-10-28T15:09:56 Fluxid: the contest code isn't touching that 2011-10-28T15:10:06 i looked it up when someone reported it earlier 2011-10-28T15:10:12 well, think about it. 2011-10-28T15:10:13 i think more gametime get player with higher sigma? 2011-10-28T15:10:15 ah 2011-10-28T15:10:21 *** oh_hi has left #aichallenge 2011-10-28T15:13:29 *** neurowasho has joined #aichallenge 2011-10-28T15:13:34 aichallenge: janzert epsilon * r9a5f4e6 / (setup/worker_setup.py worker/compiler.py): Some work on getting Ada compiliation working - http://git.io/N_VXbA 2011-10-28T15:13:35 aichallenge: janzert epsilon * rf8454f5 / ants/playgame.py : Merge branch 'epsilon' of github.com:aichallenge/aichallenge into epsilon - http://git.io/cpphjg 2011-10-28T15:15:49 *** Accoun has quit IRC () 2011-10-28T15:16:46 McLeopold: I think a food count indicator would be too much in the visualizer. I want it to look light and inviting. 2011-10-28T15:17:13 true: http://xkcd.com/970/ 2011-10-28T15:17:16 whoever did this, colors in visualizer now look much better 2011-10-28T15:18:23 Fluxid: that would be McLeopold :) 2011-10-28T15:18:29 mleise, McLeopold: speaking of the visualizer something I was thinking would be handy is if clicking an "# of ants" could toggle it to show percentage of ants 2011-10-28T15:19:01 i was thinking of that too, about 4 weeks ago or so :D 2011-10-28T15:19:08 yay :) 2011-10-28T15:19:46 could someone tell from where the packages are downloaded? (aka where I can get var download_base) 2011-10-28T15:20:21 janzert: there is even a button icon prepared for that case: http://aichallenge.org/visualizer/img/graph_options.png 2011-10-28T15:20:29 avdg: hmm, in setup_worker.py? 2011-10-28T15:20:40 yeah 2011-10-28T15:20:57 (I would like to know how these packages are build) 2011-10-28T15:21:00 it's basically the server url /langs 2011-10-28T15:21:22 they are prepared by the setup/retrieve_languages.py script 2011-10-28T15:21:38 janzert: just confirming, but signing out should invalidate a cookie, right 2011-10-28T15:21:59 avdg: they're just straight downloads of the various languages distributions 2011-10-28T15:22:08 yes 2011-10-28T15:22:13 janzert: ty 2011-10-28T15:22:24 mleise: I was trying to debug when the cutoff counter started, which is why I wanted it 2011-10-28T15:23:00 It would make the bars when starting a game less jumpy 2011-10-28T15:23:10 McLeopold: a debug mode adding food to the ant count displays would probably be best then? 2011-10-28T15:23:34 I think it is enough of the game that it should be there always 2011-10-28T15:23:45 I agree with mleise that we are close to too much clutter 2011-10-28T15:24:15 that's why having it a debug mode thing only 2011-10-28T15:24:23 Is 0,0 the first square in the left top corner or is 1,1? 2011-10-28T15:24:33 (0,0) 2011-10-28T15:24:36 by debug mode I mostly mean triggering it with a special url parameter 2011-10-28T15:24:57 Well I am busy inventing a new algorithm, so I wont have time for the visualizer :D 2011-10-28T15:25:19 cyphase, awesome, you're from Vilnius. Just like Ramius from the Hunt for Red October. >_> 2011-10-28T15:25:28 No I take that back. 2011-10-28T15:25:38 Your server is located in Vilnius, according to this whois. 2011-10-28T15:26:49 Still awesome though. 2011-10-28T15:26:53 *** keoma has joined #aichallenge 2011-10-28T15:27:17 Xunie`, that's just the freenode server i'm connected to 2011-10-28T15:27:34 Xunie`: since the "world" wraps around at the edges there really isn't a top left corner :) 2011-10-28T15:28:14 So, the 'right bottom' corner (heh) is rows-1,cols-1... amirite? 2011-10-28T15:28:26 Xunie`, yes 2011-10-28T15:28:35 you're on fire man 2011-10-28T15:28:46 *** neurowasho has quit IRC (Quit: Page closed) 2011-10-28T15:29:51 *** Racko has joined #aichallenge 2011-10-28T15:29:53 http://aichallenge.org/forums/viewtopic.php?f=21&t=1671 :D 2011-10-28T15:31:19 dwins: How can it wrap around the edges if it doesn't have edges? 2011-10-28T15:31:37 Or, how can it have edges to wrap around if it wraps around the edges? 2011-10-28T15:31:41 McLeopold: that's a really horrible way to do it of course 2011-10-28T15:32:17 * dwins is hoist on his own petard 2011-10-28T15:32:34 dwins, even if I wasn't on fire, I just read this offensive comment I left in my sourcecode for no apparent reason. >_> 2011-10-28T15:36:28 *** Chirmaya has joined #aichallenge 2011-10-28T15:36:51 *** sig- has joined #aichallenge 2011-10-28T15:36:58 Hey, is there by chance another server/site where I can get my ai to play games more often (even if it is unranked) 2011-10-28T15:37:18 hi, could you please implement a filter/sort to your "All games by time played" list? 2011-10-28T15:37:38 like, only show games that ended with "lone survivor" or "rank stabilized" 2011-10-28T15:37:43 or sort by ending 2011-10-28T15:37:44 *** barbaludi has joined #aichallenge 2011-10-28T15:37:48 Chirmaya: 2011-10-28T15:37:49 *** foob has quit IRC (Read error: Operation timed out) 2011-10-28T15:37:49 @tcp 2011-10-28T15:37:50 amstan: tcp could be http://ants.fluxid.pl/howto. 2011-10-28T15:38:38 Can somebody give me estimates on when the challenge will be concluded and the winner annouced? 2011-10-28T15:38:47 Awesome; thanks! 2011-10-28T15:38:51 barbaludi: see frontpage 2011-10-28T15:39:01 janzert: yes, it is 2011-10-28T15:39:07 *** foob has joined #aichallenge 2011-10-28T15:39:49 Awesome thanks! 2011-10-28T15:39:52 *** barbaludi has left #aichallenge 2011-10-28T15:41:07 amstan: another idea to webpage: list of entrants and a "like"-button (or "hate"?) that shows the server that you would like your bot to battle that one 2011-10-28T15:41:16 another way to lift up the good ones 2011-10-28T15:41:37 because of course people are interested how their own bots fare against something strong 2011-10-28T15:41:57 sig-: it's rather hard to do that, since creating matchups is complicated: http://aichallenge.org/forums/viewtopic.php?f=25&t=1654 2011-10-28T15:43:16 *** optimus has quit IRC (Quit: Page closed) 2011-10-28T15:43:28 amstan: point 2, add 2b: check if that bot's owner has requested another bot to be included in its matches 2011-10-28T15:43:59 alternatively do it before 5. 2011-10-28T15:44:00 allowing opponents to be selected allows ranking manipulation 2011-10-28T15:44:21 janzert: well, maybe people at this point care more about getting strong opponents 2011-10-28T15:44:31 since the randombots that ship with tools aren't really that 2011-10-28T15:44:57 screw rankings, there's probably going to be some kind of championship in the end, right? 2011-10-28T15:44:59 sig-: you get played with bots similar to your rank, it's not nearly as interesting to see a game where one bot just owns the other 2011-10-28T15:45:15 sig-: no, the finals are going to be similar to the rest of the contest 2011-10-28T15:45:23 just disabling submissions for a few days 2011-10-28T15:45:28 amstan: similar to your rank? How can you tell when 70% of them are straight out sample zip files 2011-10-28T15:45:48 sig-: see the rest of that matchmaking description 2011-10-28T15:46:15 it takes about half a dozen game to make it all the way to the top of the rankings, so just give it a day and you'll be in similiar ranked bots 2011-10-28T15:46:37 sig-: similar in skill, perhaps I should update that 2011-10-28T15:47:49 well, maybe some kind of obfuscated distribution form or whatever would be cool then, or more servers so that match requests could be granted (maybe so that they aren't used for determining rankings?) 2011-10-28T15:47:55 *** knyppeldynan has quit IRC (Ping timeout: 260 seconds) 2011-10-28T15:47:57 wasn't google sponsoring this thing or what? (: 2011-10-28T15:48:26 sig-: obfuscation!=security 2011-10-28T15:48:40 derp, this isn't CIA breaking into bank accounts 2011-10-28T15:48:53 but in that case the latter option? 2011-10-28T15:49:05 I mean, neutral server that won't reveal the bots, just play out a game? 2011-10-28T15:49:16 more servers means more money 2011-10-28T15:49:33 What's the "sponsored by Google" on the page? 2011-10-28T15:49:38 *** knyppeldynan has joined #aichallenge 2011-10-28T15:50:17 sig-: it's not infinite money, we're running it as good as we can so the money lasts till the end 2011-10-28T15:51:15 awwww... Google hasn't invented infinite monies yet ): well, thanks for answers. 2011-10-28T15:51:23 but the first suggestion is still valid! 2011-10-28T15:51:38 sig-: do you know php? 2011-10-28T15:51:58 *** danielharan has joined #aichallenge 2011-10-28T15:51:58 filter/sort to "All games by time played" list, e.g. only show games that ended with "lone survivor" or "rank stabilized" 2011-10-28T15:52:12 amstan: a little -___- 2011-10-28T15:52:46 create me a user to your www server? Sounds like a good idea ^__^ 2011-10-28T15:53:10 sig-: you test stuff like that locally 2011-10-28T15:53:44 so you have some git or svn? 2011-10-28T15:53:50 @repo 2011-10-28T15:53:51 amstan: repo could be https://github.com/aichallenge/aichallenge. 2011-10-28T15:54:11 <_flag> McLeopold: question about scoring 2011-10-28T15:54:17 shoot 2011-10-28T15:55:09 <_flag> When I timeout or am eliminated, my opponent gets credit for killing all my hills but I don't lose any points, so assuming it's a game with several players, what's stopping me from timing out on purpose when I know I'm about to die for a higher score? 2011-10-28T15:55:27 <_flag> eg. http://ants.fluxid.pl/replay.10622 2011-10-28T15:55:31 *** Chirmaya has quit IRC (Ping timeout: 265 seconds) 2011-10-28T15:55:39 <_flag> A would've won, but cants timedout so it was a draw 2011-10-28T15:55:45 *** foob has quit IRC (Quit: leaving) 2011-10-28T15:59:32 slin is about 2011-10-28T16:02:58 *** xar0l has joined #aichallenge 2011-10-28T16:05:22 *** Accoun has joined #aichallenge 2011-10-28T16:06:34 *** asd has joined #aichallenge 2011-10-28T16:06:38 *** paulwal has quit IRC (Ping timeout: 265 seconds) 2011-10-28T16:06:50 *** BPm1 has joined #aichallenge 2011-10-28T16:07:00 *** asd is now known as Guest76841 2011-10-28T16:07:10 _flag: yes, that is an issue 2011-10-28T16:08:15 *** danielharan has quit IRC (Remote host closed the connection) 2011-10-28T16:08:54 hi, could someone give me a hint on how to check for corners? the ants python class has the passable function that returns true if it's not water only. but wat about other obstacles like walls? 2011-10-28T16:09:26 water and walls are the same thing 2011-10-28T16:09:33 oohhh 2011-10-28T16:11:06 the walls are made of water 2011-10-28T16:11:15 *** JRB_ has joined #aichallenge 2011-10-28T16:11:15 alternately, there are no walls 2011-10-28T16:11:41 yeah, but some of the older code used wall or water or barrier 2011-10-28T16:11:48 *** synace has joined #aichallenge 2011-10-28T16:13:15 *** dvladim has joined #aichallenge 2011-10-28T16:15:34 *** g0llum has quit IRC (Read error: Connection reset by peer) 2011-10-28T16:16:47 *** k333es has quit IRC (Ping timeout: 265 seconds) 2011-10-28T16:17:25 *** JRB_ has quit IRC (Quit: Page closed) 2011-10-28T16:22:19 *** Guest76841 has quit IRC (Quit: Page closed) 2011-10-28T16:24:17 *** valtrof has joined #aichallenge 2011-10-28T16:24:19 Hi yall 2011-10-28T16:24:38 whats good here? 2011-10-28T16:24:44 ants 2011-10-28T16:25:12 money 2011-10-28T16:25:17 money's pretty good 2011-10-28T16:25:36 thank God its no the bees. No-o-o-o-o-o-o! No the be-e-e-e-e-e-es! 2011-10-28T16:25:55 everyone gets bees! 2011-10-28T16:26:03 so my ants keep getting stuck in one corner. 2011-10-28T16:26:19 how do i check if an ant is stuck and tell it to go to another direction? 2011-10-28T16:26:55 give each of them memory 2011-10-28T16:27:26 memory of all the paths it's gone through?? 2011-10-28T16:27:33 sorry , one ?* 2011-10-28T16:27:46 up2u TIMTOW2DI 2011-10-28T16:28:24 i'm currently coding up a target/destination selection & shortest path algo based movement scheme 2011-10-28T16:28:48 *** xathis has quit IRC (Ping timeout: 240 seconds) 2011-10-28T16:28:52 in python? 2011-10-28T16:29:04 heh, i'm a php fan 2011-10-28T16:29:12 oh 2011-10-28T16:29:12 so, doing it for the fun of it in php 2011-10-28T16:29:46 do you have the same functions in the startup kit as python's? 2011-10-28T16:30:09 i actually still don't get how the function do_tun in MyBot.py can tell the ants to move 2011-10-28T16:30:27 it reads data from the STDIN 2011-10-28T16:30:31 do_turn issues orders in the form of output to stdout 2011-10-28T16:30:35 lines of the map status 2011-10-28T16:30:38 the engine parses that 2011-10-28T16:31:08 e.g.: read, turn 0, loadtime 3000, etc..., go, turn 1, w 27 0, w 27 1, etc 2011-10-28T16:31:55 so the engine reads the orders dict ? 2011-10-28T16:32:31 where is the func do_turn() called o.o 2011-10-28T16:32:40 n 2011-10-28T16:32:56 ... 2011-10-28T16:33:53 yea stupid question, but you gotta help me :( 2011-10-28T16:33:55 BPm1: the STDIN sends a line with 'go' as the content, the script (downloaded sample) then runs do_turn 2011-10-28T16:34:06 *** Khipu has joined #aichallenge 2011-10-28T16:34:10 in run() 2011-10-28T16:34:44 BPm1: the orders are printed out like they would be to the console if the bot was run directly, the engine reads those printed lines 2011-10-28T16:34:52 OOHH 2011-10-28T16:35:02 *** jcdny has joined #aichallenge 2011-10-28T16:35:45 who is able to give me a short description to execute the playgame.py with an attached debugger using PyDev 2011-10-28T16:36:15 *** danielharan has joined #aichallenge 2011-10-28T16:36:23 I am getting this weird error: print("Running profile and outputting to {0}".format(prof_file,), file=stderr) 2011-10-28T16:37:35 *** dvladim has quit IRC (Ping timeout: 248 seconds) 2011-10-28T16:38:26 also, one question, how do you actually attack an enemy? From the tutorial, i dont see any specific line that tells the ant to kill the other ant 2011-10-28T16:38:28 # attack hills 2011-10-28T16:38:28 for hill_loc, hill_owner in ants.enemy_hills(): 2011-10-28T16:38:29 if hill_loc not in self.hills: 2011-10-28T16:38:29 self.hills.append(hill_loc) 2011-10-28T16:38:29 ant_dist = [] 2011-10-28T16:38:29 for hill_loc in self.hills: 2011-10-28T16:38:29 for ant_loc in ants.my_ants(): 2011-10-28T16:38:30 if ant_loc not in orders.values(): 2011-10-28T16:38:30 dist = ants.distance(ant_loc, hill_loc) 2011-10-28T16:38:31 ant_dist.append((dist, ant_loc)) 2011-10-28T16:38:31 ant_dist.sort() 2011-10-28T16:38:32 for dist, ant_loc in ant_dist: 2011-10-28T16:38:32 do_move_location(ant_loc, hill_loc) 2011-10-28T16:39:02 *** thestinger has joined #aichallenge 2011-10-28T16:39:03 please use pastebin for large pastes 2011-10-28T16:39:08 isn't it automatic based on proximity? 2011-10-28T16:39:12 and ants automatically attack nearby enemies 2011-10-28T16:39:44 Q: is fog of war automatically applied to the passed map data? 2011-10-28T16:40:07 *** SharkMonkey has joined #aichallenge 2011-10-28T16:40:13 you only get told about squares you can see 2011-10-28T16:40:32 if' it's automatic, you and the other ant get killed at the same time then? 2011-10-28T16:40:33 thestinger: thanks, i didn't see any -5 tiles 2011-10-28T16:41:00 BPm1: yes 2011-10-28T16:41:11 @ Zannick: thank you 2011-10-28T16:41:12 BPm1: Run as fast as you can and don't look back. 2011-10-28T16:41:17 LOL 2011-10-28T16:41:47 @ 2011-10-28T16:41:53 meh :p 2011-10-28T16:42:04 @ 2011-10-28T16:42:37 it doesn't do any useful 2011-10-28T16:42:52 yeah, i was just trying it with a space 2011-10-28T16:43:38 *** valtrof has quit IRC (Quit: Page closed) 2011-10-28T16:47:59 @Zannick, you were saying that people could talk like this? 2011-10-28T16:48:16 was i? 2011-10-28T16:48:25 *** xathis has joined #aichallenge 2011-10-28T16:48:39 no, i tried "@ " to see if contestbot would respond 2011-10-28T16:48:42 @rot13 or like this? 2011-10-28T16:48:42 thestinger: be yvxr guvf? 2011-10-28T16:49:08 @janzert: you said "the orders are printed out like they would be to the console if the bot was run directly, the engine reads those printed lines". it makes sense, but how can the engine get the orders{} when do_turns() doesn't return or prints out anything 2011-10-28T16:49:09 BPm1: You have no gotten any error messages recently, so here's a random one just to let you know that we care. 2011-10-28T16:49:31 thank you contestbot 2011-10-28T16:53:21 *** contestbot_ has joined #aichallenge 2011-10-28T16:53:23 bot.do_turn(ants) 2011-10-28T16:53:23 ants.finish_turn() 2011-10-28T16:53:28 that's what in the run() 2011-10-28T16:53:37 *** amstan_ has joined #aichallenge 2011-10-28T16:53:37 *** ChanServ sets mode: +o amstan_ 2011-10-28T16:54:00 *** amstan has quit IRC (Ping timeout: 240 seconds) 2011-10-28T16:54:06 BPm1: k, stop having @ as the first character in your messages 2011-10-28T16:54:24 the do_turn method is where the bot logic goes 2011-10-28T16:54:30 i dont know how to mention someone's name amstan 2011-10-28T16:54:49 BPm1: like this, your irc client will probably even autocomplete names if you hit tab 2011-10-28T16:54:53 BPm1: is the normal irc form 2011-10-28T16:54:54 BPm1: "name: message" 2011-10-28T16:55:05 *** contestbot has quit IRC (Ping timeout: 252 seconds) 2011-10-28T16:55:13 amstan_: like this.. 2011-10-28T16:55:16 ? 2011-10-28T16:55:19 yes 2011-10-28T16:55:28 oh never used irc before 2011-10-28T16:55:48 *** contestbot has joined #aichallenge 2011-10-28T16:55:57 janzert: thank you for being so patient with me! i'll come back later for more questions :D 2011-10-28T16:56:13 peace 2011-10-28T16:56:17 *** BPm1 has quit IRC (Quit: Leaving.) 2011-10-28T16:58:48 C# question: Why do I get different results? http://pastebin.com/FfGH1Xnw 2011-10-28T16:59:04 result = true and sequenceEqual = false 2011-10-28T16:59:36 I overwrote both Equal() and GetHashCode() in the compared type 2011-10-28T17:00:17 *** Khipu has quit IRC (Ping timeout: 265 seconds) 2011-10-28T17:01:00 *** fasteddie_ has joined #aichallenge 2011-10-28T17:01:17 and both == and != operators, just in case sequenceEqual() is comparing with them 2011-10-28T17:02:25 *** choas has quit IRC (Ping timeout: 252 seconds) 2011-10-28T17:03:25 *** Fandekasp has quit IRC (Ping timeout: 240 seconds) 2011-10-28T17:06:30 *** Fandekasp has joined #aichallenge 2011-10-28T17:08:12 how many LOC does your bot have? 2011-10-28T17:08:32 savaron: you might have a better chance of an answer in #csharp 2011-10-28T17:09:53 not a csharp guy, but 2011-10-28T17:10:10 i'd guess that it's comparing map[row] (which is a pointer) to other.map[row] (which is a different pointer) 2011-10-28T17:10:26 *** qntar has quit IRC (Ping timeout: 265 seconds) 2011-10-28T17:10:29 so sequenceequal is returning false, while your loops examine the actual elements of the 2d array 2011-10-28T17:12:51 *** xar0l has quit IRC (Ping timeout: 265 seconds) 2011-10-28T17:12:51 *** bearoff has joined #aichallenge 2011-10-28T17:13:04 *** keoma has quit IRC (Quit: Page closed) 2011-10-28T17:14:21 what IDE do you Java guys use? i'm using notepad++ currently 2011-10-28T17:15:28 lol lol lol 2011-10-28T17:15:46 fasteddie_: Java guys use Eclipse or Netbeans :p 2011-10-28T17:16:25 Once you get used to it you'll love the refactorings and other goodies 2011-10-28T17:16:41 i'm used to c# but since the tutorial was in java or python i chose java instead 2011-10-28T17:17:02 ah ok, so you are not a 'native' 2011-10-28T17:17:08 lol 2011-10-28T17:17:28 IDEA is a nice java ide too 2011-10-28T17:17:29 Java is an island by the way :) 2011-10-28T17:17:56 *** swinejihad has joined #aichallenge 2011-10-28T17:18:17 so its your island against my musical note? 2011-10-28T17:18:38 Actually I'm also programming in a musical note 2011-10-28T17:18:38 i never heard of IDEA, let me check it out 2011-10-28T17:18:48 mine is just a tiny bit higher 2011-10-28T17:19:00 f#? 2011-10-28T17:19:08 lower 2011-10-28T17:19:15 d? 2011-10-28T17:19:18 bingo 2011-10-28T17:19:20 *** danielharan has quit IRC (Remote host closed the connection) 2011-10-28T17:19:33 that's funny i tried d a few years ago 2011-10-28T17:19:44 v1 or v2? 2011-10-28T17:19:59 *** danielharan has joined #aichallenge 2011-10-28T17:20:01 *** sigh has joined #aichallenge 2011-10-28T17:20:19 hmmm i guess 1 because there wasnt a v2 back then? 2011-10-28T17:20:51 yes, probably. D2 is at version 56 now though :) 2011-10-28T17:21:53 how far are you with your antbot? 2011-10-28T17:22:44 fasteddie_: I have no bot to talk of yet. In fact I'm working on a new algorithm for path finding. Everything else is secondary. 2011-10-28T17:23:06 i just got started.. so im working on path finding too 2011-10-28T17:23:14 Because if it works out it is kinda cool beyond this contest :D 2011-10-28T17:23:35 so you are not going to use something standard like A*? 2011-10-28T17:24:01 *** mceier has quit IRC (Quit: leaving) 2011-10-28T17:24:19 You have to realize that A* _is_ the optimal algorithm for finding the shortest path in a graph. 2011-10-28T17:24:36 But I wont use it directly on the map, no 2011-10-28T17:25:18 you are making me curious about your new algorithm ;) 2011-10-28T17:25:21 yeah, pixels are too expensive 2011-10-28T17:25:34 avdg: says who? =) 2011-10-28T17:25:46 well, it can be better ;-) 2011-10-28T17:26:01 and the more I am thinking about my map strategy, the less sure I am... 2011-10-28T17:26:13 I also read something about L1 and L2 caches and did my own tests. 2011-10-28T17:26:46 I have less control over the hardware and even the gc 2011-10-28T17:26:47 The very same code takes 80 times longer if the memory it operates on is randomly distributed. 2011-10-28T17:26:54 instead of consecutive 2011-10-28T17:27:17 i'm also running an.. optimization before using A* 2011-10-28T17:27:22 is anyone working on https://github.com/aichallenge/aichallenge/issues/336 ? 2011-10-28T17:28:07 caches are very important 2011-10-28T17:28:58 Yes, you don't want to recalculate the paths every turn. You could also distribute them over many turns like some people do. 2011-10-28T17:29:36 yeah, I'm trying to find a good way to do that at the moment 2011-10-28T17:30:00 Of course my new algorithm will be so cool and so fast that it can calculate thousands of paths in 500 ms. 2011-10-28T17:30:58 Today I had the break through I think. Didn't implement anything, but I have a good feeling. 2011-10-28T17:31:38 The experiment with the L1 cache made me start from scratch and that was good :) 2011-10-28T17:33:06 *** onensora has quit IRC (Ping timeout: 258 seconds) 2011-10-28T17:33:07 do you think performance will be very important? because i was not worrying about it until i came here 2011-10-28T17:33:32 I'm wondering the same thing here 2011-10-28T17:33:34 fasteddie_: there are lots of bots that time out. I wouldn't ignore performance 2011-10-28T17:33:46 But don't go about it like I do :p 2011-10-28T17:33:50 *** bearoff has quit IRC (Ping timeout: 260 seconds) 2011-10-28T17:33:53 I still have to learn how to implement a* 2011-10-28T17:34:02 I'm just fanatic about an idea. 2011-10-28T17:34:08 i'm doing a* at the moment, but my solver isn't solving :( 2011-10-28T17:34:10 *** onensora has joined #aichallenge 2011-10-28T17:34:17 I think I'll be fine if I keep it to things that are close to my ants though 2011-10-28T17:35:09 how do you measure distance though? something could be "close" but is really behind a river and you have to navigate a maze to get there :P 2011-10-28T17:35:17 not all the ants will need long target path finding all the time 2011-10-28T17:35:23 One note about A*: It works best when the costs are different for each graph edge. But in Ants they all cost 1, so there are dozens of equally valued paths that slow down the search. 2011-10-28T17:35:53 *** bearoff has joined #aichallenge 2011-10-28T17:35:57 Read about it here: http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html#breaking-ties 2011-10-28T17:36:40 lthanks for the link i hadn't thought about that yet 2011-10-28T17:37:21 Again I did some tests - hehe - and it had no benefit on the maze maps 2011-10-28T17:37:49 The calculation of the cross product - considering wrapped edges - was just too expensive 2011-10-28T17:38:48 *** lambdanaut has joined #aichallenge 2011-10-28T17:39:47 I made a path finding algorithm that ignores water, but it sometimes doesn't ignore water which I think is because my ants haven't explored those waters yet. Does that sound right? 2011-10-28T17:39:57 yes 2011-10-28T17:40:04 hehe 2011-10-28T17:40:15 d'oh! 2011-10-28T17:40:22 pathfinding algorithm that ignores water? 2011-10-28T17:40:31 lambdanaut: do you know what you are doing after all? 2011-10-28T17:40:46 yeah, just A* but it excludes water tiles from the open list 2011-10-28T17:40:55 aah 2011-10-28T17:40:57 It sounds like your algorithm is working on some data that you never looked at, lol 2011-10-28T17:41:03 yeah! 2011-10-28T17:41:50 lambdanaut: when you receive new water squares, check your paths again 2011-10-28T17:41:54 is there any good explanation somewhere on Ant's fog of war? 2011-10-28T17:42:02 if any path contains the water square, recalculate it 2011-10-28T17:42:40 oic! 2011-10-28T17:43:13 lambdanaut: fog is easy: you only get sent information on what is within (or on) the view radius. 2011-10-28T17:43:29 basically everything except water gets cleared after each turn 2011-10-28T17:43:35 (excluding water - that is only sent once because it never changes) 2011-10-28T17:43:57 *** Flort is now known as Sheeple 2011-10-28T17:43:59 then you have to read the input again to put it back 2011-10-28T17:44:06 *** Sheeple has left #aichallenge ("Leaving") 2011-10-28T17:44:14 are other player's bases cleared after each turn? 2011-10-28T17:44:28 you are only sent information about what you see 2011-10-28T17:44:45 it's as easy as that, really 2011-10-28T17:44:57 so if you see an enemy hill and die, you don't know if the hill still exists until you can see that square again 2011-10-28T17:45:03 *** janzert has quit IRC (Read error: Connection reset by peer) 2011-10-28T17:45:53 of course a hill is so important that you cache that information somewhere and use your A* to move your ants there :) 2011-10-28T17:46:30 for right now I just disabled clearing the hill information 2011-10-28T17:46:38 * Fluxid didn't use A* at all... 2011-10-28T17:46:48 Fluxid: omg, how does that work??? 2011-10-28T17:47:06 it's kinda dumb, but not as dumb as only sending one ant to to attack each hill ;) 2011-10-28T17:47:08 i think it has a name 2011-10-28T17:48:19 dunno, maybe it's BFS, but i simply flood-fill starting from destination 2011-10-28T17:48:22 *** Fleem has joined #aichallenge 2011-10-28T17:49:16 BFS is usually when you first search the closest squares 2011-10-28T17:49:24 http://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools 2011-10-28T17:49:42 cyphase: how is that Ants related? :) 2011-10-28T17:49:44 destination is 0, and then neighouring cells are 1, next are 2 etc 2011-10-28T17:49:47 i wonder if there's comparison of comparison of file comparison tools articles 2011-10-28T17:49:52 and ants goes to the lower numbers 2011-10-28T17:50:03 mleise, only that i came across it while doing something ants related :) 2011-10-28T17:50:23 oh right that article is sooo meta 2011-10-28T17:50:27 lol 2011-10-28T17:50:46 so i have a map of number which i can cache 2011-10-28T17:50:54 https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Comparison_of_file_comparison_tools&action=historysubmit&diff=457867254&oldid=456368766 2011-10-28T17:50:56 :p 2011-10-28T17:51:35 i can add few destinations, for example edges of visited cells, so ants always gos to nearest unseen cell 2011-10-28T17:52:41 every turn i refresh different map 2011-10-28T17:52:47 fluxid you can also reuse that for multiple ants with the same destination 2011-10-28T17:52:52 yup 2011-10-28T17:53:04 one map directing to hills for all ants 2011-10-28T17:53:38 i think this is then called "hill climbing" 2011-10-28T17:53:56 because hill doesnt move, i don't hve to refresh them so often 2011-10-28T17:54:08 every fourth turn 2011-10-28T17:54:19 if map is being discovered 2011-10-28T17:55:43 *** fasteddie_ has quit IRC (Quit: Page closed) 2011-10-28T17:59:33 Fluxid: good idea to use such map for hills, cool 2011-10-28T18:00:09 mleise: http://fluxid.pl/misc/2011-10-28-235423_1864x1099_scrot.png this is how map to the edge of seen cells look like. the lower the number, the closer it is to cell which never was in visible radius 2011-10-28T18:01:19 very cool 2011-10-28T18:01:30 that's way better than doing pathfinding for each ant like I do now 2011-10-28T18:01:38 and no matter where ant is, it goes to the closest one, i don't have to "find path" 2011-10-28T18:02:35 Fluxid, and what about water? there is not water at your map vision 2011-10-28T18:02:52 bearoff: ## is either unseen cell or water 2011-10-28T18:03:16 aha 2011-10-28T18:03:36 *** Bluedgis has quit IRC (Ping timeout: 258 seconds) 2011-10-28T18:03:38 ah, so you don't have the ants try to find a new way to get to the hill? 2011-10-28T18:03:46 Fluxid: you are crazy, this can never work out :p 2011-10-28T18:04:08 let me see your bot in action 2011-10-28T18:04:21 http://fluxid.pl/misc/2011-10-29-000001_929x776_scrot.png and here is map to enemy hill 2011-10-28T18:05:07 http://ants.fluxid.pl/replay.10496 ? 2011-10-28T18:05:40 mleise: my bot which implemented only this to find food (one map to all the food!) go to the 30 place at the beginning 2011-10-28T18:05:56 and hills and map discovery 2011-10-28T18:06:05 there wasn't anything else 2011-10-28T18:06:12 no even interaction with enemy ants ;P 2011-10-28T18:06:39 *** wmk has joined #aichallenge 2011-10-28T18:07:28 oh right, you can just draw outwards from every food item and the ants all get attracted by the closest one 2011-10-28T18:07:49 somehow this is ... not bad I have to say 2011-10-28T18:07:55 mleise: http://ants.fluxid.pl/replay.5459 or here, turn 400 on 2011-10-28T18:08:02 mleise: i changed the way to gather food 2011-10-28T18:08:15 maps for food are bad because groups of ants go to the same food 2011-10-28T18:08:34 now i dispatch one ant and generate one map per food with limited maximum distance 2011-10-28T18:08:39 *** wmk has quit IRC (Client Quit) 2011-10-28T18:08:50 and periodicaly regeneate some of them 2011-10-28T18:09:10 i mean one map for all the food is bad ;P 2011-10-28T18:09:22 *** Fleem is now known as Floom 2011-10-28T18:09:43 I could never code like that. I have some aversion against doing things only periodically. *g* 2011-10-28T18:09:45 *** Floom has quit IRC (Quit: Leaving) 2011-10-28T18:09:55 It's all or nothing for me. 2011-10-28T18:09:59 *** Floom has joined #aichallenge 2011-10-28T18:10:12 *** lambdanaut has quit IRC (Remote host closed the connection) 2011-10-28T18:10:24 mleise: i don't have time to regenerate everything every turn 2011-10-28T18:10:37 i cache stuff 2011-10-28T18:10:59 Fluxid: what language are you using? 2011-10-28T18:11:25 i'm not opposed to caching. it's just that I don't want to delay using any new information, that is all 2011-10-28T18:11:28 because visible radius is 8, i can regenerate map every 4 turns, because map wont outdate in such short time, ant won't be able to reach the edge 2011-10-28T18:11:41 thestinger: python 2011-10-28T18:12:44 I think for food I'll just do a BFS from the food up to a certain number of steps and send the nearest idle ant it finds to it 2011-10-28T18:13:29 *** czxcz has joined #aichallenge 2011-10-28T18:13:51 if food appears, i generate map for it and check all ants which is on the lowest number 2011-10-28T18:14:17 if ant is already going to food which is closer, i ignore ith 2011-10-28T18:14:25 >> because visible radius is 8, i can regenerate map every 4 turns - good point, never thought about this 2011-10-28T18:14:36 otherwise i "steal" the ant to get the new closer food 2011-10-28T18:15:03 though I have no need in this now 2011-10-28T18:15:10 ;) 2011-10-28T18:16:10 *** swinejihad has quit IRC (Ping timeout: 265 seconds) 2011-10-28T18:16:16 still, my knowledge is near-zero, flood filling like that just seemed deadly simple for me 2011-10-28T18:17:30 >> i generate map for it and check all ants - to be honest, I think it will be moe quicly to calculate all distanses between all foods and ants, sort it and the apply pathfinding to smallest distances ) 2011-10-28T18:17:49 *** sigh has quit IRC (Ping timeout: 260 seconds) 2011-10-28T18:17:50 no 2011-10-28T18:17:59 because you need to do a graph search to get the real distance 2011-10-28T18:18:07 he's getting that for free 2011-10-28T18:18:22 no, as your ants are close to visible food 2011-10-28T18:18:34 and bird's distance is a good model 2011-10-28T18:18:42 bearoff: i tried it 2011-10-28T18:18:48 i use it ) 2011-10-28T18:18:51 but it sucks, because food can be on the other side of water 2011-10-28T18:19:10 yes, this is minus 2011-10-28T18:19:19 it is close in the straight line, but pathfind may be the longest possible on the map 2011-10-28T18:19:29 I'll do smth with this 2011-10-28T18:19:33 i tried it at the beginning 2011-10-28T18:20:26 and some other food may be actually closer, even if int straight line it is farther 2011-10-28T18:21:37 but, if the food is really far from you (over water) and you play with strong player - he will colect it, and it will compensate the problem 2011-10-28T18:22:11 bearoff: until then my ant thinks about this food and how to get there ;) 2011-10-28T18:22:16 or you will loose it from your look and so can forget about it 2011-10-28T18:22:46 as you can't control it's presence 2011-10-28T18:22:48 bearoff: http://aichallenge.org/strategy_guide.php look at the example they give here in the pathfinding section 2011-10-28T18:23:06 and i remove food only when location where it should be is visible and this food is no longer there (i remember invisible food) 2011-10-28T18:23:14 if you use euclidean/manhattan distance you end up going to food that is really actually further away 2011-10-28T18:23:29 and then when you move, your ant might end up going back the other way 2011-10-28T18:23:39 *** Redgis has joined #aichallenge 2011-10-28T18:24:39 thestinger, if you'll have only one ant - it will be more valuable 2011-10-28T18:24:56 changing the topic, i asked before: how many LOC your bots have? ;) 2011-10-28T18:25:17 but you have many and you have other players - these compensate in some way problems with simple distance 2011-10-28T18:25:27 what is LOC? 2011-10-28T18:25:32 linef of code 2011-10-28T18:26:26 1000 including map damps and logging 2011-10-28T18:26:54 and what about yours? 2011-10-28T18:27:01 you mean including code which logs and dumps? 2011-10-28T18:27:10 yeah 2011-10-28T18:27:15 829 without empty lines and comments 2011-10-28T18:27:28 *** Saulzar has quit IRC (Ping timeout: 252 seconds) 2011-10-28T18:27:33 mm, I counted comments too 2011-10-28T18:27:52 find -iname '*.EXT' -print0 | xargs -0 grep -v '^[[:blank:]]*\(#\|$\)' | wc 2011-10-28T18:28:06 if comments start with # 2011-10-28T18:28:16 no ) it's PHP ) 2011-10-28T18:28:22 :) 2011-10-28T18:29:04 I'm wondering if it can be competitive) 2011-10-28T18:29:11 it's my first interest ) 2011-10-28T18:31:13 so LOC are very close 2011-10-28T18:31:28 look up "sloccount" if you're coding in linux 2011-10-28T18:31:39 no, win 2011-10-28T18:31:39 it's a useful LOC counter 2011-10-28T18:31:44 ah 2011-10-28T18:31:50 have linux on work, lazy to shh to them 2011-10-28T18:32:19 *ssh 2011-10-28T18:32:42 Zannick: didn't know... thanks 2011-10-28T18:33:01 Fluxid, how many time you spent for bot? 2011-10-28T18:33:28 it gives a lot of silly statistics 2011-10-28T18:33:32 I have spent smth about 20-30 hours, I think 2011-10-28T18:33:37 but the counting is really good 2011-10-28T18:33:59 *** synace has quit IRC (Quit: Leaving.) 2011-10-28T18:34:27 bearoff: half of my holiday... 2011-10-28T18:34:32 no, more, since sunday :D 2011-10-28T18:34:54 every full day? ) 2011-10-28T18:35:18 (thanks for TCP server, to the point) 2011-10-28T18:35:27 at 19:00 friday started writing, at 06:00 sunday uploaded first working version (third on aichallenge.org) 2011-10-28T18:35:37 and then... no, not whole day 2011-10-28T18:35:49 it's holiday after all :) 2011-10-28T18:36:05 thre days later another version, and today fifth 2011-10-28T18:36:10 :) 2011-10-28T18:36:24 few hours a day 2011-10-28T18:36:48 but i'm stopping here, no idea how to make it better 2011-10-28T18:37:27 my plan is to implement "squads" - moving groups of ants instead of one ant 2011-10-28T18:37:57 and battle logic 2011-10-28T18:38:21 as my ants are like cows 2011-10-28T18:38:45 before coding i thought of the same 2011-10-28T18:38:53 to make a group leader 2011-10-28T18:38:55 but meh 2011-10-28T18:39:43 what is meh? 2011-10-28T18:45:27 *** dwins has quit IRC (Ping timeout: 252 seconds) 2011-10-28T18:45:55 bearoff: check urban dictionary ;-) http://www.urbandictionary.com/define.php?term=meh 2011-10-28T18:46:37 * avdg used the word in his code as well 2011-10-28T18:46:57 avdg: thanks ) 2011-10-28T18:51:27 *** JamesMG_ has joined #aichallenge 2011-10-28T18:51:38 *** bearoff has left #aichallenge 2011-10-28T18:51:40 what the.. sloccount is telling me i have 245 lines of sh code, when i only have one .sh file with one line in it 2011-10-28T18:51:53 *** gcflymoto has joined #aichallenge 2011-10-28T18:52:45 it's probably counting another somewhere 2011-10-28T18:53:38 i gace it a directory with 5 files in it 2011-10-28T18:53:41 gave* 2011-10-28T18:54:36 *** JamesMG has quit IRC (Ping timeout: 244 seconds) 2011-10-28T18:54:38 ah 2011-10-28T18:54:42 and a git repo :P 2011-10-28T18:55:48 *** halligalli has quit IRC (Ping timeout: 265 seconds) 2011-10-28T18:55:50 *** HaraKiri has quit IRC () 2011-10-28T18:56:52 but anyway, 266 lines of python code so far 2011-10-28T18:57:13 *** irchs has quit IRC (Quit: irchs) 2011-10-28T19:01:03 *** doricatron has joined #aichallenge 2011-10-28T19:02:01 Fluxid: thanks so much for the idea of using a height map thing to do pathfinding, it's so much faster than how I was before 2011-10-28T19:02:07 web simulator question here. does the "play one move/attach phase" button plays out 1 full turn on 1 click or does it require multiple clicks for 1 turn depending on the situation (attack, gather food etc) 2011-10-28T19:02:11 I'm just doing a BFS from the destination and filling out a map atm 2011-10-28T19:02:28 http://paste.pocoo.org/show/499784/ 2011-10-28T19:02:54 *** Floom has quit IRC (Quit: Leaving) 2011-10-28T19:03:05 *** Floom has joined #aichallenge 2011-10-28T19:03:08 *** Floom is now known as Ploom 2011-10-28T19:03:15 *** Ploom is now known as Fffloom 2011-10-28T19:03:18 *** Fffloom is now known as Floom 2011-10-28T19:03:25 s/how I was before/how I was doing pathfinding before/ 2011-10-28T19:03:40 *** amstan_ has quit IRC (Ping timeout: 260 seconds) 2011-10-28T19:03:52 it's C++ so I could generate a thousand of these a turn :P 2011-10-28T19:03:56 lol, yes, I'm sure you are still faster than your ants :p 2011-10-28T19:04:26 how much time do we have per turn? 2011-10-28T19:04:40 doricatron, that's a game initiation parameter 2011-10-28T19:04:49 aichallenge: McLeopold epsilon * raf5a865 / (9 files in 2 dirs): support for remember me cookie login - http://git.io/LDzKvQ 2011-10-28T19:04:49 aichallenge: McLeopold epsilon * rb8fb78d / (12 files in 4 dirs): Merge branch 'epsilon' of github.com:aichallenge/aichallenge into epsilon - http://git.io/RiZqkg 2011-10-28T19:04:52 right now, it's 500ms, but I guess it could change 2011-10-28T19:05:22 I check the time as I do stuff like pathfinding and bail out if it's too low 2011-10-28T19:05:40 I don't want to ever have to bail out of this stuff though, it's just there as a fallback 2011-10-28T19:05:47 thestinger: np, i'm glad i could help! 2011-10-28T19:05:57 Web simulator question here: Does the "play one move/attach phase" button plays out 1 full turn on 1 click? OR does it require multiple clicks for 1 turn depending on the situation (attack, gather food etc)? 2011-10-28T19:06:05 *** Chris_0076 has quit IRC (Read error: Connection reset by peer) 2011-10-28T19:06:20 doricatron: no 2011-10-28T19:06:21 *** CodeBlock has quit IRC (Ping timeout: 252 seconds) 2011-10-28T19:06:28 two clicks - one turn 2011-10-28T19:06:35 sometimes 2011-10-28T19:06:43 first click - ants move, second - new stuff appear 2011-10-28T19:06:43 *** danielharan has quit IRC (Remote host closed the connection) 2011-10-28T19:07:01 *** FusionX has quit IRC (Ping timeout: 240 seconds) 2011-10-28T19:07:05 *** Chris_0076 has joined #aichallenge 2011-10-28T19:07:30 I don't think its always 2 is it? 2011-10-28T19:07:39 *** rogual has quit IRC (Quit: This computer has gone to sleep) 2011-10-28T19:07:41 *** danielharan has joined #aichallenge 2011-10-28T19:07:55 *** CodeBlock has joined #aichallenge 2011-10-28T19:07:55 *** CodeBlock has joined #aichallenge 2011-10-28T19:08:45 just realized I re-invented influence mapping, in a crude way. 2011-10-28T19:09:21 was fun before I found out about the subject... 2011-10-28T19:09:32 *** olexs has quit IRC (Quit: Leaving.) 2011-10-28T19:09:34 *** Floom has left #aichallenge ("Leaving") 2011-10-28T19:10:05 *** chris__0076 has joined #aichallenge 2011-10-28T19:10:06 *** FusionX has joined #aichallenge 2011-10-28T19:10:28 *** Chris_0076 has quit IRC (Read error: Connection reset by peer) 2011-10-28T19:11:49 *** danielharan has quit IRC (Ping timeout: 240 seconds) 2011-10-28T19:13:00 *** Racko has quit IRC (Quit: Page closed) 2011-10-28T19:13:21 *** chris__0076 has quit IRC (Read error: Connection reset by peer) 2011-10-28T19:13:39 @later tell janzert cookies are live, let me know if I compromised our security :) 2011-10-28T19:13:39 McLeopold: As you wish. 2011-10-28T19:15:31 mmm, cookies 2011-10-28T19:15:55 >remember me 2011-10-28T19:16:00 McLeopold: THANKS! 2011-10-28T19:16:16 finally 2011-10-28T19:16:31 fuck security 2011-10-28T19:18:17 okay, everyone, Fluxid's password is ..... (drumroll) 2011-10-28T19:18:32 McLeopold: don't tell me you store password in cookies 2011-10-28T19:18:51 duh, nope 2011-10-28T19:19:21 and in db it's probably salted sha1 2011-10-28T19:19:22 ;PPPP 2011-10-28T19:19:23 heck no, I couldn't tell you if I wanted to 2011-10-28T19:19:29 *** gcflymoto has quit IRC (Ping timeout: 265 seconds) 2011-10-28T19:19:36 *** ztfw has quit IRC (Remote host closed the connection) 2011-10-28T19:20:16 * avdg smiles 2011-10-28T19:20:45 *** Xunie` has quit IRC (Remote host closed the connection) 2011-10-28T19:20:58 120 minutes to next game 2011-10-28T19:21:06 one hour ago it was 660 minutes 2011-10-28T19:21:13 hmm 2011-10-28T19:21:18 how this time flies! 2011-10-28T19:22:28 * avdg begins hating queues (especially when he submitted a new entry) 2011-10-28T19:23:57 the current version I have uploaded has some weird bugs that I've now fixed, and it somehow made it get pretty high in the rankings 2011-10-28T19:23:59 lol. 2011-10-28T19:24:32 http://aichallenge.org/profile.php?user=2255 2011-10-28T19:24:35 mine doesn't even have a pathfinder atm 2011-10-28T19:24:42 that version doesn't even know about fighting or enemy ants 2011-10-28T19:25:08 but does it spot them? :p 2011-10-28T19:25:11 it just gathers food, attacks hills and explores with each ant (in that order) and the pathfinding is buggy (it's fully fixed now) 2011-10-28T19:25:13 that's pretty impressive, without combat logic! 2011-10-28T19:25:28 the pathfinding bugs cause weird clumping behavior 2011-10-28T19:25:41 I almost regret fixing them... 2011-10-28T19:25:45 *** delt0r__ has quit IRC (Read error: Operation timed out) 2011-10-28T19:27:12 now that I've fixed the pathfinding, my ants usually move in orderly lines, so they don't do as well as the buggy version 2011-10-28T19:27:38 :-) 2011-10-28T19:27:41 it won't matter once I actually have some more of the logic coded (my bot is still really basic) 2011-10-28T19:27:44 maybe because they are smarter 2011-10-28T19:27:50 too smart isn't always good 2011-10-28T19:28:24 ants definitely outnumber you in sheer volume :p 2011-10-28T19:31:47 *** AquaticPenguin has joined #aichallenge 2011-10-28T19:33:38 *** Chris_0076 has joined #aichallenge 2011-10-28T19:33:55 im getting a rather strange return code from the game engine :/ rc 65280 2011-10-28T19:34:42 "what does it mean??" - douable rainbow man 2011-10-28T19:39:54 *** delt0r__ has joined #aichallenge 2011-10-28T19:40:58 *** paulwal has joined #aichallenge 2011-10-28T19:43:01 *** AquaticPenguin has quit IRC (Quit: Page closed) 2011-10-28T19:45:09 *** xathis has quit IRC () 2011-10-28T19:51:22 hmm, did someone noticed worker 6? 2011-10-28T19:51:49 *** sigh has joined #aichallenge 2011-10-28T19:53:42 notice? 2011-10-28T19:54:05 what happened, did it start spinning out of control like a bad merry go round? 2011-10-28T19:55:40 maybe the price dropped? maybe there is more budged (which I think is less likely)? 2011-10-28T19:57:10 *** Knekkebjoern1 has left #aichallenge 2011-10-28T19:59:15 *** halligalli has joined #aichallenge 2011-10-28T20:00:31 *** iamphi has joined #aichallenge 2011-10-28T20:01:25 *** halligalli has quit IRC (Client Quit) 2011-10-28T20:01:46 *** Redgis has quit IRC (Ping timeout: 244 seconds) 2011-10-28T20:01:51 how i do display the bot's name when testing locally ? it is currently showing me player1, player2, ... 2011-10-28T20:05:13 duno, i use modified test_bot.sh and it show filenames 2011-10-28T20:05:19 *** danielharan has joined #aichallenge 2011-10-28T20:05:27 RandomBot.py flantob.py etc 2011-10-28T20:09:20 *** ikaros has quit IRC (Quit: Ex-Chat) 2011-10-28T20:12:53 *** amstan_ has joined #aichallenge 2011-10-28T20:12:53 *** ChanServ sets mode: +o amstan_ 2011-10-28T20:12:58 *** xar0l has joined #aichallenge 2011-10-28T20:15:48 *** wombot__ has joined #aichallenge 2011-10-28T20:17:03 *** wombot_ has quit IRC (Ping timeout: 245 seconds) 2011-10-28T20:19:38 *** svujic has joined #aichallenge 2011-10-28T20:20:11 *** Knekkebjoern has joined #aichallenge 2011-10-28T20:20:15 *** Areks has quit IRC (Ping timeout: 258 seconds) 2011-10-28T20:22:08 Fluxid: I'm using that pathfinding method for attacking enemy hills and exploration now, it's genius :D 2011-10-28T20:22:15 I'm going to be doing something different for food though 2011-10-28T20:22:57 not sure what yet, but it will involved a BFS search from the food 2011-10-28T20:24:07 thestinger: cool :D 2011-10-28T20:25:53 I'll have to find something to use my A* search for... it took so long to do it in C++ because I'm learning the language as I go 2011-10-28T20:27:20 I started in python (which I know very well), but imo it's easier to use a low level language for this because you don't have to make as many compromises or use perfect algorithms for everything 2011-10-28T20:27:58 i did it in python because it was fun to optimize stuff... and i know it the best 2011-10-28T20:29:04 *** Islacrusez has joined #aichallenge 2011-10-28T20:30:30 the new default sight radius is 77 now isn't it? 2011-10-28T20:30:41 yeah 2011-10-28T20:30:53 but don't rely on it ;) 2011-10-28T20:31:07 * Islacrusez has graduated from tutorial and needed to set it back to default 2011-10-28T20:31:53 I do wonder what would happen if sight radius dropped below attack range 2011-10-28T20:32:14 it would stop to make sense - this would happen ;) 2011-10-28T20:32:33 only all existing strategies would fail 2011-10-28T20:32:51 being killed by enemy you don't see - stupid 2011-10-28T20:37:32 *** paulwal_ has joined #aichallenge 2011-10-28T20:37:55 actually only stupid as long as you're able to attack what you can't see (clearly a scenario of attack>sight was never expected and has not been catered for), but if that changed, interesting results could be created 2011-10-28T20:38:10 FYI, clicking on the new Ada starter package gives a 404 2011-10-28T20:38:45 *** paulwal has quit IRC (Ping timeout: 265 seconds) 2011-10-28T20:39:56 *** puto|mokka has joined #aichallenge 2011-10-28T20:42:49 guys, just curious, what method would you recommend for setting a kind of targets to explore? just having no ideas how to interpret the visible part of the map and somehow deduce where to explore 2011-10-28T20:44:22 czxcz i explained my way few screens ago 2011-10-28T20:45:02 00:00:08 < Fluxid> mleise: http://fluxid.pl/misc/2011-10-28-235423_1864x1099_scrot.png this is how map to the edge of seen cells look like. the lower the number, the closer it is to cell which never was in visible radius 2011-10-28T20:46:18 that's pretty interesting 2011-10-28T20:46:26 trippy almost 2011-10-28T20:46:39 yea I agree, thank you, I will ponder about it :) 2011-10-28T20:47:16 yeah, I implemented it (using BFS from targets, and setting each new node to 1 more than the parent) and it works really well 2011-10-28T20:47:43 83 minutes ;_; 2011-10-28T20:47:47 in the meantime, I'm trying to get my bot to make notes on things 2011-10-28T20:47:50 damn, i want next battle before i go to sleep 2011-10-28T20:47:58 if I can't figure it out, I'll be back in a few xD 2011-10-28T20:49:35 *** gcflymoto has joined #aichallenge 2011-10-28T20:52:17 Fluxid, don't you run a tcp server :P 2011-10-28T20:52:28 i do run 2011-10-28T20:52:47 why do you ask 2011-10-28T20:53:07 why are you waiting for games? 2011-10-28T20:53:09 lol 2011-10-28T20:53:37 because maps need certain ampunt of players 2011-10-28T20:54:31 Fluxid: do you use any pseudo-randomness for your movement? atm I'm checking each neighbouring node in the same order each time (N, E, S, W) and when two have the same distance, I move to the first one with that distance 2011-10-28T20:54:40 <_flag> If you play then there's a higher chance of using those maps :P 2011-10-28T20:55:14 yeah, they don't move in such a strict line if you randomize the order you check :) 2011-10-28T20:55:34 thestinger: yes 2011-10-28T20:56:04 i have few strategies and weights assigned to them 2011-10-28T20:56:35 *** onensora has quit IRC () 2011-10-28T20:56:40 oh yay, my next game is in 6 hours xD 2011-10-28T20:56:43 strategies give points to each direction, then i do weighted average of points for each direction and try the largest 2011-10-28T20:58:32 just uploaded a new bot, to see if tutbot>samplebot xD 2011-10-28T20:58:49 Islacrusez, yes 2011-10-28T20:58:56 one would really hope so, lol 2011-10-28T20:59:24 Islacrusez: http://aichallenge.org/profile.php?user=2255 <- that's basically just what you get from the tutorial + A* pathfinding, dunno why it's doing so well since it doesn't know about enemy ants/combat 2011-10-28T20:59:27 while I wait for that game, I'm trying to figure out how to record positions of my ants, and store the information for 2 turns 2011-10-28T20:59:56 what do you mean store it for two turns? 2011-10-28T21:00:24 Islacrusez: if you move your ant in given direction, you know where your ant will be next, right? 2011-10-28T21:00:50 what information do you want to store.. for just two turns? 2011-10-28T21:01:07 mleise: http://aichallenge.org/forums/viewtopic.php?f=25&t=1630 this seems to be a common problem, can you shed some light on this? 2011-10-28T21:01:20 I need to know where my ant was last turn, as well as where it will be the next turn, and I simply want to compare the two 2011-10-28T21:02:14 why 2011-10-28T21:02:26 have class Ant with attributes row, col 2011-10-28T21:02:33 first you schedule the moves 2011-10-28T21:02:38 in directions 2011-10-28T21:02:47 after you resolve the collisions, you send commands 2011-10-28T21:03:09 and after sending commands, you change positions in your ant intstances to new 2011-10-28T21:03:24 I guess I should have made the tutorial worse... 2011-10-28T21:03:24 *** czxcz has quit IRC (Ping timeout: 265 seconds) 2011-10-28T21:03:26 and have some kind of hashmap to store (row,col)→ant class instance 2011-10-28T21:04:15 *** Knekkebjoern has quit IRC (Quit: Leaving.) 2011-10-28T21:09:06 *** Baus has joined #aichallenge 2011-10-28T21:10:31 *** he_the_great has joined #aichallenge 2011-10-28T21:12:09 eh... I added some code, I removed said code, my bot functions differently 2011-10-28T21:13:24 or... maybe I'm watching the wrong bot 2011-10-28T21:13:25 bother 2011-10-28T21:13:52 * Islacrusez fails 2011-10-28T21:14:39 66 minutes :| 2011-10-28T21:15:00 you know you need more coffee when: ? 2011-10-28T21:15:21 ? 2011-10-28T21:16:42 yeaah it doesn't make much sense in relation to your comment, but you know you need more coffee when you're tweaking your code and watching the wrong bot for results; or when you start making really bad jokes 2011-10-28T21:18:58 *** Baus has quit IRC (Quit: Leaving) 2011-10-28T21:19:23 *** Baus has joined #aichallenge 2011-10-28T21:22:20 wikipedia article is now updated 2011-10-28T21:22:25 any ideas where to link it from? 2011-10-28T21:22:28 it's kinda orphan 2011-10-28T21:22:38 what article? 2011-10-28T21:22:46 http://en.wikipedia.org/wiki/AI_Challenge 2011-10-28T21:24:16 mmm, how would I go about printing something to console from my python bot? 2011-10-28T21:25:25 in python3 print(..., file=sys.stderr) 2011-10-28T21:25:39 in python2, afair print >>sys.stderr, ... 2011-10-28T21:26:01 print >> sys.stderr, 'Text' 2011-10-28T21:26:03 yep 2011-10-28T21:27:10 *** Cybsy has quit IRC (Ping timeout: 260 seconds) 2011-10-28T21:35:47 *** paulwal_ has quit IRC (Ping timeout: 265 seconds) 2011-10-28T21:39:40 *** xar0l has quit IRC (Quit: Page closed) 2011-10-28T21:43:23 does the server precompile python files into bytecode? 2011-10-28T21:43:29 no 2011-10-28T21:43:52 becaus you cannot write, right? 2011-10-28T21:44:01 well, the server can 2011-10-28T21:44:21 cyphase: does it take more than 3 seconds to compile and init your program? 2011-10-28T21:44:49 amstan_, no, no at the moment :) 2011-10-28T21:44:53 i was just wondering 2011-10-28T21:45:12 cyphase: i was wooting for it, but janzert gave me his reasons 2011-10-28T21:45:23 there's just not any point to do it when nobody's going to care 2011-10-28T21:50:52 *** lahwran has joined #aichallenge 2011-10-28T21:50:53 wtf, my function works! 2011-10-28T21:50:56 er, sort of 2011-10-28T21:50:57 ohaider 2011-10-28T21:51:17 it does detect the conditions, but it doesn't know what to do with them 2011-10-28T21:51:20 * Islacrusez whistles innocently 2011-10-28T21:51:48 *** bobbydroptable has joined #aichallenge 2011-10-28T21:54:52 on the forums McLeopold said "We will support numpy/scipy for python 2 bots." will, or do? if the former, when? 2011-10-28T22:02:49 I just cannot get my head around this code right now 2011-10-28T22:05:24 ok, now I'm trying to iterate over a non-sequence 2011-10-28T22:10:10 ok, so now I have no idea what I've done because it apparently does nada 2011-10-28T22:10:32 go go gadget debbuger 2011-10-28T22:11:08 * Islacrusez chuckles 2011-10-28T22:11:39 so this looks really fun, but I don't want to spend a whole bunch of time writing a bot just to lose to other people who are way better at this than me 2011-10-28T22:11:41 thougc debbuging is hard, without stdin/stdout for pdb 2011-10-28T22:12:08 lahwran: i had fun writing bot, and i don't care about wining 2011-10-28T22:12:24 Fluxid: my problem doesn't need a debugger, it needs an idiot less at the keyboard ^^ 2011-10-28T22:12:29 i learned something, that' enough 2011-10-28T22:12:51 also, the website is horribly unclear about what conditions cause what 2011-10-28T22:13:05 oh, there it is 2011-10-28T22:13:08 "game specification" :D 2011-10-28T22:15:35 its not so much about winning, but about actually putting up a good fight at least 2011-10-28T22:15:37 :( 2011-10-28T22:15:47 its no fun if your bots just wander around in circles 2011-10-28T22:15:52 hahaha 2011-10-28T22:16:06 bobbydroptable: i actually made one mistake 2011-10-28T22:16:19 bobbydroptable: and my ants literally did circles about hive 2011-10-28T22:16:29 sounds like a sound defense strategy 2011-10-28T22:16:31 lol 2011-10-28T22:16:37 more like squares, but still, running clockwise around 2011-10-28T22:17:20 I've written 8 lines of code... I started off with 4, but by the time I debugged them there were 7 and they did nothing 2011-10-28T22:18:02 mm, make that 9 xD 2011-10-28T22:18:48 *** smiley1983 has joined #aichallenge 2011-10-28T22:18:58 * avdg wishes the last one was a quit 2011-10-28T22:19:17 Islacrusez: not doing so well, are we? 2011-10-28T22:19:31 damn, 14 minutes 2011-10-28T22:19:33 nope 2011-10-28T22:19:59 but successfully debugging should be considered a success considering that before I came here, I didn't know python 2011-10-28T22:20:08 does anyone know what the number of #ants on the right hand side in the 'hive' triangle represents http://aichallenge.org/visualizer.php?game=26001 2011-10-28T22:20:08 haha 2011-10-28T22:20:29 * avdg is shaking too much he can't even type, too much good music 2011-10-28T22:20:47 wombot__: I'm pretty sure it's the number of ants that still need to spawn 2011-10-28T22:21:13 wombot__: yup, ants waiting to spawn 2011-10-28T22:21:19 ah that makes sense, thanks 2011-10-28T22:21:29 what does that word actually mean? 2011-10-28T22:21:31 when you gather food and hive is blocked, the number on the right will increase 2011-10-28T22:21:47 wombot__: hooooooly crud 2011-10-28T22:21:47 avdg: what music? 2011-10-28T22:22:09 ambient, techno, little bit classic 2011-10-28T22:22:17 can't clear the hill fast enough 2011-10-28T22:22:28 cool 2011-10-28T22:22:58 funny... I just sped up my breadth-first searching by 60x 2011-10-28T22:23:28 Islacrusez I didn't know python as well, till last friday! :D 2011-10-28T22:23:45 =P 2011-10-28T22:23:51 I'm pretty sure I'll end up using it for everything instead of A* now... 2011-10-28T22:24:38 considering the cost of calculating distance (abs,modulo for wrapping) bfs might be faster 2011-10-28T22:24:58 *** xar0l has joined #aichallenge 2011-10-28T22:25:18 avdg: sounds like me. 2011-10-28T22:25:20 yeah, and I'm using Fluxid's method of doing a full BFS from a location and then reusing that for all the ants that are going there 2011-10-28T22:25:27 and I'm also using it for distance calculation 2011-10-28T22:26:01 current one: http://www.jamendo.com/en/track/398206 2011-10-28T22:26:15 my A* algorithm doesn't cache anything so I have to redo the work each time 2011-10-28T22:26:17 thestinger: oh that is a good idea 2011-10-28T22:26:37 yeah, and you can output pretty maps as the game runs :P 2011-10-28T22:27:09 *** savaron has quit IRC (Quit: Page closed) 2011-10-28T22:27:39 ok, screw this, I'm going to bed xD 2011-10-28T22:27:58 don't let the bot kill your dreams ;-) 2011-10-28T22:28:02 I know why, no wait, I think I know why my code does nothing, but heyho 2011-10-28T22:28:40 it took me a full rebuild before I could use the code here ;-) 2011-10-28T22:29:13 *** Craklyn has joined #aichallenge 2011-10-28T22:30:10 "The walking dead" kills my dreams more than the bot does 2011-10-28T22:30:50 I've found I have some disturbing images in memory that will kill my dreams pretty efficiently 2011-10-28T22:30:59 blasted internet; what has been seen cannot be unseen o.o 2011-10-28T22:31:33 eye bleach 2011-10-28T22:32:20 I'm not sure if even death would purge those images from my mind D= 2011-10-28T22:32:24 haha 2011-10-28T22:32:36 meh "49 players are ahead" 2011-10-28T22:32:39 i swear i'm the opposite of most people, the internet has strengthened my ability to feel empathy for others 2011-10-28T22:32:41 then again, that particular image requires a soul to be disturbing, so if I were separated from my soul then I'd be fine 2011-10-28T22:33:05 the japanese have come up with some of the most crazy stuff 2011-10-28T22:33:21 but as a result, they're also the source of the most potent antidotes 2011-10-28T22:33:23 antimatroid1: I have a big chapter about that (and not a really good one to talk about it as well) 2011-10-28T22:33:39 see cute kittens, cute girls, cute kitten girls etc. 2011-10-28T22:33:43 lol 2011-10-28T22:33:48 it takes hard years :-) 2011-10-28T22:33:59 i practically grew up on the internet :P 2011-10-28T22:34:28 I had to life with people who thought the web had no future 2011-10-28T22:34:52 75 players ahead :( 2011-10-28T22:34:58 lol, at a music festival a couple of years ago these people tried to tell me the internet contributed nothing worthwhile to society :| 2011-10-28T22:35:37 "what has facebook done?" ergh 2011-10-28T22:36:16 50 here 2011-10-28T22:36:57 http://www.jamendo.com/en/track/425762 <- now listening to 2011-10-28T22:37:10 *** Islacrusez has quit IRC (Ping timeout: 265 seconds) 2011-10-28T22:37:12 I'm maybe in the music zone atm 2011-10-28T22:37:51 avdg: nice, i'll listen to it latr 2011-10-28T22:38:07 after i listen to newly got jcore releases 2011-10-28T22:39:02 hmm, I wonder what the gaming rate does 2011-10-28T22:39:15 its almost hitting 300 here 2011-10-28T22:39:24 and I'm raising slowly 2011-10-28T22:43:50 no food :/ 2011-10-28T22:43:59 http://aichallenge.org/visualizer.php?game=26838 2011-10-28T22:44:21 wow equal first for everyone 2011-10-28T22:44:31 :-) 2011-10-28T22:44:40 an d shit all happens for 181 turns 2011-10-28T22:44:41 hahaha 2011-10-28T22:44:52 and I'm the only one not behaving like them 2011-10-28T22:44:58 yeh 2011-10-28T22:45:05 well i have finally gotten past my initial problem 2011-10-28T22:45:19 now i have to fix the 2nd big problem. after i've charted a course for an ant 2011-10-28T22:45:26 i need it to check to see if the path is still valid 2011-10-28T22:45:44 I still have to go through the pathfinder stuff 2011-10-28T22:45:45 avdg: exciting enemy ;) 2011-10-28T22:45:58 but I still have to change some caches 2011-10-28T22:46:10 39 minutes :| 2011-10-28T22:46:15 players* 2011-10-28T22:46:21 I don't want to hunt on food thats gone 2011-10-28T22:46:34 Repeat pathfinding each turn :) 2011-10-28T22:46:43 mine won't do that 2011-10-28T22:46:57 I have a totally other idea 2011-10-28T22:47:02 *** moises has joined #aichallenge 2011-10-28T22:47:25 Craklyn yeh could do that, but that wouldn't be very elegant 2011-10-28T22:48:24 You have to do something to avoid your ants walking blindly into new water that appears, enemy ants, etc.. :P 2011-10-28T22:48:42 "appears" = you come into range to see 2011-10-28T22:49:58 actually I love to see my bot in full action, there are still a lot of bugs in my bot due lacking features 2011-10-28T22:50:11 and it may once do something really funny 2011-10-28T22:52:23 I would like to be able to run my bot passing it a flag, but playgame.py "./MyBot -d 1" throws and error in sandbox.py. Anyone here know how to get around that? 2011-10-28T22:52:38 *** gcflymoto has quit IRC (Ping timeout: 265 seconds) 2011-10-28T22:53:28 bleh, I am still on a bad position, these bots that kill each other at the very same time are much better by ranking 2011-10-28T22:53:29 :p 2011-10-28T22:54:16 jcdnyc: did you actually typed question marks or do I have an encoding problem? 2011-10-28T22:55:01 in the . . . - thats probably the mac turning it into &ldots; or something 2011-10-28T22:55:42 finally! 2011-10-28T22:55:46 http://aichallenge.org/visualizer.php?game=26875&user=757 2011-10-28T22:56:13 jcdnyc: is you file executable? 2011-10-28T22:56:36 it looks fine otherwise 2011-10-28T22:56:45 unless there is an error in the other flags 2011-10-28T22:56:50 yes it works with the flag from the command line, also works via playgame.py if called w/o flags 2011-10-28T22:57:20 then its because there is an error with that flag 2011-10-28T22:57:23 It says: File "/Volumes/raid/HD/Users/davis/src/ai/tools/sandbox.py", line 389, in start 2011-10-28T22:57:24 raise SandboxError('Failed to start {0}'.format(shell_command)) 2011-10-28T22:57:24 SandboxError: Failed to start ['MyBot', '-d', '1'] 2011-10-28T22:57:34 hmm 2011-10-28T22:57:48 doing a BFS from a food on a the _whole_ map is faster for me than doing manhattan distance to each ant (and of course, more accurate) 2011-10-28T22:57:59 from a food across the whole map* 2011-10-28T22:58:09 could you put the executable between escaped quotes as well? 2011-10-28T22:58:25 "\"./MyBot -d 1\"" 2011-10-28T22:58:45 I'm just saying something 2011-10-28T22:58:51 but lets see 2011-10-28T22:59:29 in the other case you have to create a debug executable witch doesn't require flags 2011-10-28T22:59:39 *which 2011-10-28T22:59:43 bleh 2011-10-28T23:00:43 Nah that does not work either. andboxError: Failed to start ['./MyBot -d 1'] 2011-10-28T23:00:54 *** smiley1983 has quit IRC (Ping timeout: 276 seconds) 2011-10-28T23:00:54 *** smiley1993 has joined #aichallenge 2011-10-28T23:01:26 hmm, but its actually executing something expected... 2011-10-28T23:01:43 not sure what the problem is 2011-10-28T23:01:53 jcdny: Make a little script with the flag in it 2011-10-28T23:01:58 It does work if I wrap the bot in a shell script and then pass the flags but it's annoying and I was hoping it was something easy 2011-10-28T23:03:08 I hope you are using build files 2011-10-28T23:03:28 so you don't have to care about the problem 2011-10-28T23:11:05 *** tassadar has joined #aichallenge 2011-10-28T23:12:22 *** tassadar has quit IRC (Client Quit) 2011-10-28T23:12:29 Does anyone have tcp servers working on OSX using an AI agent written in Java? 2011-10-28T23:12:49 server or client? 2011-10-28T23:12:52 client 2011-10-28T23:13:02 how do you run it? 2011-10-28T23:13:12 python tcpclient.py ants.fluxid.pl 2081 'java MyBot' craklyn pword 1 2011-10-28T23:13:24 or python tcpclient.py ants.fluxid.pl 2081 'java -jar MyBot.jar' craklyn pword 1 2011-10-28T23:13:29 what error does it give? 2011-10-28T23:13:32 your bot (java MyBot) failed to start! 2011-10-28T23:13:41 Is the only information it gives >.< 2011-10-28T23:13:45 heh, my bot finally won http://paste.aichallenge.org/ZXpqV/ 2011-10-28T23:13:57 Craklyn: replace print( 'your bot ('+str(bot_command)+') failed to start!' ) 2011-10-28T23:14:00 with raise 2011-10-28T23:14:09 and see what error does it give 2011-10-28T23:14:18 in tcpclient.py 2011-10-28T23:15:08 Kind of messy, can't tell what the important part is.. 2011-10-28T23:15:14 last line 2011-10-28T23:15:20 OSError: [Errno 2] No such file or directory 2011-10-28T23:15:32 duh 2011-10-28T23:15:45 Craklyn: try to give absolute path to java binary 2011-10-28T23:15:56 to find it use which java 2011-10-28T23:16:54 same result 2011-10-28T23:17:12 sorry, one sec 2011-10-28T23:17:21 I typo'd. But after fixing typo, same result too :P 2011-10-28T23:17:40 :| 2011-10-28T23:18:03 what command again? 2011-10-28T23:18:07 Craklyn: I had similar problems, do bot_command = bot_command.split() 2011-10-28T23:18:20 seems popen expects a list of arguments 2011-10-28T23:18:25 My command is: python tcpclient.py ants.fluxid.pl 2081 '/usr/bin/java MyBot' craklyn pword 1 2011-10-28T23:18:31 xar0l: it should when shell=False 2011-10-28T23:18:34 I'll try xar01's suggestion. One sec.. 2011-10-28T23:18:49 maybe i'm fogeting something 2011-10-28T23:19:13 *** svujic has left #aichallenge 2011-10-28T23:19:42 Nice, I did what Xar01 gave me and it connected me to the server then my bot crashed. I think it's only my own mistakes holding me back now :) 2011-10-28T23:19:53 Big thanks fluxid and xar01 :) 2011-10-28T23:21:06 cya guys 2011-10-28T23:23:13 *** avdg has quit IRC (Quit: Leaving.) 2011-10-28T23:35:20 *** rmmh has quit IRC (Ping timeout: 276 seconds) 2011-10-28T23:36:45 *** rmmh has joined #aichallenge 2011-10-28T23:37:01 *** gcflymoto has joined #aichallenge 2011-10-28T23:39:07 *** rmmh has quit IRC (Read error: Connection reset by peer) 2011-10-28T23:41:49 *** rmmh has joined #aichallenge 2011-10-28T23:47:48 oooh question question 2011-10-28T23:48:11 does anyone here keep track of the number of food they have in surplus? 2011-10-28T23:48:40 like, if you have 50 food in surplus there really isn't much priority for food 2011-10-28T23:48:59 but that would be quite difficult to track. 2011-10-28T23:50:00 http://ants.fluxid.pl/replay.11091 wtf 2011-10-28T23:50:20 bobbydroptable: no, i don't keep track of food... no need, the more food, the more ants 2011-10-28T23:51:08 anyway, i wonder what happened to my bot in replay above... not attacking at all, wtf 2011-10-28T23:51:16 but if you have lots of food already wouldn't you want to priority attack over more food 2011-10-28T23:51:28 after all, the goal of the game is to raze hills, not get more ants 2011-10-28T23:51:42 ah no, it was attacking... but bad route! 2011-10-28T23:51:43 wtf 2011-10-28T23:52:39 guess it would be too late to modify the engine to give clients the number of food they have 2011-10-28T23:53:21 you could try keeping track of it yourself - add one when you get food, subtract one if an ant is on one of your hills at the start of the turn? 2011-10-28T23:53:21 *** rmmh has quit IRC (Read error: Connection reset by peer) 2011-10-28T23:53:33 for each hill ofc 2011-10-28T23:53:37 there's a few assumptions that need to be made though 2011-10-28T23:53:45 that you actually were able to get the food 2011-10-28T23:54:11 and that the ant of the hill was actually one that spawned 2011-10-28T23:54:13 lol 2011-10-28T23:54:24 well, I prevent my ants from stepping onto my own hills 2011-10-28T23:54:43 ah 2011-10-28T23:54:50 it would be hard to figure out if you actually got the food though 2011-10-28T23:54:59 yeh 2011-10-28T23:55:08 i was thinking, since the information is already in the visualizer/engine 2011-10-28T23:55:14 maybe we could just pass the information to the client 2011-10-28T23:55:29 but i'm not sure if that will crash existing clients that aren't coded to take that information 2011-10-28T23:55:38 does food spawn faster if it's being eaten? 2011-10-28T23:56:07 right now I stop getting food if I know I have no hills left, but I'm not sure if that's helping my opponents a lot 2011-10-28T23:56:09 05:54:12 < bobbydroptable> and that the ant of the hill was actually one that spawned ← if you keep track of your ants, you know if new ant appeared on the hill 2011-10-28T23:57:52 ugh c++ 2011-10-28T23:58:27 I've been prototyping in python and it takes 3-5x as many lines to get the same stuff done in C++ :P 2011-10-28T23:58:28 *** rmmh has joined #aichallenge