Home | History | Annotate | Download | only in play

Lines Matching defs:move

12 // fields in each direction so that move()
48 var moves int // number of times move is called
50 // move tests if there is a peg at position pos that
52 // move is valid, it is executed and move returns true.
53 // Otherwise, move returns false.
54 func move(pos, dir int) bool {
65 // unmove reverts a previously executed valid move.
76 // each move in a backward fashion (i.e., the last
87 if move(pos, dir) {
88 // a valid move was found and executed,
102 // tried each possible move