2012-07-05T01:00:53 *** Areks has joined #aichallenge 2012-07-05T01:11:28 *** thestinger has quit IRC (Quit: WeeChat 0.3.8) 2012-07-05T02:03:42 *** thestinger has joined #aichallenge 2012-07-05T02:12:52 *** coeus_ has quit IRC (Ping timeout: 244 seconds) 2012-07-05T02:38:11 *** mceier has joined #aichallenge 2012-07-05T02:49:45 *** kurnevsky has joined #aichallenge 2012-07-05T02:50:44 *** amstan has quit IRC (Ping timeout: 246 seconds) 2012-07-05T03:07:02 *** antarn has joined #aichallenge 2012-07-05T03:12:31 *** antarn has left #aichallenge 2012-07-05T03:28:42 *** Garf has joined #aichallenge 2012-07-05T03:29:08 *** thestinger has quit IRC (Quit: WeeChat 0.3.8) 2012-07-05T04:20:25 *** epicmonkey has joined #aichallenge 2012-07-05T05:21:29 *** archdori_ has quit IRC (Ping timeout: 245 seconds) 2012-07-05T05:23:39 *** pairofdice has joined #aichallenge 2012-07-05T05:36:55 *** HaraKiri has joined #aichallenge 2012-07-05T05:45:39 *** sigh has joined #aichallenge 2012-07-05T06:13:42 *** foRei has joined #aichallenge 2012-07-05T06:16:00 *** antimatroid has left #aichallenge 2012-07-05T06:16:30 *** antimatroid has joined #aichallenge 2012-07-05T07:09:05 *** kurnevsky has quit IRC (Read error: Connection reset by peer) 2012-07-05T07:20:54 *** HaraKiri has quit IRC () 2012-07-05T07:59:25 *** dici has joined #aichallenge 2012-07-05T08:01:34 *** dici has quit IRC (Client Quit) 2012-07-05T10:07:34 *** HaraKiri has joined #aichallenge 2012-07-05T10:09:24 *** mceier has quit IRC (Quit: leaving) 2012-07-05T10:49:29 *** Areks has quit IRC () 2012-07-05T11:00:41 *** mceier has joined #aichallenge 2012-07-05T11:04:43 *** citiral has joined #aichallenge 2012-07-05T11:04:46 Hello 2012-07-05T11:06:00 I might be a little late to the party, but I started to create a bot for planet wars, but I seem to have a problem with getting the position of a planet. 2012-07-05T11:06:12 (I'm using c#) 2012-07-05T11:06:16 if I just enter: 2012-07-05T11:06:42 Planet p = pw.GetPlanet(1); 2012-07-05T11:06:55 Console.WriteLine( p.X() ); 2012-07-05T11:07:10 I get a huge number, suck as 80000 2012-07-05T11:07:26 instead of the position the map file says. 2012-07-05T11:07:58 And If I have 3 planets next to each other,: P1 ----- P2 ----- P3 2012-07-05T11:08:31 p1 gives an x value of about 50000 for example, p2 gives 10000 and then p3 suddenly gives 30000, meaning it should be in between p1 and p2 2012-07-05T11:11:24 *** mcstar has joined #aichallenge 2012-07-05T11:12:11 Hello. 2012-07-05T11:13:19 You there? 2012-07-05T11:15:37 planet positions are small floats, not big integers 2012-07-05T11:16:12 Even if I do 2012-07-05T11:16:19 double x = p.x(); 2012-07-05T11:16:24 console.writelin(x); 2012-07-05T11:16:30 it doesn't work :( 2012-07-05T11:16:38 .X() is the correct method 2012-07-05T11:16:55 yes, I mean .X() , not .x() 2012-07-05T11:17:10 where did you get the code? 2012-07-05T11:17:46 I wrote it myself, using the starter pack software. 2012-07-05T11:18:31 again, where did you get the code? 2012-07-05T11:19:19 http://planetwars.aichallenge.org/starter_packages.php 2012-07-05T11:23:15 http://pastebin.com/pJG12MyQ Here is the code of the AI (excluding the generic main function) 2012-07-05T11:23:49 im dont know c#, not sure what it calls when you do Planet p = pw.GetPlanet(1); 2012-07-05T11:24:05 could you put the whole thing in 1 expression? 2012-07-05T11:24:17 it just returns the Planet instance with that ID. 2012-07-05T11:24:23 Console.WriteLine(pw.GetPlanet(1).X()); 2012-07-05T11:24:28 And I tried putting it all in one sentence. 2012-07-05T11:24:29 i know 2012-07-05T11:24:33 That's what I first did :p 2012-07-05T11:24:34 but i dont know what it does with it 2012-07-05T11:25:08 where did you put the print statement? 2012-07-05T11:25:16 It just does this: return planets[planetID]; 2012-07-05T11:25:24 and I removed it there, I just added it for debugging purposes 2012-07-05T11:25:26 citiral: you dont understand me 2012-07-05T11:25:31 i see the code 2012-07-05T11:25:44 but still, i dont know how the = operator works in the language 2012-07-05T11:25:53 if you dont understand this, then you know less than me 2012-07-05T11:26:09 You mean the difference between = and ==? 2012-07-05T11:26:14 no 2012-07-05T11:26:41 btw, this challenge took place ~2 years ago 2012-07-05T11:26:59 I know, but beter late than never, I suppose. 2012-07-05T11:27:59 so, where did you put the writeline? 2012-07-05T11:28:28 I added it at the top of DoTurn() 2012-07-05T11:29:24 add it to PlanetWars.cs after line 270 2012-07-05T11:29:52 just the compact one, possibly with some formatting to see the coordinates of the planets being parsed 2012-07-05T11:32:04 *** NoxiaZ^ has joined #aichallenge 2012-07-05T11:33:30 If I add; Console.WriteLine(GetPlanet(1).X()); player 2 just crashes 2012-07-05T11:35:58 ..... 2012-07-05T11:36:06 use you head 2012-07-05T11:36:10 r 2012-07-05T11:43:08 so? 2012-07-05T11:53:48 *** sigh has quit IRC (Remote host closed the connection) 2012-07-05T12:32:26 *** kilae has joined #aichallenge 2012-07-05T12:32:27 *** kurnevsky has joined #aichallenge 2012-07-05T12:40:07 *** kurnevsky1 has joined #aichallenge 2012-07-05T12:43:49 *** kurnevsky has quit IRC (Ping timeout: 264 seconds) 2012-07-05T12:51:58 *** NoxiaZ^ has quit IRC (Ping timeout: 246 seconds) 2012-07-05T13:17:59 citiral: are you there? 2012-07-05T13:22:20 *** epicmonkey has quit IRC (Ping timeout: 245 seconds) 2012-07-05T13:39:42 Sorry, I was gone for a while. 2012-07-05T13:39:45 I'm back now. 2012-07-05T13:41:34 But I think i'm just gonna use Java, that works perfectly. 2012-07-05T13:41:59 citiral: this works too 2012-07-05T13:42:08 at least i made it work 2012-07-05T13:42:18 How? 2012-07-05T13:42:31 what i dont understand is, how did you get an output in the first place? 2012-07-05T13:43:30 I used the PlanetWarrior visualizer. That one has a log, that prints everything that is happening, so if I print to console, I can see it. 2012-07-05T13:43:53 ok, im not familiar with that 2012-07-05T13:44:15 what goes to stdout, supposed to go to the engine 2012-07-05T13:44:37 so, im not sure why would you want to output debugging info there 2012-07-05T13:44:40 *** thestinger has joined #aichallenge 2012-07-05T13:44:55 I know, so the game crashes when I print anything to the console on the end of the turn, but I just used it for quick and dirty debugging purposes. 2012-07-05T13:45:30 anyway, the engine seems to suppress the bots' stderr 2012-07-05T13:45:36 so you cant output there either 2012-07-05T13:45:47 so i wrote to a file 2012-07-05T13:46:46 That works too :p. But how did you get it to properly get the coordinates? 2012-07-05T13:47:15 i didnt do anything special 2012-07-05T13:48:09 So it might be my compiler screwing something up? 2012-07-05T13:48:28 http://pastebin.com/K4tVWkgM 2012-07-05T13:48:38 add these line appropriately 2012-07-05T13:48:41 lines* 2012-07-05T13:48:48 *** HaraKir has joined #aichallenge 2012-07-05T13:49:07 i dont think the compiler screws something up 2012-07-05T13:49:11 'Kay. 2012-07-05T13:49:13 i think you do 2012-07-05T13:49:55 mcstar: \o 2012-07-05T13:50:05 thestinger: o/ 2012-07-05T13:50:09 *** HaraKiri has quit IRC (Ping timeout: 240 seconds) 2012-07-05T13:53:01 Nope, it doesn't work. It still outputs: x: 337516,00, y: 16421,00 2012-07-05T13:54:01 citiral: what is the map file you run it with? 2012-07-05T13:54:06 im using map1.txt 2012-07-05T13:54:31 btw, what are those commas? 2012-07-05T13:54:46 x: 21.94, y: 14.28 2012-07-05T13:54:51 thats what i get 2012-07-05T13:55:06 are you on windows? 2012-07-05T13:55:10 I was running map 21. map 1 gives: x: 219369,00, y: 142767,00 2012-07-05T13:55:23 And yes, i'm on windows. I'm going to try the default visualizer. 2012-07-05T13:56:32 21.9368952907 14.2766890117 2012-07-05T13:57:10 basically, they are multiplied by 10000 2012-07-05T13:57:53 obviously, the parsing causes this 2012-07-05T13:59:02 citiral: in the windows control something change the decimal notation to use . instead of , 2012-07-05T13:59:09 Probably. Maybe because my version of windows has the digit seperation symbol set to , 2012-07-05T13:59:14 look for some locale settings 2012-07-05T13:59:22 or language and localization 2012-07-05T13:59:25 or somesuch 2012-07-05T13:59:28 I know where to change that ;p. 2012-07-05T14:00:10 x: 219369,00, y: 142767,00 2012-07-05T14:00:15 Didn't change anything. 2012-07-05T14:02:45 you probably need to login again 2012-07-05T14:03:09 and you can ofc look at the parametrication of the parse function 2012-07-05T14:04:15 I don't think I need to relog, I had trouble with the Decimal symbol before, and I didn't need a relog when I changed it. 2012-07-05T14:04:32 double.Parse(num, NumberStyles.AllowDecimalPoint) 2012-07-05T14:08:45 thestinger: whats up? 2012-07-05T14:08:53 ntm 2012-07-05T14:09:08 Nah, it's still not working. 2012-07-05T14:09:37 install mono 2012-07-05T14:11:35 Fuck, that download is going to take half an hour. -_- 2012-07-05T14:12:31 But I'm gonna go and throw my head against a wall or something. I'll try if it works on another pc tommorrow or so. 2012-07-05T14:14:06 typical windozer's attitude 2012-07-05T14:15:17 You're welcome. :D 2012-07-05T14:18:11 *** citiral has quit IRC (Quit: Page closed) 2012-07-05T14:19:40 thestinger: my system shut down today because of overheating 2012-07-05T14:19:48 i was building something on both cores 2012-07-05T14:19:58 temperature was around 125C 2012-07-05T14:20:10 and once it just powered down 2012-07-05T14:21:21 anyway, using the powersave governor since then 2012-07-05T14:21:41 doesn't that just underclock it? :\ 2012-07-05T14:22:00 mcstar: laptop, I'm guessing? 2012-07-05T14:22:03 run on the lowest clock/voltage 2012-07-05T14:22:07 maybe something is wrong with fan control 2012-07-05T14:22:08 runs* 2012-07-05T14:22:12 no, desktop 2012-07-05T14:22:17 oh 2012-07-05T14:22:20 weird then 2012-07-05T14:22:23 fans were working 2012-07-05T14:22:29 it just damn hot these days 2012-07-05T14:22:31 its* 2012-07-05T14:38:11 *** HaraKir is now known as HaraKiri 2012-07-05T15:06:47 *** Accoun has quit IRC () 2012-07-05T15:07:28 *** epicmonkey has joined #aichallenge 2012-07-05T15:25:37 thestinger: haha, i changed the format from English to Hungarian, and .net failed to parse a float from a string 2012-07-05T15:25:40 how lame is that 2012-07-05T15:26:11 lol 2012-07-05T15:26:16 now i changed to italian 2012-07-05T15:26:23 and ignores the . completely 2012-07-05T15:26:59 change it to turkish and it might not even run :P 2012-07-05T15:27:12 same as italian 2012-07-05T15:27:39 *** cyphase has quit IRC (Ping timeout: 240 seconds) 2012-07-05T15:28:46 "integer".upper() -> İNTEGER 2012-07-05T15:28:59 "INTEGER".lower() -> ınteger 2012-07-05T15:28:59 whats that? 2012-07-05T15:29:02 turkish 2012-07-05T15:29:18 what system? 2012-07-05T15:29:41 os/language i mean 2012-07-05T15:29:52 python 2012-07-05T15:29:55 any OS with turkish 2012-07-05T15:30:01 https://en.wikipedia.org/wiki/Turkish_dotted_and_dotless_I 2012-07-05T15:30:15 mcstar: or with other programs, it's a common "bug" 2012-07-05T15:30:18 i dont get why would the characters change 2012-07-05T15:30:35 the input was ascii 2012-07-05T15:31:11 because that's how locales work 2012-07-05T15:31:17 they change sorting order and lots of things 2012-07-05T15:31:21 ok 2012-07-05T15:31:22 b"integer".upper() would be the same 2012-07-05T15:31:27 but i dont udnerstand this 2012-07-05T15:31:38 this obviously counter intuitive and sucks 2012-07-05T15:31:46 unicode sucks 2012-07-05T15:32:01 but it sucks because humans suck and came up with all these horrible languages 2012-07-05T15:32:06 its a codetable, how can it suck? 2012-07-05T15:32:11 unicode is pretty much as good as it can be to get the job done 2012-07-05T15:32:15 mcstar: it's not just a code table 2012-07-05T15:32:19 code point != character 2012-07-05T15:32:34 a character can be made of 10 code points 2012-07-05T15:32:50 *** Accoun has joined #aichallenge 2012-07-05T15:32:52 python strings are code points, not characters 2012-07-05T15:32:56 same in most other languages 2012-07-05T15:33:02 so essentially, indexing them is useless 2012-07-05T15:33:03 what is a code point? 2012-07-05T15:33:19 "abc"[0] -> "a" 2012-07-05T15:33:26 that's indexing code points, not characters 2012-07-05T15:33:29 a code point is just a unicode unit 2012-07-05T15:33:39 https://en.wikipedia.org/wiki/Code_point 2012-07-05T15:33:53 utf-32 is just code points, but it doesn't mean you can just index it easily 2012-07-05T15:34:33 mcstar: for example, lots of characters cannot be represented by one code point 2012-07-05T15:34:42 and lots of characters have _many_ ways to represent them 2012-07-05T15:35:03 a == b -> False does not mean the strings are not 'equal' in the true sense (same characters) 2012-07-05T15:35:12 they could just use a different representation of the same characters 2012-07-05T15:35:14 it's a mess 2012-07-05T15:35:52 a 'grapheme' is the unicode unit for an actual visible character 2012-07-05T15:35:57 but that varies per locale 2012-07-05T15:36:18 so this is some overlapping indexing scheme? 2012-07-05T15:36:25 well, sort of 2012-07-05T15:36:42 mcstar: so at it's core, unicode is a 32-bit space indexed by code points 2012-07-05T15:36:46 except, language is not that simple 2012-07-05T15:36:52 you can combine these code points to make characters 2012-07-05T15:36:57 there are ligatures, combining characters 2012-07-05T15:37:04 there is left-to-right and right-to-left text 2012-07-05T15:37:13 it possibly needs to be embedded in other text 2012-07-05T15:37:35 mcstar: https://en.wikipedia.org/wiki/Combining_character for example 2012-07-05T15:37:52 lots of code points "a", "b", "c" are also graphemes (they're "pre-composed") 2012-07-05T15:37:54 but lots aren't 2012-07-05T15:37:54 i really dont care that much 2012-07-05T15:38:00 and ones that are pre-composed can still be combined 2012-07-05T15:38:33 i suggest you use your brainpower for more intelligent things 2012-07-05T15:39:00 or, are you planning to deliver multilingual applications in the near future? 2012-07-05T15:40:57 no :P 2012-07-05T15:41:11 human language just sucks 2012-07-05T15:41:21 thestinger: i asked 2 people of why would they use haiku 2012-07-05T15:41:22 stay far away from user-facing applications because you'll probably have to deal with it 2012-07-05T15:41:34 they reponded superficially 2012-07-05T15:41:40 i asked some deeper question 2012-07-05T15:41:44 human names are a similar clusterfuck :P 2012-07-05T15:41:44 so far no response... 2012-07-05T15:42:04 assuming people have a first and last name is a bug 2012-07-05T15:42:11 or even assuming they _have_ a name 2012-07-05T15:42:30 Welcome _! 2012-07-05T15:42:54 *** cyphase has joined #aichallenge 2012-07-05T15:42:57 names might be a pictograph and not a string 2012-07-05T15:43:15 they shouldnt use computers 2012-07-05T15:43:27 but they do :P 2012-07-05T15:43:37 btw, they probably have some prononciation, so it can be written down 2012-07-05T15:44:08 mcstar: http://www.w3.org/International/questions/qa-personal-names 2012-07-05T15:44:48 well, if you just have a single "name" field... then that's usually going to be fine 2012-07-05T15:44:59 but have "surname/forename" separate is ignorance 2012-07-05T15:45:02 lots of cultures don't have that 2012-07-05T15:45:08 *** kilae has quit IRC (Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]) 2012-07-05T15:45:58 mcstar: see, when we finally create a sentient AI it's going to do a lot of facepalming 2012-07-05T15:46:12 silly humans 2012-07-05T15:47:01 it would just conveniently launch the nukes... 2012-07-05T15:48:30 also i have 2 given names 2012-07-05T15:48:36 which is totally silly 2012-07-05T15:48:59 and it is weird, when someone's family name is a usual given name 2012-07-05T15:49:21 (fortunately, my family name is of a famous baron_ 2012-07-05T15:50:59 thestinger: i forgot your name 2012-07-05T15:51:07 dont tell me 2012-07-05T15:54:56 *** NoxiaZ^ has joined #aichallenge 2012-07-05T15:55:04 *** coeus_ has joined #aichallenge 2012-07-05T15:58:12 *** cyphase has quit IRC (Ping timeout: 248 seconds) 2012-07-05T16:02:31 *** Redgis has quit IRC (Quit: brb) 2012-07-05T16:02:46 *** Redgis has joined #aichallenge 2012-07-05T16:13:54 *** epicmonkey has quit IRC (Ping timeout: 246 seconds) 2012-07-05T16:14:43 *** cyphase has joined #aichallenge 2012-07-05T16:18:42 *** cyphase has quit IRC (Excess Flood) 2012-07-05T16:22:30 *** cyphase has joined #aichallenge 2012-07-05T16:25:50 *** cyphase has quit IRC (Excess Flood) 2012-07-05T16:29:43 *** cyphase has joined #aichallenge 2012-07-05T16:44:30 *** HaraKiri has quit IRC () 2012-07-05T16:49:21 *** kurnevsky1 has quit IRC (Quit: Leaving.) 2012-07-05T16:49:52 *** Garf has quit IRC (Quit: Make a new plan, Stan!) 2012-07-05T16:57:00 *** mceier has quit IRC (Quit: leaving) 2012-07-05T17:11:05 *** Redgis has quit IRC (Quit: brb) 2012-07-05T17:11:29 *** Redgis has joined #aichallenge 2012-07-05T17:16:54 *** AlbireoX has quit IRC (Read error: Connection reset by peer) 2012-07-05T17:18:25 *** amstan has joined #aichallenge 2012-07-05T17:18:25 *** ChanServ sets mode: +o amstan 2012-07-05T17:20:02 *** Redgis_ has joined #aichallenge 2012-07-05T17:20:36 *** Redgis has quit IRC (Quit: leaving) 2012-07-05T17:20:46 *** Redgis has joined #aichallenge 2012-07-05T17:22:04 http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ 2012-07-05T17:23:07 *** HaraKiri has joined #aichallenge 2012-07-05T17:23:51 *** redgis has joined #aichallenge 2012-07-05T17:27:00 *** AlbireoX has joined #aichallenge 2012-07-05T17:32:45 *** HaraKiri has quit IRC () 2012-07-05T17:40:47 *** redgis has quit IRC (Quit: leaving) 2012-07-05T17:41:09 *** Redgis has joined #aichallenge 2012-07-05T17:42:12 *** Redgis_ has joined #aichallenge 2012-07-05T17:43:00 *** Redgis has quit IRC (Client Quit) 2012-07-05T17:43:43 *** Redgis has joined #aichallenge 2012-07-05T17:46:49 *** mcstar has quit IRC (Quit: mcstar) 2012-07-05T18:21:59 *** NoxiaZ^ has quit IRC (Ping timeout: 246 seconds) 2012-07-05T18:29:28 *** coeus_ has quit IRC (Ping timeout: 252 seconds) 2012-07-05T18:46:45 *** cichociemno has joined #aichallenge 2012-07-05T19:19:15 *** amstan_ has joined #aichallenge 2012-07-05T19:19:15 *** ChanServ sets mode: +o amstan_ 2012-07-05T19:21:32 *** amstan is now known as amstan__ 2012-07-05T19:21:41 *** amstan_ is now known as amstan 2012-07-05T19:39:28 *** amstan has quit IRC (Quit: Konversation terminated!) 2012-07-05T19:39:30 *** amstan__ is now known as amstan 2012-07-05T19:50:31 *** amstan has quit IRC (Quit: Konversation terminated!) 2012-07-05T19:52:08 *** amstan has joined #aichallenge 2012-07-05T19:52:08 *** ChanServ sets mode: +o amstan 2012-07-05T20:14:57 *** pairofdice has quit IRC (Quit: in girum imus nocte et consumimur igni) 2012-07-05T20:34:45 *** foRei has quit IRC (Quit: Bye) 2012-07-05T21:06:43 *** antimatroid1 has joined #aichallenge 2012-07-05T21:06:44 *** antimatroid has quit IRC (Read error: Connection reset by peer) 2012-07-05T22:09:25 *** FireFly has quit IRC (Ping timeout: 265 seconds) 2012-07-05T22:14:30 *** FireFly has joined #aichallenge 2012-07-05T22:17:01 *** amstan has quit IRC (Quit: Konversation terminated!) 2012-07-05T22:29:17 *** amstan has joined #aichallenge 2012-07-05T22:29:18 *** ChanServ sets mode: +o amstan 2012-07-05T22:34:04 *** antimatroid1 has quit IRC (Read error: Connection reset by peer) 2012-07-05T22:34:10 *** antimatroid has joined #aichallenge 2012-07-05T23:12:38 *** cyphase has quit IRC (Ping timeout: 264 seconds) 2012-07-05T23:27:44 *** cyphase has joined #aichallenge