[00:08] I wrote a program once that used random numbers to create successibely better approximations to pi [00:08] got to about 4 decimals after a few hours [00:36] MSG: Remote host closed the connection [01:26] Join: flyduck joined #corewars [01:32] MSG: Quit: flyduck [05:26] Part: NorthStar left #corewars [08:45] Join: fiveop joined #corewars [09:14] Join: myndzi\ joined #corewars [09:17] MSG: Ping timeout: 240 seconds [09:51] Join: sh0ne joined #corewars [09:51] MSG: Client Quit [09:52] Join: sh0ne joined #corewars [09:52] MSG: Client Quit [09:56] Join: sh0ne joined #corewars [09:57] MSG: Client Quit [10:00] Join: sh0ne joined #corewars [10:00] MSG: Client Quit [10:02] Join: myndzi joined #corewars [10:05] MSG: Ping timeout: 240 seconds [10:19] Join: sh0ne joined #corewars [10:19] hi [13:40] MSG: Remote host closed the connection [13:51] Join: fish joined #corewars [16:24] MSG: Quit: z/ [16:48] Join: Metcalf joined #corewars [16:48] Hi :-) [17:06] 101863/32424 [17:15] or 103993/33102 [17:26] Join: ares joined #corewars [18:17] MSG: Quit: swapper swapped out [18:37] Join: Fizmo joined #corewars [18:37] hi hi [18:39] ha, nice [18:39] did you work that out on an abacus? :P [18:40] the simple way i was doing started at 3/1 [18:40] then compared it to a constant (is that cheating?) [18:40] bigger -> increase denominator, decrease numerator by denominator [18:40] smaller -> increase numerator [18:40] repeat [18:40] like i said, probably inefficient :\ [18:41] but at least it's not brute force :> [18:57] Hi Fizmo, nescience [18:58] hi hi [19:09] nescience: 93343/29712 [19:10] Simple program: [19:10] 1 pi=3.141592653589793238:best=1:b=3 [19:10] 2 a=int(b/pi) [19:10] 3 if abs(pi-b/a) 4 a=a+1 [19:10] 5 if abs(pi-b/a) 6 b=b+1:goto 2 [19:41] that's what i did first [19:41] but it skips some [19:41] thus the backtrack [19:42] actually [19:42] maybe i just messed up [19:42] i think i just messed up and the backtrack is unnecessary :P [19:42] the problem was mirc's $calc result rounds off at 6 decimals [19:42] even though while caluclating the accuracy is much greater [19:43] so i multiplied the results by 10^10 when comparing (your step 3 and 5) [19:44] MSG: Quit: ChatZilla 0.9.84 [Firefox 3.0.4/2008102920] [19:51] Mine gives the same output as you posted yesterday :-) [20:02] Join: flyduck joined #corewars [20:02] hi [20:11] Hi Flyduck [20:19] MSG: Ping timeout: 240 seconds [20:33] yeah, i realized my mistake [20:33] but what you showed, is what i first wrote [21:18] 73 lines of perl to translate a line of REDCODE to a chromosome line :O [21:24] well it could be a lot less but i did it simply and w/o obfuscation.. [21:46] MSG: Read error: Operation timed out [21:46] Join: sh0ne joined #corewars [21:47] hello [22:10] MSG: Ping timeout: 240 seconds [22:10] Join: baudchan joined #corewars [22:27] Join: johnkw joined #corewars [22:41] Join: Metcalf joined #corewars [22:41] Hi :-) [22:42] sup? [22:43] Hi baudchan [22:43] I'm just seaching for some missing Corewar stuff [22:44] I can't find a copy of the Spring and Summer 1993 issues of TCWN [22:45] ah [22:45] I am playing around with lisp ;o [22:46] :-) [22:46] I don't think I have any TCWM, otherwise I would look to see if I had a copy [22:46] There's an implementation of Corewar in lisp, but it doesn't comply to any of the standards [22:46] yeah? [22:46] idk a friend of mine is into lisp and told me to try it [22:48] http://corewar.co.uk/lindgren/corewar.txt [22:49] It's looks like the original corewar spec with the addition of SPL [22:51] yeah [23:20] MSG: Quit: Leaving [23:32] MSG: Ping timeout: 240 seconds