Ручной ввод поля

This commit is contained in:
2024-12-03 15:18:18 +03:00
parent 9eda3b8a1a
commit 7b1b2dd62b
3 changed files with 25 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
#include <vector>
#include <random>
#include <iostream>
#include "io.h"
class CellularAutomaton
@@ -13,6 +14,8 @@ class CellularAutomaton
std::vector<std::vector<int>> fieldNextState;
void initializeRandom();
void initializeManual();
int getCellState(int x, int y) const;
int getNeighborhoodIndex(int x, int y) const;
public: