Ручной ввод поля
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user