Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. var setup1 = ChessBoard.fenToObj('rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR');
  2. var onDrop = function(source, target, piece, newPos, oldPos, orientation) {
  3.  
  4. $.each( setup1, function( key, value ) {
  5. if (target == key && piece !== value) {
  6. console.log("wrong");
  7. return 'snapback';
  8. }
  9.  
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement