Commit Graph

88 Commits

Author SHA1 Message Date
Richard Harrington
389e42ea65 factored out helper method in robots.clj tests 2014-10-13 01:36:57 -04:00
Richard Harrington
8923ee9ef7 standardizes routing; adds check for request method 2014-10-12 11:51:21 -04:00
Richard Harrington
5893e4b5e6 whitespace and other cosmetic changes 2014-10-12 11:25:32 -04:00
Frederik Andersen
07b65ca325 test cases for handler 2014-10-08 16:00:44 +02:00
Richard Harrington
d03d64bd6a separated source programs out into regular and dev 2013-08-24 06:37:49 -04:00
Richard Harrington
36ea96826f changed 'step-' named functions to 'tick-' 2013-08-21 11:11:16 -04:00
Richard Harrington
d7d27ca9f0 moved test-programs out of test into src, renamed it src-programs
also fixed some testing bugs that were using
the old parameters for init-world
2013-08-20 12:21:09 -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
12ee2260c1 got compojure going, with a few sample routes 2013-08-16 18:09:44 -04:00
Richard Harrington
a9456eff09 added comments to :moving-to-spot test program 2013-08-15 16:20:11 -04:00
Richard Harrington
45f6947ea8 moved constants out into their own file 2013-08-15 11:31:46 -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
20f71db62f got :moving-to-spot test working, refactored test-programs a bit 2013-08-14 00:16:06 -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
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
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
317cfdc05e added comment to informal robot test file 2013-08-11 12:15:50 -04:00
Richard Harrington
f114dc57ac added repl results for kinematics tests in new robot-test file, will fix later 2013-08-10 17:09:43 -04:00
Richard Harrington
cbcf620a00 added read-write test to register-test 2013-08-10 14:41:05 -04:00
Richard Harrington
43125f0e26 added test to read-only test section of register-test
new test checks to make sure the appropriate robot field
got written to.
2013-08-10 14:40:10 -04:00
Richard Harrington
99528fe9ba added read-only-test to register-test 2013-08-10 14:29:52 -04:00
Richard Harrington
d07ab0607c added get-registers helper function to registers-test 2013-08-10 14:29:17 -04:00
Richard Harrington
d0a1933b7d set up midje (mainly for auto-testing, for the time being) 2013-08-10 14:28:17 -04:00
Richard Harrington
0b007c9b53 added random-test to register-test 2013-08-10 13:41:42 -04:00
Richard Harrington
9e61c987c3 added index/data test to register-test 2013-08-10 13:28:28 -04:00
Richard Harrington
2f85cef477 removed random and index/data tests from brain-test 2013-08-10 13:27:48 -04:00
Richard Harrington
1424d47a4c started register-test namespace, with storage-register-test 2013-08-10 13:13:40 -04:00
Richard Harrington
94cf5b3f47 added logic in assembler to distinguish between registers and labels
and thus succeeded in getting rid of the register dependency
in the assembler namespace.
2013-08-10 01:34:03 -04:00
Richard Harrington
1cf9f7e42e put test programs into their own file; altered brain-test and core.clj accordingly 2013-08-09 22:01:56 -04:00
Richard Harrington
30a1ed781b switched to system where registers are part of the brain, not the robot 2013-08-09 15:58:14 -04:00
Richard Harrington
171fe5d5b2 fixed RANDOM register, was writing to robot-field still; now writes to register itself 2013-08-09 15:57:16 -04:00
Richard Harrington
11a96e1c52 minor whitespace issue 2013-08-09 15:27:05 -04:00
Richard Harrington
3fe4444f7a ATTN: commits now contain internal info. Changed register system to
mostly an interface.

Removed :val field from all registers except storage registers & INDEX.

Some of the other registers were already quite specialized, but
the ones that weren't -- the ones that relied on :val fields in the
register -- are now just interfaces to attributes stored on the top
level of the robot.
2013-08-09 00:51:42 -04:00
Richard Harrington
382a70bd34 created register namespace, moved game_lexicom stuff into it 2013-08-07 11:36:03 -04:00
Richard Harrington
3cdc91cd73 got index/data register pairs working 2013-08-06 13:03:13 -04:00
Richard Harrington
d3b43d785e got random register test working 2013-08-06 12:49:44 -04:00
Richard Harrington
623bfea415 changed name of foundry namespace to assembler 2013-08-06 12:00:30 -04:00
Richard Harrington
54161691fa made shorter aliases (without 'robotwar.' prefix) for all namespaces 2013-08-06 11:34:51 -04:00
Richard Harrington
28efa906c2 got basic skeletons of robot and world up and running, all tests but one passing in brain-test 2013-08-05 00:26:05 -04:00
Richard Harrington
82b998246a whitespace change to brain-test 2013-08-05 00:03:43 -04:00
Richard Harrington
edf835cd02 rearranged dependencies so the register names are known only to robot, and passed in function calls to brain 2013-08-04 22:18:24 -04:00