]> git.friedersdorff.com Git - max/gol.git/blobdiff - tick.h
MINIMAL implementation. Single glider gun
[max/gol.git] / tick.h
diff --git a/tick.h b/tick.h
new file mode 100644 (file)
index 0000000..9603cca
--- /dev/null
+++ b/tick.h
@@ -0,0 +1,12 @@
+#ifndef TICK_H
+#define TICK_H
+
+#include "array.h"
+
+/*
+ * Calculates the state of a game of life after the next tick, based
+ * on the passed state.  It modifies the passed state.
+ */
+int gol_tick(struct gol_board *state);
+
+#endif