From 08fcd58893b5ea754ebddbf63b2745dde34d4830 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sun, 8 Nov 2026 05:11:35 +0300 Subject: publish --- src/cellular-automaton.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/cellular-automaton.h (limited to 'src/cellular-automaton.h') 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 @@ +#ifndef INCLUDED_CELLULAR_AUTOMATON_H +#define INCLUDED_CELLULAR_AUTOMATON_H + +#include +#include "board.h" + +struct cellular_automaton { + struct board board; + uint8_t *back_board_bitarray; + uint32_t function; +}; + +void cellular_automaton_init (struct cellular_automaton *, + uint32_t function, + uint32_t rows, uint32_t cols); +void cellular_automaton_free (struct cellular_automaton *); +void cellular_automaton_progress (struct cellular_automaton *); + +#endif -- cgit v1.3.1