Automatic room closing (#6)

* Ace now lets you play again if there are two players

* 1 line if :o

* Better Ace

* Feature/automautic room closing (#5)

* Room now closes when nobody is in the room

* cleanup
This commit is contained in:
DTieman
2023-03-24 18:30:45 +01:00
committed by GitHub
parent 4adb6d600e
commit cf13f07f98
5 changed files with 44 additions and 50 deletions

View File

@@ -83,8 +83,11 @@ public class Game
CurrentPlayer = GetNextPlayer(2);
break;
case CardValue.ACE:
TurnDirection *= -1;
CurrentPlayer = GetNextPlayer();
if (Players.Count > 2)
{
TurnDirection *= -1;
CurrentPlayer = GetNextPlayer();
}
break;
case CardValue.THREE:
case CardValue.FOUR: