Home | History | Annotate | Download | only in play

Lines Matching full:board

2 // solitaire board game.
11 // The board must be surrounded by 2 illegal
13 // doesn't need to check the board boundaries.
17 var board = []rune(
37 for pos, field := range board {
56 if board[pos] == '?' && board[pos+dir] == '?' && board[pos+2*dir] == '?' {
57 board[pos] = '?'
58 board[pos+dir] = '?'
59 board[pos+2*dir] = '?'
67 board[pos] = '?'
68 board[pos+dir] = '?'
69 board[pos+2*dir] = '?'
75 // If a solution is found, solve prints the board after
77 // board position is printed first, all the way back to
78 // the starting board position).
81 for pos, field := range board {
82 // try each board position
89 // see if this new board has a solution
92 fmt.Println(string(board))
105 fmt.Println(string(board))
108 // no solution found for this board