We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 91f69eb + 63c83c5 commit adbe583Copy full SHA for adbe583
starterAIs/starter.ml
@@ -29,7 +29,9 @@ and toString = function (* a good exemple on how you can
29
match actions *)
30
| GROW t -> Printf.sprintf "GROW %d" t
31
| COMPLETE t -> Printf.sprintf "COMPLETE %d" t
32
- | WAIT -> "WAIT" in
+ | WAIT -> "WAIT"
33
+ | SEED (a,b) -> Printf.sprintf "SEED %d %d" a b
34
+ in
35
36
let numberofcells = int_of_string (input_line stdin) in (* 37 *)
37
@@ -95,4 +97,4 @@ while true do
95
97
(* how to print an action *)
96
98
| x :: xs -> print_endline @@ toString x
99
| [] -> failwith "No action found (impossible in theory)"
-done;;
100
+done;;
0 commit comments