flood

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

commit
6639f5a5c6a4e4e67590a13bab31beed632c0b03
parent
41b0ca472ce07840bf526f2ba6148a0e5d34d214
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-02-18 07:26
small tweaks

Diffstat

M flood.rs 5 ++---

1 files changed, 2 insertions, 3 deletions


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

@@ -71,8 +71,7 @@ fn set_color(c: u8) {
   71    71 fn render(map: &[u8; WIDTH * HEIGHT]) {
   72    72     for y in 0..HEIGHT {
   73    73         for x in 0..WIDTH {
   74    -1             let c = map[y * WIDTH + x];
   75    -1             set_color(c);
   -1    74             set_color(map[y * WIDTH + x]);
   76    75             print!("██");
   77    76         }
   78    77         println!("\x1b[0m");
@@ -88,7 +87,7 @@ fn render_status(step: u8) {
   88    87         print!("■\x1b[0m{} ", i + 1);
   89    88 
   90    89     }
   91    -1     println!("\x1b[0m");
   -1    90     println!("");
   92    91 
   93    92 }
   94    93