Commit graph

22 commits

Author SHA1 Message Date
4f2f0431d1 Document usage as a library 2021-07-23 15:33:28 +02:00
2ec11dfd6c Extract draw_world 2021-07-23 15:30:25 +02:00
b0ebb1bb08 Move get_view from main to lib 2021-07-23 15:24:44 +02:00
1892f7e9f5 Share get_world 2021-07-23 15:13:41 +02:00
9b92497c3b Fix off-by-ones at world's end 2021-07-23 15:11:06 +02:00
894ebbd736 Don't collect other agents' position for worldview
This is a huge performance improvement (drops ~90% of execution time)
with the current SimpleAgent implementation, because a SimpleAgent
that is not It will not even look at other agents' positions.
2021-07-23 10:25:28 +02:00
449644ade6 Don't remove previous agent position
It might still be used by check_move
2021-07-23 00:57:10 +02:00
637bec67f8 Put different configurations together in benchmark 2021-07-23 00:51:13 +02:00
0ff0126c39 Update readme 2021-07-22 22:48:13 +02:00
25b0004822 Add benchmark 2021-07-22 22:48:02 +02:00
6eb184c6ae Add missing move checks 2021-07-22 20:08:43 +02:00
3b1db890b7 Fix tests 2021-07-22 17:55:50 +02:00
2f06f9b0b7 Somewhat structure main.rs 2021-07-22 16:45:45 +02:00
70ad3a3bdd Add initial README 2021-07-22 16:44:16 +02:00
6294d72190 Make SimpleAgent actually hunt others 2021-07-22 16:14:34 +02:00
5e6177900e Let all agents move at the same time 2021-07-22 15:42:52 +02:00
adbf3b4e56 Implement exiting 2021-07-22 14:50:58 +02:00
62c46ce8f9 Initial view
Another two hours.
2021-07-22 14:14:18 +02:00
bfe6f615a0 Check out of bounds 2021-07-22 12:58:01 +02:00
65986a1d22 Some world testing, basic agents 2021-07-22 00:14:33 +02:00
b21806e48d Basic world 2021-07-21 23:35:01 +02:00
850e16c323 Init 2021-07-21 23:02:02 +02:00