Fun Stuff > CLIKC
A programming thread!
ankhtahr:
I think I understand how the composed search terms are supposed to work, but I'm not getting anywhere. Besides, I have a terrible headache and feel sick. I definitely need to sleep, but I mustn't before I finished this task. Damnit.
Loki:
Cannot help you there, unfortunately, except through moral support :(
pwhodges:
--- Quote from: ankhtahr on 01 Sep 2014, 01:17 ---I think I understand how the composed search terms are supposed to work, but I'm not getting anywhere.
--- End quote ---
Well, I have no idea about what framework you have available in modern programming, which may suggest or impose a particular technique; but I would have seen this as a very simple compilation problem: parse the command string into a tree structure, then walk that in reverse-Polish order doing the required tests and thus generating the answer. Or have I missed the point of where your problem lies, through being so out of date?
ankhtahr:
--- Quote from: pwhodges on 01 Sep 2014, 03:00 ---
--- Quote from: ankhtahr on 01 Sep 2014, 01:17 ---I think I understand how the composed search terms are supposed to work, but I'm not getting anywhere.
--- End quote ---
Well, I have no idea about what framework you have available in modern programming, which may suggest or impose a particular technique; but I would have seen this as a very simple compilation problem: parse the command string into a tree structure, then walk that in reverse-Polish order doing the required tests and thus generating the answer. Or have I missed the point of where your problem lies, through being so out of date?
--- End quote ---
No, not really. I just didn't really think of such a solution. I've done basically everything in this task with regular expressions, so I only thought about regular expressions here as well.
I've managed to get a tiny bit further, which should give me at least a few points more, and now I'm so tired that I'll probably leave it at that and go to bed.
My horrible code can be found here if anybody feels like torturing themselves. I started out alright, but it got messier and messier with every hour. Now it's a trainwreck.
ankhtahr:
So I'm now working on the second final task. Admittedly, I started very late (I have to be finished in 17 hours), but so far I don't see any big problems with it. It's a nice task. We have to model Conway's Game of Life with some variations. I'm considering throwing some design patterns on the task, but I don't think I really need to.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version