Define cell signature.
[cellular-automata.git] / polymorphic-life / 001 / src / polymorphic_life.ml
index a667bc4..ca6d819 100644 (file)
@@ -47,6 +47,15 @@ module Matrix : MATRIX = struct
 end
 
 
+module type CELL = sig
+  type t
+
+  val state : t -> int
+
+  val react : t -> states:int list -> t
+end
+
+
 let main () =
   let pool = Matrix.create ~rows:5 ~cols:5 ~data:() in
   Matrix.iter pool ~f:(
This page took 0.023737 seconds and 4 git commands to generate.