Commit Graph

38 Commits

Author SHA1 Message Date
fbf3b376c6 unfold neighbor functions to gain some speed 2022-05-05 21:20:08 +02:00
13fc7e9bd5 configurable width & height 2022-05-05 20:56:32 +02:00
b6d07d4d3c max threads to 48 2022-05-05 20:41:20 +02:00
8a6b686490 display time take 2022-05-05 20:40:56 +02:00
113e91dcc8 working version
remove const

no need for RwLock as we don't use mut in thread \o/
2022-05-05 15:45:57 +02:00
66bded5763 remove dead code 2022-05-05 15:25:33 +02:00
94466c7f1b propagate each human consecutively 2022-05-05 14:33:52 +02:00
6684ad2675 remove generate and add some testing 2022-05-04 14:57:55 +02:00
3a41670fea check only normal people 2022-05-03 23:17:45 +02:00
fb6e9e82b3 remove unused code 2022-05-03 23:13:48 +02:00
bdb6e60e98 cargo fmt 2022-05-03 23:12:34 +02:00
a2bbd1d431 fix test propagate_infect_cure_all 2022-05-03 23:11:23 +02:00
b456a9fb63 human: remove new() trait 2022-05-03 23:10:54 +02:00
89020eeb21 check surroundings instead 2022-05-03 23:01:48 +02:00
5affe83fdc remove line 2022-05-03 22:29:51 +02:00
7193fb2b16 use 1000 x 1000 2022-05-03 20:57:12 +02:00
57db06ff9a move asserts to tests 2022-05-03 20:49:54 +02:00
6aaede2208 fix population humans initialization 2022-05-03 20:46:55 +02:00
1e26a78e3f main: display normals too 2022-05-03 20:45:40 +02:00
87f0219b3b human: implement clone 2022-05-03 20:45:32 +02:00
dda944efff check angles 2022-05-03 18:37:53 +02:00
e6e67da8c1 remove casts and correct 0 limit situation on roll() 2022-05-03 16:52:12 +02:00
e4076cba12 take roll out of Population 2022-05-03 16:37:36 +02:00
9940608781 fixing the roll function 2022-05-03 16:36:19 +02:00
6bd0f13526 Fix test 2022-05-03 16:14:56 +02:00
813c7668f6 verification 2022-05-03 16:12:39 +02:00
d0ae725d55 check infection rate first 2022-05-03 15:53:59 +02:00
1d49b31272 add tests 2022-05-03 15:45:37 +02:00
d8e2107cce add parametrized crate 2022-05-03 15:45:11 +02:00
4b88165c31 add tests 2022-05-03 13:50:10 +02:00
5eddad02ee check dead state 2022-05-03 13:48:32 +02:00
eccb238f5e Merge pull request 'Many fixes:' (#1) from herel/RustyPropagation:fixes into master
Reviewed-on: Maxluli/RustyPropagation#1
2022-05-03 11:07:59 +00:00
4b2fdd1eb3 Use new() impl for humans 2022-05-03 13:01:26 +02:00
04a597c758 Many fixes:
- comment out dead code
- reduce number of casting
- fix loop block
2022-05-03 13:01:07 +02:00
0d0791a073 Fixed an inefficiency that I dont even want to talk about... 2022-05-03 12:52:32 +02:00
6172358600 Finished underwelming propagation 2022-05-03 11:20:36 +02:00
32f58b03cf Bare minimum with renderer 2022-04-29 13:58:45 +02:00
404c5b91a7 Started C# porting git add . NOT WORKING FOR NOW 2022-04-29 11:32:48 +02:00