Guest User

Untitled

a guest
May 16th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.35 KB | None | 0 0
  1. (method (move-piece new-piece next)
  2.           (set! _needs-redraw #t)
  3.           (set! _old-piece _piece)
  4.           (set! _piece new-piece)
  5.           (send _piece set-current-field self)
  6.          
  7.           (when (eq? (next self) #f) _old-piece)
  8.           (when (not (eq? (next self) #f))
  9.             (send (next self) move-piece _old-piece next)))
Add Comment
Please, Sign In to add comment