Lines Matching refs:mm
44 getmove(struct move *mm)
50 i = checkmove(mm, c);
54 if (movokay(mm, mm->mvlim)) {
59 for (i = 0; i < mm->mvlim; i++)
60 if (mm->h[i])
61 wrhit(mm->g[i]);
85 writec(mm->mvlim + '0');
87 if (mm->mvlim > 1)
94 if (quit(mm))
99 proll(mm);
109 movokay(struct move *mm, int mv)
113 if (mm->d0)
114 mswap(mm);
117 if (mm->p[i] == mm->g[i]) {
118 moverr(mm, i);
123 if (cturn * (mm->g[i] - mm->p[i]) < 0) {
124 moverr(mm, i);
129 if (abs(board[bar]) && mm->p[i] != bar) {
130 moverr(mm, i);
135 if ((m = makmove(mm, i))) {
136 moverr(mm, i);