Skip to content

Commit

Permalink
[trivial] minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkey-bored committed Dec 22, 2023
1 parent cab89cb commit da3305a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions development/src/logic/pieces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class Pawn extends Piece {
enPassant: boolean;

constructor(position: Position, player: Player) {
const logo = player.color == PlayerColors.WHITE
const logo = player.color === PlayerColors.WHITE
? '♙'
: '♟';
super(position, player, pawnResource, 'Pawn', logo);
Expand Down Expand Up @@ -164,7 +164,7 @@ export class Pawn extends Piece {

export class Bishop extends Piece {
constructor(position: Position, player: Player) {
const logo = player.color == PlayerColors.WHITE
const logo = player.color === PlayerColors.WHITE
? '♗'
: '♝';
super(position, player, bishopResource, 'Bishop', logo);
Expand Down Expand Up @@ -196,7 +196,7 @@ export class Bishop extends Piece {

export class Knight extends Piece {
constructor(position: Position, player: Player) {
const logo = player.color == PlayerColors.WHITE
const logo = player.color === PlayerColors.WHITE
? '♘'
: '♞';
super(position, player, knightResource, 'Knight', logo);
Expand All @@ -215,7 +215,7 @@ export class Knight extends Piece {

export class Rook extends Piece {
constructor(position: Position, player: Player) {
const logo = player.color == PlayerColors.WHITE
const logo = player.color === PlayerColors.WHITE
? '♖'
: '♜';
super(position, player, rookResource, 'Rook', logo);
Expand Down Expand Up @@ -255,7 +255,7 @@ export class Rook extends Piece {

export class Queen extends Piece {
constructor(position: Position, player: Player) {
const logo = player.color == PlayerColors.WHITE
const logo = player.color === PlayerColors.WHITE
? '♕'
: '♛';

Expand Down Expand Up @@ -303,7 +303,7 @@ export class Queen extends Piece {

export class King extends Piece {
constructor(position: Position, player: Player) {
const logo = player.color == PlayerColors.WHITE
const logo = player.color === PlayerColors.WHITE
? '♔'
: '♚';

Expand Down

0 comments on commit da3305a

Please sign in to comment.