too much fucking lua lately
This commit is contained in:
parent
6d647a08c4
commit
2347ad523b
2
uckf.go
2
uckf.go
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user