Richard Harrington
cb93f22cdd
added comment about removing simulation loop, index.html
2013-08-19 20:59:29 -04:00
Richard Harrington
a40455bae7
removed TODO comment in index.html about fastForward
2013-08-19 20:55:28 -04:00
Richard Harrington
d453f5b9ad
added STARTING_FAST_FORWARD config and set it to 15
2013-08-19 20:54:24 -04:00
Richard Harrington
af2a9272e3
added keyboard event listeners for fast-forwarding
2013-08-19 20:50:04 -04:00
Richard Harrington
2671d42f0e
set it up to skip simulation worlds, for better fast forwarding
2013-08-19 20:49:32 -04:00
Richard Harrington
84ce9109c8
fixed debugStartTime parameter in index.html
2013-08-19 20:47:44 -04:00
Richard Harrington
df46da85ba
changed gameSecondsPerTick in index.html to almost exactly 1/30
2013-08-19 20:42:19 -04:00
Richard Harrington
5d03943942
added drop and dropMulti to Queue library
2013-08-19 20:40:37 -04:00
Richard Harrington
284e2b55a9
whole lot of refactoring of main.js into more coherent pieces
2013-08-19 20:05:39 -04:00
Richard Harrington
42a4d40105
removed comment
2013-08-19 13:53:47 -04:00
Richard Harrington
c205f120b7
changed robot radius
2013-08-19 13:53:33 -04:00
Richard Harrington
ee04037e79
tightened up html (cosmetic)
2013-08-19 13:28:07 -04:00
Richard Harrington
36e418efd6
separated out javascript from index.html
2013-08-19 13:27:54 -04:00
Richard Harrington
8000fdabea
separated out css from index.html
2013-08-19 13:26:53 -04:00
Richard Harrington
2fde950905
fixed merge conflict
2013-08-19 13:07:04 -04:00
Richard Harrington
33c32856ea
encapsulated all canvas stuff into its own object in index.html
2013-08-19 13:05:52 -04:00
Richard Harrington
1215ab5b62
rewrote comment about dropping simulation ticks, in index.html
2013-08-19 00:42:07 -04:00
Richard Harrington
de4597e363
updated readme with description of namespaces
2013-08-19 00:25:59 -04:00
Richard Harrington
420331ccd8
more work on animation in browser
...
removed some debugging statements
changed the size of the robots
added more reporting of time, animation rate and
simulation rate
2013-08-18 22:32:53 -04:00
Richard Harrington
af9e5e9317
got rid of debugging statements in handler
2013-08-18 22:27:17 -04:00
Richard Harrington
49f2f47968
got animation going in the browser -- extremely hacky and full of debugging statements
2013-08-18 21:32:13 -04:00
Richard Harrington
03ce17eb9a
got enqueuing of downloaded json worlds going
...
(fair amount of hacky debugging stuff in there now)
2013-08-18 19:58:55 -04:00
Richard Harrington
5750481e02
fixed bug in Queue.enqueueArray
2013-08-18 19:58:04 -04:00
Richard Harrington
6d429d6da0
removed initial json fetching tests from client and handler
2013-08-18 19:57:44 -04:00
Richard Harrington
31512947f0
fixed bug in my new enqueue_array function in Queue.js
2013-08-18 18:18:56 -04:00
Richard Harrington
56391578ac
removed most comments from Queue.js (easier to read without them)
2013-08-18 18:15:44 -04:00
Richard Harrington
0afb9164b0
got jquery ajax calls working
2013-08-17 17:07:01 -04:00
Richard Harrington
38d6182f15
added john resig's microtemplate thing
2013-08-17 17:06:41 -04:00
Richard Harrington
2f06e361a5
modified Queue.js library with enqueue_array method
2013-08-17 17:05:28 -04:00
Richard Harrington
6ec94986bb
added Queue.js library
2013-08-17 17:04:10 -04:00
Richard Harrington
044946ac93
got handler serving html file
2013-08-17 17:02:51 -04:00
Richard Harrington
f5af7a3724
added html hello-world
2013-08-17 17:02:19 -04:00
Richard Harrington
391792be9a
added jquery
2013-08-17 16:27:14 -04:00
Richard Harrington
689cb9d693
built 'worlds-for-browser', tied handler to it
2013-08-17 15:51:45 -04:00
Richard Harrington
e51ba68254
changed 'build-sim-worlds' to 'worlds-for-terminal', flattened data structure of results a bit
2013-08-17 15:51:10 -04:00
Richard Harrington
eccfc3fff5
added code to handler to send simulations to browser
2013-08-17 14:57:13 -04:00
Richard Harrington
295a8fc007
wrote take-drop-send function to pop n items off an agent-state
2013-08-17 14:56:20 -04:00
Richard Harrington
61a3eed9d6
changed json test
2013-08-17 01:53:35 -04:00
Richard Harrington
d567887ee6
now removing brain from all robots in sim-world construction; easier to send by json
2013-08-17 01:18:53 -04:00
Richard Harrington
db061c7c36
added report for seconds elapsed in real world
2013-08-17 01:18:18 -04:00
Richard Harrington
3111ca371a
changed seconds elapsed in game world report from float to decimal
2013-08-17 01:17:43 -04:00
Richard Harrington
659898494e
uncommented and spruced up pprinting convenience functions in core
2013-08-16 23:49:03 -04:00
Richard Harrington
5892d6ad89
made some unnecessary thunks into resolved values in core
2013-08-16 23:47:46 -04:00
Richard Harrington
534872d0a8
changed 'make-it-so' function in core so it takes fast-forward and fps parameters
2013-08-16 23:34:30 -04:00
Richard Harrington
a1df709c4f
now only stores last world in each round when building simulation
...
also did significant refactoring, including changing
variable names from 'round' to 'combined-world' before
going through the simulation-pass, and 'sim-world' afterwards.
Soon, we'll make the worlds coming out of 'sim-world' a lot less
verbose.
2013-08-16 23:26:34 -04:00
Richard Harrington
9ab14a7653
commented out convenience functions in core
2013-08-16 23:25:33 -04:00
Richard Harrington
703c1939b4
removed extraneous code from world
2013-08-16 21:55:45 -04:00
Richard Harrington
12ee2260c1
got compojure going, with a few sample routes
2013-08-16 18:09:44 -04:00
Richard Harrington
02f9659df7
fixed typo in animate
2013-08-15 16:24:09 -04:00
Richard Harrington
257b6a2495
reworked hacky sandbox stuff in core.clj, to help with animation
2013-08-15 16:22:00 -04:00