rename class

This commit is contained in:
Jérôme BEDIER 2025-05-22 21:21:19 +02:00
parent 42074cfe75
commit ee4b64f6e1
2 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@ public class Board {
public boolean isKingInCheck(boolean isWhite) {
// First, find the king's position
Piece king = findKing(isWhite);
SoundPlayer soundPlayer = new SoundPlayer();
soudEffect soundPlayer = new soudEffect();
if (king == null) {
// If king not found (shouldn't happen in a valid chess game)

View File

@ -4,7 +4,7 @@ import javax.sound.sampled.*;
import java.io.File;
import java.io.IOException;
public class SoundPlayer {
public class soudEffect {
public void playCheckSound() {
try {
// Replace "check.wav" with the path to your check sound file