check draw.

This commit is contained in:
2026-02-06 15:20:18 -05:00
parent 47d13ee573
commit ba6229c654
@@ -84,7 +84,7 @@ public final class Board {
} }
} }
protected ResultEnum winnerCheck() { protected ResultEnum checkGamePlay() {
if ((buttons[0].played && buttons[4].played && buttons[8].played) if ((buttons[0].played && buttons[4].played && buttons[8].played)
&& &&
@@ -166,7 +166,7 @@ public final class Board {
synchronized protected void PlayEventUpdate() { synchronized protected void PlayEventUpdate() {
long delay = 0L; long delay = 0L;
ResultEnum checkplays = winnerCheck(); ResultEnum checkplays = checkGamePlay();
if (ResultEnum.winner == checkplays) { if (ResultEnum.winner == checkplays) {