aboutsummaryrefslogtreecommitdiff
path: root/src/cellular-automaton.h
blob: 8be89516e17c5e2ebabef3d4cb43bc55c6c5d601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef INCLUDED_CELLULAR_AUTOMATON_H
#define INCLUDED_CELLULAR_AUTOMATON_H

#include <inttypes.h>
#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