Richard Harrington
5885ecc7b2
tmp not exactly working, but closer!
2022-08-01 10:40:11 -04:00
Richard Harrington
3768178133
start restoring compojure (not entirely working yet)
2022-08-01 10:19:24 -04:00
Richard Harrington
8923ee9ef7
standardizes routing; adds check for request method
2014-10-12 11:51:21 -04:00
Richard Harrington
ca7b2dfb4b
refactors get-programs using threading operator
2014-10-12 11:26:48 -04:00
Richard Harrington
5893e4b5e6
whitespace and other cosmetic changes
2014-10-12 11:25:32 -04:00
Frederik Andersen
595d5cde66
removed Compojure as a dependency, routing code changed
2014-10-08 18:48:49 +02:00
Richard Harrington
537d31b99b
loading gameInfo now from server, instead of hard-coding from browser
2013-08-30 00:03:43 -04:00
Richard Harrington
19260d6b67
added code to handler to return names of available programs, for display in browser
2013-08-24 08:51:27 -04:00
Richard Harrington
ca5b98f241
limited games to five robots. cuts them off silently if more than five are input
2013-08-24 08:50:33 -04:00
Richard Harrington
21cdd286b2
changed games-store in handler from agent to atom
2013-08-24 08:49:49 -04:00
Richard Harrington
feabfe3145
now allowing robot name input to be comma-separated (was just space-separated before)
2013-08-24 08:48:30 -04:00
Richard Harrington
7c53dcd8fa
fixed handling of invalid robot names (ignores them now)
2013-08-24 00:31:22 -04:00
Richard Harrington
18c3e02084
user input now determines which robots battle
2013-08-24 00:02:09 -04:00
Richard Harrington
29ba6d0700
changed names of programs (to be shorter and easier to type in requests)
2013-08-24 00:01:06 -04:00
Richard Harrington
1511a41670
changed the source code situation to be 2 shooters and 2 movers
2013-08-22 14:50:27 -04:00
Richard Harrington
1cb3d98701
added new shooter program; commented out because writing to SHOT not working
2013-08-21 19:33:01 -04:00
Richard Harrington
e02dd126c0
each new index.html request now initiates a new game instance
2013-08-20 13:25:51 -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
9b46900f9b
changed width and height to robot-range-x and robot-range-y and made
...
them constants
because technically, the robot ranges are the maximum ranges for the
centers of the robots' bodies,
so the actual extent of the arena when
displayed must be slightly larger
2013-08-20 12:10:58 -04:00
Richard Harrington
e3b879fba8
removed 'core' dependency in handler, now depends on world and browser
2013-08-20 11:51:40 -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
6d429d6da0
removed initial json fetching tests from client and handler
2013-08-18 19:57:44 -04:00
Richard Harrington
044946ac93
got handler serving html file
2013-08-17 17:02:51 -04:00
Richard Harrington
689cb9d693
built 'worlds-for-browser', tied handler to it
2013-08-17 15:51:45 -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
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