aboutsummaryrefslogtreecommitdiff
path: root/src/cellular-automaton.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cellular-automaton.h')
-rw-r--r--src/cellular-automaton.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cellular-automaton.h b/src/cellular-automaton.h
new file mode 100644
index 0000000..8be8951
--- /dev/null
+++ b/src/cellular-automaton.h
@@ -0,0 +1,19 @@
1#ifndef INCLUDED_CELLULAR_AUTOMATON_H
2#define INCLUDED_CELLULAR_AUTOMATON_H
3
4#include <inttypes.h>
5#include "board.h"
6
7struct cellular_automaton {
8 struct board board;
9 uint8_t *back_board_bitarray;
10 uint32_t function;
11};
12
13void cellular_automaton_init (struct cellular_automaton *,
14 uint32_t function,
15 uint32_t rows, uint32_t cols);
16void cellular_automaton_free (struct cellular_automaton *);
17void cellular_automaton_progress (struct cellular_automaton *);
18
19#endif