Re: futures and atoms and bears, oh my!

2014-07-14 Thread edward
Quick follow up, replacing get-and-make-move with (defn get-and-make-move [board strategy player] board) Still have the same problem: so the issue is not with that function nor any of the functions it calls (nor the strategies). Beginning to think it's my next-to-play function, which would

Re: futures and atoms and bears, oh my!

2014-07-14 Thread edward
Pretty sure the strategy isn't a problem (random-strategy picks a random move from all legal moves) and it works in the single-threaded command line version of the app. ditto all-directions which is constant: (def ^:constant all-directions "Defines the array of all possible directions from a

Re: working intellij plugin?

2014-07-14 Thread Brian Craft
That's unfortunate. I do this constantly in vim for debugging/investigation. I worked around it with in-ns from a writable file. On Monday, July 14, 2014 9:44:43 AM UTC-7, Colin Fleming wrote: > > No, there isn't, unfortunately - there are a couple of outstanding issues > about this. IntelliJ ha

Re: futures and atoms and bears, oh my!

2014-07-14 Thread Gary Johnson
Looking at this code without further knowledge of the strategy function, my first guess is simply that your strategy function may not be returning a result which satisfies the valid-move? and legal-move? predicates thus throwing you into an infinite loop. Possibly the printf is being suppressed

Re: working intellij plugin?

2014-07-14 Thread Colin Fleming
No, there isn't, unfortunately - there are a couple of outstanding issues about this. IntelliJ has a fairly strict notion of files' origin, and it doesn't permit the concept of editing files that it won't be able to write back later. So that one will be tricky, I'll have to copy the file content to

Re: [ANN] Quil 2.2.0: ClojureScript!

2014-07-14 Thread adriaan . sticker
Nice work! You guys really do some cool stuff. I will definitly play with this in the future. I used quil in the past but was put off by its non-functional implimentation but this seems to be resolved now :) quil in the browser also seems supercool! Im wondering if it would play nicely with br

Writing games in Clojure using Kilvish Game Engine

2014-07-14 Thread Divyansh Prakash
Kilvish is a simple, lightweight Game Engine that I've been working on, that is written as an abstraction over awt/swing and is intended for absolute beginners. There's an example that comes bundled with it (BricksNBall

Re: working intellij plugin?

2014-07-14 Thread Brian Craft
Cool, got it working. Is there a way to edit and evaluate a buffer loaded from a jar? Currently it has a lock icon, which I haven't found a way to turn off. On Sunday, July 13, 2014 10:41:04 PM UTC-7, Colin Fleming wrote: > > HI Brian, > > Both La Clojure and the IntelliJ Leiningen plugin are e

[ANN] Quil 2.2.0: ClojureScript!

2014-07-14 Thread Nikita Beloglazov
Happy to announce release of Quil 2.2.0. It is available on clojars: https://clojars.org/quil *ClojureScript* The main feature in this release is long-awaited support of Quil on ClojureScript! Many thanks to Maksim Karandashov , who has been working on it as part of Goog

Re: futures and atoms and bears, oh my!

2014-07-14 Thread edward
(defn get-move "Call the player's strategy function to get a move. Keep calling until a valid and legal move is returned and pass that back. There is no way to escape without the strategy returning a valid and legal move." [board strategy player] (let [[x y :as move] (strategy board

Re: futures and atoms and bears, oh my!

2014-07-14 Thread James Reeves
Could you post more of your code? If you suspect your code is stopping at the first swap!, it might be an idea to post the contents of get-and-make-move as well. - James On 14 July 2014 11:25, wrote: > So I've got something strange happening. > > I have a function (play, see below) which I spi

Re: Determine file of auxiliary test method with clojure.test?

2014-07-14 Thread Colin Fleming
So this was definitely non-obvious, but I did manage to make it work. I overrode do-report (with with-redefs since it's not dynamic) and then used the stack frame trick as Jeff suggested. I did also have to de-munge the class name since the file from the stack trace element is only the file short n

Re: working intellij plugin?

2014-07-14 Thread Colin Fleming
Well, it's sort of official now, see: http://devnet.jetbrains.com/thread/450673. Basically JetBrains are now only accepting pull requests and making minimal changes to keep the current version of La Clojure working with new IntelliJ versions - there's no active development going on (not that it has

futures and atoms and bears, oh my!

2014-07-14 Thread edward
So I've got something strange happening. I have a function (play, see below) which I spin off in a separate thread: (future (play {:black black-strategy :white white-strategy} :black)) The weird thing is whilst the first (println) in play is printed to the console, and so is a similar print f

Re: working intellij plugin?

2014-07-14 Thread Mark Derricutt
On 14 Jul 2014, at 17:40, Colin Fleming wrote: Both La Clojure and the IntelliJ Leiningen plugin are effectively discontinued in favour of Cursive. There's full instructions on how to get started here:[https://cursiveclojure.com/userguide](https://cursiveclojure.com/userguide). Let me know if

Re: [ANN] Counterclockwise 0.26.0

2014-07-14 Thread Mikera
Working great for me - many thanks from a long time Counterclockwise fan! On Thursday, 10 July 2014 21:54:07 UTC+1, Laurent PETIT wrote: > > Hello, > > Counterclockwise 0.26.0 has just been released. > > This version fixes lots of longstanding, unnerving usability issues. > > Please see the Chang