diff options
| author | 2026-11-08 02:11:35 +0000 | |
|---|---|---|
| committer | 2026-11-08 02:11:35 +0000 | |
| commit | 08fcd58893b5ea754ebddbf63b2745dde34d4830 (patch) | |
| tree | 6e121100ec1aceccd2a6032c90bf11d1dd16ef8f /src/cellular-automaton.h | |
| download | lab-01-08fcd58893b5ea754ebddbf63b2745dde34d4830.tar.gz | |
Diffstat (limited to 'src/cellular-automaton.h')
| -rw-r--r-- | src/cellular-automaton.h | 19 |
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 | |||
| 7 | struct cellular_automaton { | ||
| 8 | struct board board; | ||
| 9 | uint8_t *back_board_bitarray; | ||
| 10 | uint32_t function; | ||
| 11 | }; | ||
| 12 | |||
| 13 | void cellular_automaton_init (struct cellular_automaton *, | ||
| 14 | uint32_t function, | ||
| 15 | uint32_t rows, uint32_t cols); | ||
| 16 | void cellular_automaton_free (struct cellular_automaton *); | ||
| 17 | void cellular_automaton_progress (struct cellular_automaton *); | ||
| 18 | |||
| 19 | #endif | ||
