]> git.f4mnq.fr Git - cells.git/commitdiff
Moyen plus facile de dessiner des lignes
authorAmélia Coutard-Sander <git@f4mnq.fr>
Wed, 7 Jan 2026 13:38:51 +0000 (14:38 +0100)
committerAmélia Coutard-Sander <git@f4mnq.fr>
Wed, 7 Jan 2026 13:53:53 +0000 (14:53 +0100)
bin/main.ml

index 9510f086b9ccfa4de8cf156e5b4097817758192f..8c026443cd4f9c8b1d2780be2e6bef1c9c028856 100644 (file)
@@ -56,6 +56,18 @@ let inputs
           | 'q' -> { inter with x = inter.x - 1 }
           | 's' -> { inter with y = inter.y - 1 }
           | 'd' -> { inter with x = inter.x + 1 }
+          | 'Z' ->
+                  Automata.set inter.x inter.y inter.current board;
+                  { inter with y = inter.y + 1 }
+          | 'Q' ->
+                  Automata.set inter.x inter.y inter.current board;
+                  { inter with x = inter.x - 1 }
+          | 'S' ->
+                  Automata.set inter.x inter.y inter.current board;
+                  { inter with y = inter.y - 1 }
+          | 'D' ->
+                  Automata.set inter.x inter.y inter.current board;
+                  { inter with x = inter.x + 1 }
           | '\t' -> { inter with running = true }
           | _ -> inter
         else inter