chording support

This commit is contained in:
2025-06-22 13:08:52 +03:00
parent 3eb99d591f
commit 429074dd79
7 changed files with 77 additions and 50 deletions

View File

@@ -183,6 +183,16 @@ void startGame(Board &board)
startPauseTime = time(NULL);
}
isPaused = !isPaused;
break;
case 'c':
auto neighbors = board.getNeighborsOf(cursorX, cursorY);
for (const Cell &neighbor : neighbors)
{
if (neighbor.getState() == Cell::State::Flagged)
continue;
board.revealCellAt(neighbor.getPosition().x, neighbor.getPosition().y);
}
break;
}
if (isPaused)