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
Richard Harrington
1c079c1fe9
added comment about acceleration tests
2013-08-12 09:50:22 -04:00
Richard Harrington
2e7415930e
wrote negative acceleration test
2013-08-12 09:47:49 -04:00
Richard Harrington
85ccf2d04c
fixed int/floating point error in robot-test
2013-08-12 09:42:24 -04:00
Richard Harrington
9cf4063603
fixed bug causing robot-step to add old pos and veloc instead of new
2013-08-12 09:42:11 -04:00
Richard Harrington
e1b69e765c
wrote positive acceleration test in robot. but kinematics now broken.
2013-08-12 00:14:44 -04:00
Richard Harrington
5a24642f3f
removed cut and pasted example text from robot-test
2013-08-12 00:14:08 -04:00
Richard Harrington
a56d210fe4
changed tick-duration so it's a parameter passed into tick-world
2013-08-12 00:13:13 -04:00
Richard Harrington
9fc3a06e7e
added 'multiplier' field to all records in register
...
multiplier is a factor by which to multiply values
being pushed from the robot brain through
a register interface to a robot field, and
likewise by which to divide values being pulled from
a robot field to the robot brain
2013-08-11 23:33:31 -04:00
Richard Harrington
50ddd8d2b7
changed all values & calculations outside the brain to floating point
...
(also added stuff to the register functions that pull and push
from the brain to the robot fields, casting to integer when
pulling, and float when pushing)
2013-08-11 23:32:58 -04:00
Richard Harrington
32eac97e0c
changed TICK_DURATION from a constant to a parameter that we pass into robot
2013-08-11 22:37:20 -04:00
Richard Harrington
af7618c7f9
added support for negative acceleration and fixed bug in robot
...
bug in robot was that we were doing the kinematic calculations
on the original robot, not the stepped one. It wasn't
causing a problem with any of the tests (even the so far
informal ones) because we weren't checking any changes
except to the kinematic info
2013-08-11 22:35:19 -04:00