Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated README and changed to play 50 matches

  • Loading branch information...
commit 39d29cf9714601603cb5fe6b0e59ae17c23c841d 1 parent 2bfe1f6
Neill Alexander authored
4 .settings/ccw.repl.cmdhistory.prefs
... ... @@ -1,3 +1,3 @@
1   -#Wed Nov 16 19:54:29 GMT 2011
2   -cmdhistory=["(in-ns 'battleships.client)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill4\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.board)))" ";; Switching to battleships.board namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player625\\")\\n" "(update-player \\"player664\\" \\"another\\")" "(update-player \\"src/battleships/demo.clj\\" \\"player664\\" \\"another\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"sdf\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player686\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player686\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" ";; Loading file src/battleships/client.clj" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "*ns*" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "*ns*\\n" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"dummy\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"dummy\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player800\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5d\\" \\"player800\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(doc find-ns\\n )" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"playerasdf\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neilsdl\\" \\"player861\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"player861\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"playerasdf\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"player949\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"player1027\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n\\n" "(doc str?\\n )" "(doc string?\\n )" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(java.io.StringWriter.)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"player1525\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\n\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill4\\n\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill4\\n\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill6\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill8\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill8\\" \\"player1708\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player1697\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill8\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"player1824\\")\\n" "(\= \\"s\\" \\"s\\")" "(\= 's 's)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill3\\" \\"player1919\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(date)" "(Date.)" "(java.util.Date.)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2441\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2562\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2709\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2828\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2912\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2996\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player3090\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill8\\")\\n" "(+ 1 2)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.loader namespace" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"player595\\")" "*ns*" ";; Switching to battleships.client namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(doc defmulti\\n )" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(monkey-around)" "(monkey-around + \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around + \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around + \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around \:normal \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around \:normal +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(chaos-fn \:normal +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(UUID/randomUUID)" "(javaj.util.UUID/randomUUID)" "(java.util.UUID/randomUUID)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(chaos-fn \:rand-string +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(place-ship {})" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(place-ship {})" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(place-ship {})" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(chaos-fn \:nil +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(chaos-fn \:nil +)" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "*ns*" ";; Switching to battleships.test.monkey namespace" "(chaos-fn \:nil +)" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(chaos +)" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "*ns*" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "*ns*" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" ";; Switching to battleships.test.monkey namespace" "(chaos + 2 3)" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "*pwd*" "(File.)" "(java.io.File.)" "(java.io.File. \\".\\")" "(.. (java.io.File. \\".\\") absolutePath)" "(.. (java.io.File. \\".\\") getPath)" "(.. (java.io.File. \\".\\") getAbsolutePath)" "(test-player \\"src/battleships/demo.clj\\")" "*ns*" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/demo.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(test-player \\"src/battleships/demo.clj\\")" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(battleships.monkey/chaos)" "(test-player \\"src/battleships/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.loader namespace" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.loader namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" ";; Switching to battleships.engine namespace" "(macroexpand-1 '(attempt [\:limited-to 100 \:when true] nil))" "(macroexpand-1 '(attempt [\:limited-to 100 \:when true] nil (else (println \\"No\\"))))" "(try nil (catch Exception e))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" "(let [f (try nil (catch Exception e))])" "(let [f (try nil (catch Exception e))] f)" "(let [f (try \\"hello\\" (catch Exception e))] f)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey2\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" "(println 2)" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey2\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey3\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey4\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey4\\")" "(test-player \\"src/battleships/demo.clj\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"My Player\\" \\"http\://localhost\:3000/create\\")" "(update-player \\"src/battleships/demo.clj\\" \\"My Player\\" \\"player1023\\" \\"http\://localhost\:3000/create\\")" "(update-player \\"src/battleships/demo.clj\\" \\"My Player\\" \\"player1023\\" \\"http\://localhost\:3000/update\\")"]
  1 +#Thu Nov 17 20:29:43 GMT 2011
  2 +cmdhistory=["(in-ns 'battleships.client)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill4\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.board)))" ";; Switching to battleships.board namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player625\\")\\n" "(update-player \\"player664\\" \\"another\\")" "(update-player \\"src/battleships/demo.clj\\" \\"player664\\" \\"another\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"sdf\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player686\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player686\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" ";; Loading file src/battleships/client.clj" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "*ns*" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "*ns*\\n" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"dummy\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"dummy\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5\\" \\"player800\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill5d\\" \\"player800\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(doc find-ns\\n )" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"playerasdf\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neilsdl\\" \\"player861\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"player861\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"playerasdf\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"player949\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill\\" \\"player1027\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n\\n" "(doc str?\\n )" "(doc string?\\n )" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")\\n\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.server)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(java.io.StringWriter.)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"player1525\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\n\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill4\\n\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill4\\n\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill5\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill6\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill8\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill8\\" \\"player1708\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player1697\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill8\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"player1824\\")\\n" "(\= \\"s\\" \\"s\\")" "(\= 's 's)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill3\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill3\\" \\"player1919\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(date)" "(Date.)" "(java.util.Date.)" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2441\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2562\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2709\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2828\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2912\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player2996\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill7\\")\\n" "(update-player \\"src/battleships/demo.clj\\" \\"neill7\\" \\"player3090\\")\\n" "(submit-player \\"src/battleships/demo.clj\\" \\"neill8\\")\\n" "(+ 1 2)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.loader namespace" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"neill\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/demo.clj\\" \\"neill2\\")" "(update-player \\"src/battleships/demo.clj\\" \\"neill2\\" \\"player595\\")" "*ns*" ";; Switching to battleships.client namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(doc defmulti\\n )" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(monkey-around)" "(monkey-around + \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around + \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around + \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around \:normal \\"Hello\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(monkey-around \:normal +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(chaos-fn \:normal +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(UUID/randomUUID)" "(javaj.util.UUID/randomUUID)" "(java.util.UUID/randomUUID)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(chaos-fn \:rand-string +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(place-ship {})" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(place-ship {})" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(place-ship {})" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "(chaos-fn \:nil +)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(chaos-fn \:nil +)" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "*ns*" ";; Switching to battleships.test.monkey namespace" "(chaos-fn \:nil +)" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" ";; Switching to battleships.test.monkey namespace" "(chaos +)" ";; Switching to battleships.client namespace" "(test-player \\"test/battleships/test/monkey.clj\\")" "*ns*" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "*ns*" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.test.monkey)))" "(test-player \\"test/battleships/test/monkey.clj\\")" ";; Switching to battleships.test.monkey namespace" "(chaos + 2 3)" "(test-player \\"test/battleships/test/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"test/battleships/test/monkey.clj\\")" "*pwd*" "(File.)" "(java.io.File.)" "(java.io.File. \\".\\")" "(.. (java.io.File. \\".\\") absolutePath)" "(.. (java.io.File. \\".\\") getPath)" "(.. (java.io.File. \\".\\") getAbsolutePath)" "(test-player \\"src/battleships/demo.clj\\")" "*ns*" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/demo.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(test-player \\"src/battleships/demo.clj\\")" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(battleships.monkey/chaos)" "(test-player \\"src/battleships/monkey.clj\\")" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.loader namespace" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" ";; Switching to battleships.loader namespace" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(test-player \\"src/battleships/demo.clj\\")" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(test-player \\"src/battleships/monkey.clj\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.loader)))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.client)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" ";; Switching to battleships.engine namespace" "(macroexpand-1 '(attempt [\:limited-to 100 \:when true] nil))" "(macroexpand-1 '(attempt [\:limited-to 100 \:when true] nil (else (println \\"No\\"))))" "(try nil (catch Exception e))" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" "(let [f (try nil (catch Exception e))])" "(let [f (try nil (catch Exception e))] f)" "(let [f (try \\"hello\\" (catch Exception e))] f)" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" ";; Switching to battleships.client namespace" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey2\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.engine)))" "(println 2)" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey2\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey3\\")" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey4\\")" "(ccw.debug.serverrepl/with-exception-serialization (clojure.core/binding [clojure.core/*compile-path* \\"classes\\"] (clojure.core/compile 'battleships.monkey)))" "(submit-player \\"src/battleships/monkey.clj\\" \\"monkey4\\")" "(test-player \\"src/battleships/demo.clj\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"My Player\\" \\"http\://localhost\:3000/create\\")" "(update-player \\"src/battleships/demo.clj\\" \\"My Player\\" \\"player1023\\" \\"http\://localhost\:3000/create\\")" "(update-player \\"src/battleships/demo.clj\\" \\"My Player\\" \\"player1023\\" \\"http\://localhost\:3000/update\\")" ";; Switching to battleships.client namespace" "(test-player \\"src/battleships/demo.clj\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"My Awesome Player\\" \\"http\://localhost\:3000/create\\")" "(update-player \\"src/battleships/demo.clj\\" \\"My Awesome Player\\" \\"player780\\" \\"http\://localhost\:3000/update\\")" "(submit-player \\"src/battleships/demo.clj\\" \\"My Awesome Player\\" \\"http\://localhost\:3000/create\\")" "(update-player \\"src/battleships/demo.clj\\" \\"My Awesome Player\\" \\"player809\\" \\"http\://localhost\:3000/update\\")"]
3 3 eclipse.preferences.version=1
179 README
... ... @@ -1,179 +0,0 @@
1   -# battleships
2   -
3   -An implementation of the game Battleships in Clojure.
4   -This is a toy project to do some practice.
5   -
6   -## Usage
7   -
8   -$ lein trampoline run
9   -cpu1 = , ships sunk = []
10   -cpu2 = , ships sunk = []
11   -cpu1 E2 = :miss, ships sunk = []
12   -cpu2 C7 = :miss, ships sunk = []
13   -cpu1 G7 = :miss, ships sunk = []
14   -cpu2 H10 = :miss, ships sunk = []
15   -cpu1 E6 = :miss, ships sunk = []
16   -cpu2 F8 = :miss, ships sunk = []
17   -cpu1 J7 = :hit, ships sunk = []
18   -cpu2 D3 = :miss, ships sunk = []
19   -cpu1 H6 = :hit, ships sunk = []
20   -cpu2 B9 = :miss, ships sunk = []
21   -cpu1 J5 = :miss, ships sunk = []
22   -cpu2 H4 = :miss, ships sunk = []
23   -cpu1 B3 = :miss, ships sunk = []
24   -cpu2 F6 = :miss, ships sunk = []
25   -cpu1 I7 = :miss, ships sunk = []
26   -cpu2 B4 = :miss, ships sunk = []
27   -cpu1 E10 = :miss, ships sunk = []
28   -cpu2 I6 = :hit, ships sunk = []
29   -cpu1 G5 = :miss, ships sunk = []
30   -cpu2 E5 = :miss, ships sunk = []
31   -cpu1 C7 = :hit, ships sunk = []
32   -cpu2 F10 = :miss, ships sunk = []
33   -cpu1 F4 = :miss, ships sunk = []
34   -cpu2 B3 = :miss, ships sunk = []
35   -cpu1 J3 = :miss, ships sunk = []
36   -cpu2 C1 = :miss, ships sunk = []
37   -cpu1 F2 = :miss, ships sunk = []
38   -cpu2 G7 = :miss, ships sunk = []
39   -cpu1 F5 = :miss, ships sunk = []
40   -cpu2 F5 = :miss, ships sunk = []
41   -cpu1 J1 = :miss, ships sunk = []
42   -cpu2 C3 = :miss, ships sunk = []
43   -cpu1 C10 = :miss, ships sunk = []
44   -cpu2 A2 = :miss, ships sunk = []
45   -cpu1 H4 = :miss, ships sunk = []
46   -cpu2 A1 = :miss, ships sunk = []
47   -cpu1 D10 = :miss, ships sunk = []
48   -cpu2 H2 = :hit, ships sunk = []
49   -cpu1 A9 = :hit, ships sunk = []
50   -cpu2 D2 = :hit, ships sunk = []
51   -cpu1 D2 = :miss, ships sunk = []
52   -cpu2 E4 = :miss, ships sunk = []
53   -cpu1 G9 = :miss, ships sunk = []
54   -cpu2 A5 = :miss, ships sunk = []
55   -cpu1 I2 = :hit, ships sunk = []
56   -cpu2 H9 = :miss, ships sunk = []
57   -cpu1 H1 = :miss, ships sunk = []
58   -cpu2 F4 = :miss, ships sunk = []
59   -cpu1 F6 = :miss, ships sunk = []
60   -cpu2 E6 = :miss, ships sunk = []
61   -cpu1 J6 = :miss, ships sunk = []
62   -cpu2 C8 = :miss, ships sunk = []
63   -cpu1 E9 = :hit, ships sunk = []
64   -cpu2 A10 = :miss, ships sunk = []
65   -cpu1 C6 = :miss, ships sunk = []
66   -cpu2 C5 = :miss, ships sunk = []
67   -cpu1 E3 = :miss, ships sunk = []
68   -cpu2 G2 = :hit, ships sunk = []
69   -cpu1 D6 = :miss, ships sunk = []
70   -cpu2 J1 = :hit, ships sunk = []
71   -cpu1 I1 = :miss, ships sunk = []
72   -cpu2 I3 = :hit, ships sunk = []
73   -cpu1 A5 = :miss, ships sunk = []
74   -cpu2 E2 = :hit, ships sunk = []
75   -cpu1 G4 = :miss, ships sunk = []
76   -cpu2 J5 = :miss, ships sunk = []
77   -cpu1 H3 = :miss, ships sunk = []
78   -cpu2 B10 = :miss, ships sunk = []
79   -cpu1 A3 = :miss, ships sunk = []
80   -cpu2 A6 = :miss, ships sunk = []
81   -cpu1 I6 = :miss, ships sunk = []
82   -cpu2 A7 = :miss, ships sunk = []
83   -cpu1 E8 = :miss, ships sunk = []
84   -cpu2 B7 = :miss, ships sunk = []
85   -cpu1 B9 = :hit, ships sunk = []
86   -cpu2 H7 = :miss, ships sunk = []
87   -cpu1 F7 = :miss, ships sunk = []
88   -cpu2 I7 = :miss, ships sunk = []
89   -cpu1 E1 = :miss, ships sunk = []
90   -cpu2 J4 = :miss, ships sunk = []
91   -cpu1 A10 = :miss, ships sunk = []
92   -cpu2 H1 = :miss, ships sunk = []
93   -cpu1 I9 = :miss, ships sunk = []
94   -cpu2 B2 = :miss, ships sunk = []
95   -cpu1 J9 = :miss, ships sunk = []
96   -cpu2 A3 = :miss, ships sunk = []
97   -cpu1 B2 = :miss, ships sunk = []
98   -cpu2 C4 = :miss, ships sunk = []
99   -cpu1 H2 = :hit, ships sunk = []
100   -cpu2 J8 = :miss, ships sunk = []
101   -cpu1 E5 = :miss, ships sunk = []
102   -cpu2 E7 = :miss, ships sunk = []
103   -cpu1 D8 = :miss, ships sunk = []
104   -cpu2 H8 = :miss, ships sunk = []
105   -cpu1 C1 = :miss, ships sunk = []
106   -cpu2 C2 = :miss, ships sunk = []
107   -cpu1 I8 = :miss, ships sunk = []
108   -cpu2 J6 = :miss, ships sunk = []
109   -cpu1 A6 = :miss, ships sunk = []
110   -cpu2 D8 = :hit, ships sunk = []
111   -cpu1 D7 = :miss, ships sunk = []
112   -cpu2 I9 = :miss, ships sunk = []
113   -cpu1 A2 = :miss, ships sunk = []
114   -cpu2 F3 = :miss, ships sunk = []
115   -cpu1 B8 = :miss, ships sunk = []
116   -cpu2 B5 = :miss, ships sunk = []
117   -cpu1 E7 = :miss, ships sunk = []
118   -cpu2 G9 = :miss, ships sunk = []
119   -cpu1 C8 = :miss, ships sunk = []
120   -cpu2 C6 = :miss, ships sunk = []
121   -cpu1 I10 = :miss, ships sunk = []
122   -cpu2 D9 = :hit, ships sunk = []
123   -cpu1 A1 = :miss, ships sunk = []
124   -cpu2 G1 = :miss, ships sunk = []
125   -cpu1 G1 = :miss, ships sunk = []
126   -cpu2 E8 = :miss, ships sunk = []
127   -cpu1 G3 = :miss, ships sunk = []
128   -cpu2 J7 = :miss, ships sunk = []
129   -cpu1 A7 = :hit, ships sunk = []
130   -cpu2 C10 = :miss, ships sunk = []
131   -cpu1 H9 = :hit, ships sunk = []
132   -cpu2 I8 = :miss, ships sunk = []
133   -cpu1 D4 = :miss, ships sunk = []
134   -cpu2 G5 = :miss, ships sunk = []
135   -cpu1 F8 = :miss, ships sunk = []
136   -cpu2 D1 = :miss, ships sunk = []
137   -cpu1 D1 = :miss, ships sunk = []
138   -cpu2 H3 = :miss, ships sunk = []
139   -cpu1 F3 = :miss, ships sunk = []
140   -cpu2 B6 = :miss, ships sunk = []
141   -cpu1 B1 = :miss, ships sunk = []
142   -cpu2 B1 = :miss, ships sunk = []
143   -cpu1 B5 = :miss, ships sunk = []
144   -cpu2 J2 = :hit, ships sunk = []
145   -cpu1 D3 = :miss, ships sunk = []
146   -cpu2 A9 = :miss, ships sunk = []
147   -cpu1 H8 = :hit, ships sunk = []
148   -cpu2 A8 = :miss, ships sunk = []
149   -cpu1 J4 = :miss, ships sunk = []
150   -cpu2 I1 = :miss, ships sunk = []
151   -cpu1 G6 = :miss, ships sunk = []
152   -cpu2 E9 = :hit, ships sunk = []
153   -cpu1 F10 = :miss, ships sunk = []
154   -cpu2 D7 = :submarine, ships sunk = [:submarine]
155   -cpu1 F9 = :miss, ships sunk = []
156   -cpu2 E10 = :patrol-boat, ships sunk = [:submarine :patrol-boat]
157   -cpu1 C2 = :miss, ships sunk = []
158   -cpu2 G8 = :miss, ships sunk = [:submarine :patrol-boat]
159   -cpu1 D9 = :hit, ships sunk = []
160   -cpu2 D6 = :miss, ships sunk = [:submarine :patrol-boat]
161   -cpu1 B6 = :miss, ships sunk = []
162   -cpu2 J3 = :destroyer, ships sunk = [:submarine :patrol-boat :destroyer]
163   -cpu1 J8 = :patrol-boat, ships sunk = [:patrol-boat]
164   -cpu2 F2 = :aircraft-carrier, ships sunk = [:submarine :patrol-boat :destroyer :aircraft-carrier]
165   -cpu1 C9 = :aircraft-carrier, ships sunk = [:patrol-boat :aircraft-carrier]
166   -cpu2 F7 = :miss, ships sunk = [:submarine :patrol-boat :destroyer :aircraft-carrier]
167   -cpu1 B4 = :miss, ships sunk = [:patrol-boat :aircraft-carrier]
168   -cpu2 H5 = :miss, ships sunk = [:submarine :patrol-boat :destroyer :aircraft-carrier]
169   -cpu1 F1 = :miss, ships sunk = [:patrol-boat :aircraft-carrier]
170   -cpu2 I4 = :hit, ships sunk = [:submarine :patrol-boat :destroyer :aircraft-carrier]
171   -cpu2 I5 = :battleship, ships sunk = [:submarine :patrol-boat :destroyer :aircraft-carrier :battleship]
172   -cpu2 won in 81 shots!
173   -cpu1 lost!
174   -
175   -## License
176   -
177   -Copyright (C) 2011 FIXME
178   -
179   -Distributed under the Eclipse Public License, the same as Clojure.
71 README.textile
Source Rendered
... ... @@ -0,0 +1,71 @@
  1 +h1. battleships
  2 +
  3 +This project consists of 2 parts:
  4 +
  5 +# A server, using Ring and Compojure, which hosts games of battleships.
  6 +# A client, which is used to submit players to the server.
  7 +
  8 +I had an idea that we could use something like this in the regular Clojure programming dojo I attend. I wanted something that would enable people to get started coding quickly,
  9 +and that would provide feedback, and hence motivation, to continue writing code. Quite often I find at the dojo, there is only enough time to get something started and write
  10 +a little bit of code. I thought this might help by providing a starting point.
  11 +
  12 +The idea is that teams will take the demo.clj code and modify that to play a game of battleships. To do so there are 2 functions that need to be implemented:
  13 +
  14 +<pre>
  15 +<code>
  16 +(defn place-ship [ship])
  17 +
  18 +(defn next-shot [context opponent-context])
  19 +</code>
  20 +</pre>
  21 +
  22 +See demo.clj for more information.
  23 +
  24 +h2. Usage
  25 +
  26 +h3. Starting the Server
  27 +
  28 +<code>lein ring server</code>
  29 +
  30 +h3. Testing a Player
  31 +
  32 +Write your player and then, from the battleships.client namespace do:
  33 +
  34 +<code>
  35 +=> (test-player "src/battleships/demo.clj")
  36 +cpu E1 = :patrol-boat, ships sunk = [:aircraft-carrier :submarine :destroyer :battleship :patrol-boat]
  37 +cpu won in 98 shots!
  38 +Test Player lost!
  39 +</code>
  40 +
  41 +h3. Submitting a Player
  42 +
  43 +Once you are happy with your player, submit as follows:
  44 +
  45 +<code>
  46 +=> (submit-player "src/battleships/demo.clj" "My Awesome Player" "http://localhost:3000/create")
  47 +Submitting to http://localhost:3000/create
  48 +{:status 200, :headers {"date" "Thu, 17 Nov 2011 20:26:45 GMT", "content-type" "text/html; charset=utf-8", "connection" "close", "server" "Jetty(6.1.25)"}, :body "player780"}
  49 +</code>
  50 +
  51 +The body contains the namespace that was created for the player on the server. Now, if you browse to the server, you will see your player listed, and the score from having
  52 +played against the computer.
  53 +
  54 +h3. Updating a Player
  55 +
  56 +If you want to update a player, do this - note that you need the namespace that was returned when you created the first player:
  57 +
  58 +<code>
  59 +=> (update-player "src/battleships/demo.clj" "My Awesome Player" "player809" "http://localhost:3000/update")
  60 +Submitting to http://localhost:3000/update
  61 +{:status 200, :headers {"date" "Thu, 17 Nov 2011 20:29:42 GMT", "content-type" "text/html; charset=utf-8", "connection" "close", "server" "Jetty(6.1.25)"}, :body "player809"}
  62 +</code>
  63 +
  64 +There is probably no point in updating a player, since none of the matches will be replayed. From the point of view of a competition, creating a new player each time
  65 +is probably a better strategy.
  66 +
  67 +h2. License
  68 +
  69 +Copyright (C) 2011 Neill Alexander
  70 +
  71 +Distributed under the Eclipse Public License, the same as Clojure.
1  battleships.todo
... ... @@ -1,6 +1,5 @@
1 1 Mandatory:
2 2 - Write up a README for use at a dojo
3   - Maybe just put that into the demo.clj
4 3 - Add a note about the requirement to install the ~/.java.policy file
5 4 '''
6 5 grant {
2  src/battleships/server.clj
@@ -147,7 +147,7 @@
147 147 [player-ns nm code]
148 148 (let [player (loader/make-player player-ns nm)]
149 149 (register-player! player player-ns code)
150   - (async-play-all-outstanding-games 10)
  150 + (async-play-all-outstanding-games 25)
151 151 (str player-ns)))
152 152
153 153 ;; This is used when a new player is added.

0 comments on commit 39d29cf

Please sign in to comment.
Something went wrong with that request. Please try again.