summaryrefslogtreecommitdiff
path: root/vroomba-analysis
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-04-20 20:03:48 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-04-20 20:03:48 +0200
commit52ade984643c6482ccf0deeea98f7f63fa74045d (patch)
tree7fdac25e3f5cae097d7053f2d8dd284d6d49b4ee /vroomba-analysis
parent7f2d82e15459fc3d365674e3772aed6c3d443ca2 (diff)
Split oils and muds into their own lists
Now memory for one isn't affected by memory usage of the other!
Diffstat (limited to 'vroomba-analysis')
-rw-r--r--vroomba-analysis/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/vroomba-analysis/src/main.rs b/vroomba-analysis/src/main.rs
index 721064a..994e021 100644
--- a/vroomba-analysis/src/main.rs
+++ b/vroomba-analysis/src/main.rs
@@ -126,11 +126,11 @@ fn log_shortest_path(
for x in start_x..start_x + chunk_size {
let pos = Position { y, x };
- let c = if initial_state.obstacles.contains(&pos) {
+ let c = if initial_state.muds.contains(&pos) {
"O"
} else if initial_state.powerup_boosts.contains(&pos) {
">"
- } else if initial_state.finish_lines.contains(&pos) {
+ } else if x == WIDTH {
"|"
} else {
"-"