This commit is contained in:
2019-11-05 19:01:33 -07:00
parent dea67dc3c0
commit ae02863a60
12 changed files with 99 additions and 0 deletions

View File

@@ -5,4 +5,28 @@
#ifndef CS3460_CPP_PATTERNGLIDER_HPP
#define CS3460_CPP_PATTERNGLIDER_HPP
#include <array>
#include "Pattern.hpp"
class PatternGlider : public Pattern
{
private:
int X;
int Y;
std::array<std::array<bool, 5>, 5> cells;
public:
PatternGlider();
int getSizeX()
{
return X;
};
int getSizeY(){
return Y;
};
bool getCell(int x, int y){
return cells[x][y];
};
};
#endif //CS3460_CPP_PATTERNGLIDER_HPP