From 6f0a34bfb761d965bd961dc1f880b84e35f9959f Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Wed, 20 Nov 2019 10:05:59 -0800 Subject: Understanding symmetry, but nothing else. --- Source/Validator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Validator.cpp') diff --git a/Source/Validator.cpp b/Source/Validator.cpp index 82d6779..e71dc34 100644 --- a/Source/Validator.cpp +++ b/Source/Validator.cpp @@ -32,7 +32,7 @@ void Validator::Validate(Puzzle& p) { if (p.GetLine(x, y + 1) != Cell::Color::NONE) actualCount++; if (decoration->count != actualCount) { // console.log('Triangle at grid['+x+']['+y+'] has', actualCount, 'borders') - p.invalidElements.emplace_back(Pos{x, y}); + p.invalidElements.emplace_back(x, y); } } } @@ -43,7 +43,7 @@ void Validator::Validate(Puzzle& p) { if (cell.dot != Cell::Dot::NONE) { if (cell.color == Cell::Color::NONE) { // console.log('Dot at', x, y, 'is not covered') - p.invalidElements.emplace_back(Pos{x, y}); + p.invalidElements.emplace_back(x, y); } else if (cell.color == Cell::Color::BLUE && cell.dot == Cell::Dot::YELLOW) { // console.log('Yellow dot at', x, y, 'is covered by blue line') p.valid = false; -- cgit 1.4.1