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
Richard Harrington
a9456eff09
added comments to :moving-to-spot test program
2013-08-15 16:20:11 -04:00
Richard Harrington
39e14197f5
added animate module. works.
2013-08-15 15:37:18 -04:00
Richard Harrington
45f6947ea8
moved constants out into their own file
2013-08-15 11:31:46 -04:00
Richard Harrington
17cd71f758
removed world helper functions made extraneous by lack of tick-duration variable
2013-08-14 23:15:19 -04:00
Richard Harrington
69ad5de274
fixed tests for robot-test so they use dynamic *GAME-SECONDS-PER-TICK*
2013-08-14 23:13:49 -04:00
Richard Harrington
cd1a9fabbd
removed passing of tick-duration down into brain and robot
...
replaced with dynamic "constant" *GAME-SECONDS-PER-TICK*,
so we can alter it during tests
2013-08-14 23:12:50 -04:00
Richard Harrington
b3814cb459
fixed brain-test to conform to new format of test-programs programs
2013-08-14 17:21:18 -04:00
Richard Harrington
2bf499766b
changed damage from '0 to 100' to '100 to 0' -- i.e., it should be called health instead
2013-08-14 17:20:47 -04:00
Richard Harrington
9e8285e86f
added pprint to core
2013-08-14 16:37:35 -04:00
Richard Harrington
7d60b43a8b
altered some todo comments in robot
2013-08-14 16:37:05 -04:00
Richard Harrington
1ad383a993
added line to display seconds elapsed in game world (to text display)
2013-08-14 08:16:53 -04:00
Richard Harrington
36f8dcef4e
added fast forward feature to display
2013-08-14 08:16:33 -04:00
Richard Harrington
20f71db62f
got :moving-to-spot test working, refactored test-programs a bit
2013-08-14 00:16:06 -04:00
Richard Harrington
166d7d3661
added some attributes to be printed during animation
2013-08-13 16:49:02 -04:00
Richard Harrington
aaccabac56
got animation timing working
2013-08-13 16:48:22 -04:00
Richard Harrington
eda0ba43fd
formatted lines in display to 1 decimal point
2013-08-13 14:54:06 -04:00
Richard Harrington
af36cdebb6
fixed robot :pos-x and :pos-y generation, so they're floats
2013-08-13 14:53:34 -04:00
Richard Harrington
3ba9aee7c6
spruced up display of frames per second in animate
2013-08-12 17:52:07 -04:00
Richard Harrington
02eb04cae0
altered name and docstring for the function tying a world sequence to its tick-time
2013-08-12 17:44:46 -04:00
Richard Harrington
fdd79474d5
fixed rounding error causing some robots not to display in the text-output arena
2013-08-12 17:44:04 -04:00
Richard Harrington
c5ff1f4a6e
removed :icon from robot attributes; not related to anything except display
2013-08-12 17:24:16 -04:00
Richard Harrington
4c6638a6a3
got a little reporting of position going for animation screen
2013-08-12 16:38:08 -04:00
Richard Harrington
f90b7c37a0
got terminal animation almost working, without being able to set frame rate
2013-08-12 16:20:45 -04:00
Richard Harrington
088fbea98e
updated arena-text-grid so it works now.
2013-08-12 15:00:03 -04:00
Richard Harrington
6b573d8a9b
added back in the icon attribute for robots, currently just the char of their idx
2013-08-12 14:59:31 -04:00
Richard Harrington
e01d375bb3
made a more streamlined method of passing attributes from world to robots
2013-08-12 14:58:54 -04:00
Richard Harrington
96362ee41f
wrote SPEEDY acceleration tests to match the SPEEDX ones
2013-08-12 09:53:02 -04:00