Re: How to use Clojure with Robocode

2010-03-19 Thread Jeff Foster
Could you post the source code? On Mar 19, 7:56 am, ubolonton wrote: > Hi, > > Has anyone been able to use Clojure with Robocode? > I've followed thishttp://www.fatvat.co.uk/2009/05/clojure-and-robocode.html > but got the error > > Round 1 initializing.. > Let the games begin! > java.lang.Excepti

Re: loneclojurian at ICFP programming contest

2009-06-30 Thread Jeff Foster
I looked at the ICFP Contest too. I didn't even get as far as solving the first problem, but I did implement a virtual machine that appeared to work. I really enjoyed the coding, though I didn't get very far with the physics! I tried a couple of approaches but settling on the functional side.

Re: (Simple) Neural Net Simulation

2009-06-09 Thread Jeff Foster
I'm playing around with neural networks and went for a functional approach. There's some code at http://github.com/fffej/ClojureProjects/tree/master in the neural-networks directory. See http://www.fatvat.co.uk/2009/06/back-propagation-algorithm-in-clojure.html for some explanation. Lack of mu

re-find

2009-01-07 Thread Jeff Foster
I'm not understanding re-find. (re-find #"bar" "bar") => "bar" whereas (re-find #"(foo)|(bar)" "foo bar") => ["foo" "foo" nil] Why does one return a vector and one just the result directly? Looking at the code, re-find uses re-groups which explicitly says that it either returns a vector or a