Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido-Barnea committed May 4, 2024
1 parent dc897a6 commit 8b6a538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/development/logic/pieces/King.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { kingPieceResource } from '../../ui/Resources';
import { kingResource } from '../../ui/Resources';
import { Player } from '../players/Player';
import { getPieceByPosition } from '../Utilities';
import { Rook } from './Rook';
Expand All @@ -11,7 +11,7 @@ export class King extends BasePiece {
constructor(player: Player, position?: Position) {
const icon = player.color === PlayerColor.WHITE ? '♔' : '♚';

super(kingPieceResource, icon, 'King', player, position);
super(kingResource, icon, 'King', player, position);
}

getRookForCastling(player: Player, kingside: boolean): Rook | undefined {
Expand Down

0 comments on commit 8b6a538

Please sign in to comment.