00:03:23 -!- deltab has joined. 00:03:23 -!- SamB has joined. 00:04:05 -!- Taaus has joined. 02:19:48 -!- SamB has quit (Read error: 60 (Operation timed out)). 02:36:02 -!- calamari has joined. 02:36:09 hello 03:12:44 Hello, Mr. Squid :) 04:00:53 okay.. challenge 2 :) 04:01:57 need to be able to tell whether a number is even or odd in bf 04:02:11 hrm *2 /2.. ew so slow lol 04:02:22 Why the *2 bit? 04:02:29 err got that backwards 04:02:34 should have said /2 *2 04:02:48 then you compare to the original number 04:02:57 same? even, different? odd 04:03:06 but maybe there is a faster way 04:03:24 Probably. 04:04:42 aha 04:04:47 might have something 04:04:52 could have a loop with two decrements 04:05:11 if it hits zero with one of the decs it is even.. the other? odd 04:05:15 I guess you could do something like this: "distribute" the contents of the memory cell you wish to test into two other memory cells. You then end up with either N/2 and N/2+1 or two N/2... Subtract these from each other, and you get 0 or 1. 04:05:26 You could do that too. :) 04:05:44 yeah i think it should be pretty fast 04:07:08 hehe this esoteric stuff gets scary when you start thinking in bf code 04:07:39 was showing my java instructor how to copy (add) in bf.. I think I might have freaked him out 04:08:11 anyways.. afk 04:08:13 He was awed by the elegance when compared to Java? ;) 04:08:22 LOL 04:22:02 hrm.. was messing with the subtract twice idea.. yours seems simpler and actually faster than testing for 0 twice 04:22:42 Interesting. 04:23:36 for example if it hits zero on the first one then you have to put in an if to not do the second one 04:23:46 Of course. 04:24:25 hrm.. yours has the same problem i guess 04:24:43 Yep... But I wouldn't call it a problem :) 04:26:21 We'll have to talk about it some other time, though... It's almost 6 AM here. I'm heading off to bed :) 04:27:49 cya.. thanks :) 04:28:04 Anytime :D 04:38:34 oh wait.. thats easier to fix than I first thought ! 04:42:27 and i dont even have to test for 0.. sweet! 05:28:18 -!- calamari has quit ("<=K"). 07:59:59 -!- clog has quit (ended). 08:00:00 -!- clog has joined. 13:43:39 -!- Aardappel has joined. 15:05:49 -!- Aardappel has quit (Read error: 110 (Connection timed out)). 15:13:27 -!- Aardappel has joined. 21:03:09 -!- docelic has joined. 21:03:17 -!- docelic has quit (Read error: 54 (Connection reset by peer)).