too much fucking lua lately

This commit is contained in:
Kistaro Windrider 2024-02-05 18:40:19 -08:00
parent 6d647a08c4
commit 2347ad523b
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -56,7 +56,7 @@ func main() {
} }
func onBoard(i, j int) bool { func onBoard(i, j int) bool {
return i > 0 && j > 0 && i < *edgeSize && j < *edgeSize return i >= 0 && j >= 0 && i < *edgeSize && j < *edgeSize
} }
func charAt(board [][]byte, i, j int) byte { func charAt(board [][]byte, i, j int) byte {
if !onBoard(i, j) { if !onBoard(i, j) {