Brent Yorgey
|
7354d61bd1
|
elaborate comment
|
2021-08-25 16:43:19 -05:00 |
|
Brent Yorgey
|
e85d90c6f6
|
add a comment about execution of 'run'
|
2021-08-25 16:38:29 -05:00 |
|
Brent Yorgey
|
3679dadd06
|
rename Load -> Run
|
2021-08-25 16:27:28 -05:00 |
|
Brent Yorgey
|
fc6b4493fb
|
get load working, sort of
Have to rethink things very carefully re: expressions vs commands...
|
2021-08-25 15:01:28 -05:00 |
|
Brent Yorgey
|
c2ade70afc
|
add strings and load command
Load doesn't quite seem to work yet.
Also fix a bunch of warnings.
|
2021-08-25 14:40:07 -05:00 |
|
Brent Yorgey
|
c254a62261
|
add Nop command and parse as {}
|
2021-08-25 13:23:17 -05:00 |
|
Brent Yorgey
|
c299ae1783
|
downgrade to LTS-18.6
18.7 has GHC 8.10.6, but hls doesn't suport it yet.
|
2021-08-25 13:02:32 -05:00 |
|
Brent Yorgey
|
0a8528285c
|
basic typechecker and pretty-printer
|
2021-08-25 13:02:24 -05:00 |
|
Brent Yorgey
|
8db1039849
|
get CEK machine working!
|
2021-08-25 11:08:22 -05:00 |
|
Brent Yorgey
|
842688eef1
|
fix stack.yaml
|
2021-08-25 09:21:38 -05:00 |
|
Brent Yorgey
|
c0c98b0ad1
|
WIP: redesign language with CEK machine
|
2021-08-25 08:53:53 -05:00 |
|
Brent Yorgey
|
31b1fbfa7d
|
add "around" direction keyword (as in "turn around")
|
2021-08-24 22:10:14 -05:00 |
|
Brent Yorgey
|
a94f98d585
|
cleanup
|
2021-08-24 22:10:05 -05:00 |
|
Brent Yorgey
|
a1885536d2
|
set up stack
|
2021-08-24 21:59:03 -05:00 |
|
Brent Yorgey
|
a49bed6e0a
|
Map seems a bit faster than HashMap here
|
2021-08-24 21:43:19 -05:00 |
|
Brent Yorgey
|
5a5950ba6f
|
better world handling with tile caching
Unfortunately it doesn't seem to make that much of a speed difference...
|
2021-08-24 21:35:38 -05:00 |
|
Brent Yorgey
|
3ee0b9d6b8
|
redraw world after manually moving it with arrow keys
|
2021-08-24 17:47:42 -05:00 |
|
Brent Yorgey
|
c02eb7aec4
|
formatting wibbles
|
2021-08-24 17:40:40 -05:00 |
|
Brent Yorgey
|
0e80d1bb0f
|
small fixes
|
2021-08-24 17:40:18 -05:00 |
|
Brent Yorgey
|
4c0a211658
|
ticks per second
|
2021-08-24 15:08:37 -05:00 |
|
Brent Yorgey
|
317651691a
|
cache world and only redraw when e.g. a robot moves
|
2021-08-24 06:49:45 -05:00 |
|
Brent Yorgey
|
b600b91f9e
|
world lookup does not return a new world; ability to scroll the world display
|
2021-08-24 05:42:20 -05:00 |
|
Brent Yorgey
|
222ec82d2d
|
draw centered view of the world
|
2021-08-23 22:11:38 -05:00 |
|
Brent Yorgey
|
53c18162bc
|
infinite worlds, take 1
|
2021-08-23 22:04:22 -05:00 |
|
Brent Yorgey
|
95f6ac28d4
|
factor out remaining UI + app stuff
|
2021-08-23 16:52:40 -05:00 |
|
Brent Yorgey
|
f046b2b43c
|
factor out more UI code
|
2021-08-23 16:39:56 -05:00 |
|
Brent Yorgey
|
dda0aafc93
|
factor out Swarm.Game.Resource
|
2021-08-23 16:30:41 -05:00 |
|
Brent Yorgey
|
65917c2ae4
|
split out Swarm.UI.Attr
|
2021-08-23 16:27:51 -05:00 |
|
Brent Yorgey
|
4efea30df2
|
factor out more code into separate modules
|
2021-08-23 16:24:54 -05:00 |
|
Brent Yorgey
|
319b36ace8
|
fix refactoring, split UIState out of GameState into top-level AppState
|
2021-08-23 16:13:25 -05:00 |
|
Brent Yorgey
|
9526392d26
|
WIP
|
2021-08-23 15:01:09 -05:00 |
|
Brent Yorgey
|
eb832d366c
|
refactor: split out Swarm.AST
|
2021-08-23 13:31:57 -05:00 |
|
Brent Yorgey
|
4bb87983ec
|
factor out handleREPLEvent
|
2021-08-23 13:18:08 -05:00 |
|
Brent Yorgey
|
20e55dcc7b
|
clean up .cabal a bit
|
2021-08-23 13:17:46 -05:00 |
|
Brent Yorgey
|
83a99a2295
|
new name: swarm
|
2021-08-23 11:47:04 -05:00 |
|
Brent Yorgey
|
381a49e5d6
|
refactor and add REPL history
|
2021-08-23 11:44:25 -05:00 |
|
Brent Yorgey
|
79bbf4de76
|
add repeat command
|
2021-08-22 22:02:01 -05:00 |
|
Brent Yorgey
|
7ea09880bd
|
clean up
|
2021-08-22 22:01:50 -05:00 |
|
Brent Yorgey
|
44897c6535
|
decrease delay between ticks
|
2021-08-22 22:01:38 -05:00 |
|
Brent Yorgey
|
f82b4cc071
|
build just takes a Command
|
2021-08-22 21:49:51 -05:00 |
|
Brent Yorgey
|
7fdccbbc14
|
add a bunch of stuff!
enhanced 'turn' command
blocks
build command
real-time syntax checking for REPL inputs
error message dialog for parse errors
|
2021-08-22 21:47:39 -05:00 |
|
Brent Yorgey
|
2f8e13eebe
|
add focus ring for panels
Tab key cycles the focus.
Also clean up a few warnings.
|
2021-08-22 14:20:04 -05:00 |
|
Brent Yorgey
|
7c0a2bfd75
|
test with larger, randomly generated world
|
2021-08-22 08:08:09 -05:00 |
|
Brent Yorgey
|
0c73122d2a
|
tweaks
|
2021-08-22 06:48:23 -05:00 |
|
Brent Yorgey
|
81fe71f3bb
|
draw interface with three full-size panels, and improve visuals
|
2021-08-22 06:36:56 -05:00 |
|
Brent Yorgey
|
479b10e986
|
initial exploration
|
2021-08-21 18:18:07 -05:00 |
|