flood

Flood fill puzzle game for linux terminals
git clone https://git.ce9e.org/flood.git

commit
7417a389cdcd9ab6b0babd1f1523bf82c33b1a16
parent
0e33200cc7ca1a309cac28cecddd5424571237fd
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-02-06 08:07
render finished board

Diffstat

M flood.rs 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/flood.rs b/flood.rs

@@ -129,11 +129,11 @@ fn play(seed: u64) -> bool {
  129   129         render_status(step);
  130   130         render(&map);
  131   131         println!("");
  132    -1         let new = input_num("> ", 1, 7) - 1;
  133    -1         flood(&mut map, new);
  134   132         if map.iter().all(|x| *x == map[0]) {
  135   133             return true;
  136   134         }
   -1   135         let new = input_num("> ", 1, 7) - 1;
   -1   136         flood(&mut map, new);
  137   137     }
  138   138     return false;
  139   139 }