MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / moveKnight

Function moveKnight

examples/00 Chessboard/Tutorial App/Game.js:30–33  ·  view source on GitHub ↗
(toX, toY)

Source from the content-addressed store, hash-verified

28}
29
30export function moveKnight(toX, toY) {
31 knightPosition = [toX, toY];
32 emitChange();
33}

Callers 1

dropFunction · 0.90

Calls 1

emitChangeFunction · 0.85

Tested by

no test coverage detected