Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private void nextCell() {
if (columnIndex < this.board.size() - 1) {
columnIndex++
} else {
columnIndex = 0
rowIndex++
}
}
private void previousCell() {
if (columnIndex > 0) {
columnIndex--
} else {
columnIndex = this.board.size() - 1
rowIndex--
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment