rename class
This commit is contained in:
parent
42074cfe75
commit
ee4b64f6e1
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue