Skip to content

Commit

Permalink
Add missing breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Oct 10, 2024
1 parent 66c6c08 commit a5f0647
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/chess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ export function validFen(variant: Variant, fen: string): boolean {
switch (variantName) {
case 'spartan':
if (bK === 0 || bK > 2 || wK !== 1) return false;
break;
case 'horde':
if (bK !== 1 || wK !== 0) return false;
break;
default:
if (bK !== 1 || wK !== 1) return false;
}
Expand Down

0 comments on commit a5f0647

Please sign in to comment.