hand merging

This commit is contained in:
Morgan - 6 Freedom 2024-01-28 13:23:50 +01:00
parent c33825d600
commit 572e9e1e15

View File

@ -285,9 +285,9 @@ public void HostHasStartedGame()
public void GeneratePrompts() public void GeneratePrompts()
{ {
System.Random rnd = new(); System.Random rnd = new();
List<Prompt> prompts = promptList.prompts.OrderBy(x => rnd.Next()).Take(myRoom.players.Count() * 2).ToList(); List<Prompt> prompts = promptList.prompts.OrderBy(x => rnd.Next()).Take(myRoom.players.Count()).ToList();
List<Player> fullPlayers = myRoom.players.Values.ToList().Concat(myRoom.players.Values.ToList()).OrderBy(x => rnd.Next()).ToList(); List<Player> players = myRoom.players.Values.ToList().OrderBy(x => rnd.Next()).ToList();
Dictionary<string, Question> questions = new Dictionary<string, Question>(); Dictionary<string, Question> questions = new();
for (int i = 0; i < players.Count(); i++) for (int i = 0; i < players.Count(); i++)
{ {