fixed input after win bug

This commit is contained in:
maxwes08
2025-10-20 10:11:16 +02:00
parent cc5b6125bb
commit 365bc86ff2

View File

@@ -151,6 +151,7 @@
MessageBox.Show("You won"); MessageBox.Show("You won");
Program.AddWin(); Program.AddWin();
} }
SetInputEnabled(false);
return; return;
} }
@@ -159,6 +160,7 @@
if (IsAllBoxesFilled()) if (IsAllBoxesFilled())
{ {
MessageBox.Show("Tie"); MessageBox.Show("Tie");
SetInputEnabled(false);
} }
else else
{ {