Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererXII committed Mar 14, 2024
1 parent 75fc8e6 commit 5b0b8a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/nvui/src/shogi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { dimensions, handRoles } from 'shogiops/variant/util';
import { makeUsi, parseUsi } from 'shogiops/util';
import { toKanjiDigit } from 'shogiops/notation/util';
import { makeKifBoard } from 'shogiops/notation/kif/kif';
import { toMove } from 'keyboardMove/dist/plugins/util'; // todo better later
import { toMoveOrDrop } from 'keyboardMove/dist/plugins/util'; // todo better later

export type Style = 'usi' | 'literate' | 'nato' | 'anna' | 'japanese';

Expand Down Expand Up @@ -174,7 +174,7 @@ export function renderBoard(pieces: Pieces, pov: Color, variant: VariantKey, sty
export function validUsi(moveString: string, sfen: Sfen, variant: VariantKey): Usi | undefined {
const pos = parseSfen(variant, sfen, false);
if (pos.isOk) {
const move = toMove(moveString.toLowerCase(), pos.value);
const move = toMoveOrDrop(moveString.toLowerCase(), pos.value);
if (move) return makeUsi(move);
}
return undefined;
Expand Down

0 comments on commit 5b0b8a1

Please sign in to comment.