Home | History | Annotate | Download | only in test

Lines Matching defs:move

19 // so that move() doesn't need to check the board boundaries. Periods
52 var moves int // number of times move is called
54 // move tests if there is a peg at position pos that can jump over another peg
55 // in direction dir. If the move is valid, it is executed and move returns true.
56 // Otherwise, move returns false.
57 func move(pos, dir int) bool {
68 // unmove reverts a previously executed valid move.
77 // If a solution is found, solve prints the board after each move in a backward
88 if move(pos, dir) {
89 // a valid move was found and executed,
103 // tried each possible move