[no subject]

2014-06-23 Thread Sunil S Nandihalli
Hi Everybody, I have the following lein setup. sunil@ubuntu-14:~/rabbit/rabbit-clj$ lein version Leiningen 2.4.2 on Java 1.7.0_55 OpenJDK Server VM I get the following exception when i run lein repl can somebody tell me as to what could be wrong? Exception in thread main

Re:

2014-06-23 Thread Sunil S Nandihalli
answering my own question. a closer look at the stack-trace revealed that it was a problem with vinyasa plugin which was part of the profiles.clj. Removing it fixed it. I haven't tried to get vinyasa working. thanks, Sunil. On Mon, Jun 23, 2014 at 1:35 PM, Sunil S Nandihalli

Re: Auto reloading of dependencies with cider

2014-06-23 Thread Michael Griffiths
You can also use the `cider-refresh` command, which is bound to `C-c C-x` by default. It uses tools.namespace.repl/refresh under the hood. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com

test output diffs

2014-06-23 Thread Timothy Pratley
Is there any appetite for a ticket to include diffs in core.test? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Game logic with Clojure

2014-06-23 Thread Majen Ful
Hello all, First, thank you all for your contribution and your help. I just follow Clojure's news and groups, and I'm really impressed by how this community is pleasant and helpful. Well, I am new to Clojure world, I do programming as a hobby (I'm not pro) and I don't have advanced

Re: twitter-api and streaming calls

2014-06-23 Thread Kelsey G. I.
I submitted a pull request that fixes this issue in twitter-streaming-client: https://github.com/mccraigmccraig/twitter-streaming-client/pull/2 On Tuesday, May 6, 2014 8:18:31 PM UTC-7, Andrew Fitzgerald wrote: I had someone email me today asking for a code snippet of using the java twitter

Re: Game logic with Clojure

2014-06-23 Thread Sam Ritchie
I like to hold the state of the game in a data structure, and have every function take the game state and return a new game state. Then, to persist the game you can just serialize the whole thing to disk. Here's a blackjack game I wrote a while back in that style:

Re: Game logic with Clojure

2014-06-23 Thread Reid McKenzie
Caves of Clojure (http://stevelosh.com/blog/2012/07/caves-of-clojure-01/) was an interesting blog post series which addresses some of the issues you're facing. I found that the component entity system CoC is built in was a very nice abstraction for modeling a Magic: The Gathering like game in a

Re: Game logic with Clojure

2014-06-23 Thread James Reeves
For something like a turn-based card game, you can model the game with functions like: (update state args) = new-state I'm not familiar with Samurai Sword, but I have played Bang!, which is supposedly similar. To model this in a functional language, consider how you'd describe the state of

Re: Game logic with Clojure

2014-06-23 Thread Majen Ful
Thank you all ! @James, I confirm it is like Bang! (same editor), but I prefer this ;-) So in fact I don't have to have a state to update, instead, I just pass my init state to functions/loops to get a new one. Le lundi 23 juin 2014 21:54:56 UTC+2, Majen Ful a écrit : Hello all, First,

Re: Game logic with Clojure

2014-06-23 Thread James Reeves
I typically keep my state in an atom, and use swap! to update it. This means I can decouple rendering and other things from the actual game logic. However, depending on how your application functions, you might just be able to keep the state in a loop. - James On 23 June 2014 21:53, Majen Ful

Re: Game logic with Clojure

2014-06-23 Thread Mark Mandel
If you are looking for another example, here is my pong clone with play-clj, and my own Entity Component system, brute. https://github.com/markmandel/brute-play-pong I also use an atom that I reset! on each game loop. Because it's integrated with play-clj (and therefore libgdx) there is a bit

Re: Game logic with Clojure

2014-06-23 Thread Atamert Ölçgen
+1 for Caves of Clojure. I would also take a look at these blog posts: http://t-machine.org/index.php/2007/09/03/entity-systems-are-the-future-of-mmog-development-part-1/ Not Clojure specific, but I think they're good for getting the general concepts. On Mon, Jun 23, 2014 at 11:37 PM, Mark

Re: Game logic with Clojure

2014-06-23 Thread George Oliver
On Monday, June 23, 2014 12:54:56 PM UTC-7, Majen Ful wrote: Could you give me some tips and lead me to the right things to do. There's also this often referenced series of posts that might help, http://prog21.dadgum.com/23.html -- You received this message because you are subscribed

Re: Auto reloading of dependencies with cider

2014-06-23 Thread Mark P
Thanks Ralf. This looks like exactly what I need. On Monday, June 23, 2014 2:43:41 PM UTC+9:30, Ralf Schmitt wrote: Mark P pier...@gmail.com javascript: writes: What do other people generally do here? I suspect there is a commandline way of getting lein to do this for me. Is that

Re: Auto reloading of dependencies with cider

2014-06-23 Thread Mark P
Thanks Michael. With a bit of updating and configuring I seem to have this working For the benefit of other readers of this thread... to get C-c C-x to work, it seems you still need to configure things properly for tools.namespace... see the links in Ralf's post above for details on this.