HZ7PK7IJOAVEZNPPQX5DENZIA6K25SQMHJUQEDBNJ7EPZO3TP6IQC
SZZRPGSAGNADFKQWMLQEAXW4HRN4EJI27V2VPQN5J6BVZEDMC6EQC
const gridSize = 5
type Grid [5][5]int
type Grid [gridSize][gridSize]int
if mark < 5 {
if mark < gridSize {
var found bool for m := 0; m <= mark; m++ { if b.marks[m] == elem { // item found in marks found = true break } } if !found {
var found bool
for m := 0; m <= mark; m++ {
if b.marks[m] == elem {
// item found in marks
found = true
break
}
if !found {
if !b.isMarked(elem, mark) {
var found bool for i := 0; i <= mark; i++ { if b.marks[i] == elem { found = true break } } if !found {
for i := 0; i <= mark; i++ {
if b.marks[i] == elem {
for row := 0; row < 5; row++ {
for row := 0; row < gridSize; row++ {
log.Println("checkCol:", b.marks[:mark+1], b.grids[gridnum][0:5][col])
log.Println("checkCol:", b.marks[:mark+1], b.grids[gridnum][0:gridSize][col])
func (b Bingo) isMarked(elem int, maxMark int) bool { for i := 0; i <= maxMark; i++ { if b.marks[i] == elem { return true } } return false}
func (b Bingo) isMarked(elem int, maxMark int) bool {
for i := 0; i <= maxMark; i++ {
return true
return false