Check in windows

This commit is contained in:
2019-11-06 14:03:47 -07:00
parent b85ed10846
commit 9b0d86a995
14 changed files with 41 additions and 20 deletions

View File

@@ -12,7 +12,7 @@ class PatternGosperGliderGun : public Pattern
private:
std::uint8_t X;
std::uint8_t Y;
std::array<std::array<bool, 4>, 4> cells{};
std::array<std::array<bool, 38>, 11> cells{};
public:
PatternGosperGliderGun();
@@ -26,7 +26,7 @@ class PatternGosperGliderGun : public Pattern
};
[[nodiscard]] bool getCell(std::uint8_t x, std::uint8_t y) const override
{
return cells[x][y];
return cells[y][x];
};
};