aboutsummaryrefslogtreecommitdiff
path: root/src/cellular-automaton.h
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 02:11:35 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 02:11:35 +0000
commit08fcd58893b5ea754ebddbf63b2745dde34d4830 (patch)
tree6e121100ec1aceccd2a6032c90bf11d1dd16ef8f /src/cellular-automaton.h
downloadlab-01-master.tar.gz
publishHEADmaster
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