Commit Graph

26 Commits

Author SHA1 Message Date
Richard Harrington
d03d64bd6a separated source programs out into regular and dev 2013-08-24 06:37:49 -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
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
a56d210fe4 changed tick-duration so it's a parameter passed into tick-world 2013-08-12 00:13:13 -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
d0a1933b7d set up midje (mainly for auto-testing, for the time being) 2013-08-10 14:28:17 -04:00
Richard Harrington
2f85cef477 removed random and index/data tests from brain-test 2013-08-10 13:27:48 -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
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
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
Richard Harrington
37deec17de rearranged dependencies so that all calls to foundry/assemble are made from brain/init-brain, and higher levels pass in source code to init/brain 2013-08-04 21:36:33 -04:00
Richard Harrington
1d884c5de2 got push-test (pushing to register) to work in brain-test 2013-08-03 14:21:26 -04:00
Richard Harrington
5865a9f570 moved 'get-world' functionality (allows world-finding by world-tick-idx
and robot-idx) into helper function in brains-test
2013-08-03 14:14:32 -04:00
Richard Harrington
981d2fe23b got gosub-test working 2013-08-03 14:01:53 -04:00
Richard Harrington
817a3e057d basic tests of branching and arithmetic passin, in brain-test 2013-08-03 12:30:47 -04:00
Richard Harrington
e2b4369960 continuing on apace with the gnarly refactoring (pretty much despairing of decent commit messages at this point) 2013-08-03 03:39:18 -04:00