From 9f85b4857608959ede0509a240a090e1ea4bbe5d Mon Sep 17 00:00:00 2001 From: Hafflationist Date: Thu, 8 Jul 2021 17:57:35 +0200 Subject: [PATCH 1/2] fix: bot detection --- Assets/Groups/Group F/Scripts/GriddyGame.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Groups/Group F/Scripts/GriddyGame.cs b/Assets/Groups/Group F/Scripts/GriddyGame.cs index 7c9b2db4..9a99fc12 100644 --- a/Assets/Groups/Group F/Scripts/GriddyGame.cs +++ b/Assets/Groups/Group F/Scripts/GriddyGame.cs @@ -205,13 +205,13 @@ private List GetAiPlayers() { var aiPlayers = new List(); if (PlayerPrefs.GetString("Player1_AI").Equals("True")) aiPlayers.Add(player1); - //if (PlayerPrefs.GetString("Player2_AI").Equals("True")) + if (PlayerPrefs.GetString("Player2_AI").Equals("True")) aiPlayers.Add(player2); - //if (PlayerPrefs.GetString("Player3_AI").Equals("True")) + if (PlayerPrefs.GetString("Player3_AI").Equals("True")) aiPlayers.Add(player3); - //if (PlayerPrefs.GetString("Player4_AI").Equals("True")) + if (PlayerPrefs.GetString("Player4_AI").Equals("True")) aiPlayers.Add(player4); return aiPlayers; } -} \ No newline at end of file +} From 65c2c7accc060de73b26840e6e29c5415e536597 Mon Sep 17 00:00:00 2001 From: Hafflationist Date: Thu, 8 Jul 2021 17:58:07 +0200 Subject: [PATCH 2/2] style: indent --- Assets/Groups/Group F/Scripts/GriddyGame.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Groups/Group F/Scripts/GriddyGame.cs b/Assets/Groups/Group F/Scripts/GriddyGame.cs index 9a99fc12..8cf01a0c 100644 --- a/Assets/Groups/Group F/Scripts/GriddyGame.cs +++ b/Assets/Groups/Group F/Scripts/GriddyGame.cs @@ -205,12 +205,12 @@ private List GetAiPlayers() { var aiPlayers = new List(); if (PlayerPrefs.GetString("Player1_AI").Equals("True")) aiPlayers.Add(player1); - if (PlayerPrefs.GetString("Player2_AI").Equals("True")) - aiPlayers.Add(player2); - if (PlayerPrefs.GetString("Player3_AI").Equals("True")) - aiPlayers.Add(player3); - if (PlayerPrefs.GetString("Player4_AI").Equals("True")) - aiPlayers.Add(player4); + if (PlayerPrefs.GetString("Player2_AI").Equals("True")) + aiPlayers.Add(player2); + if (PlayerPrefs.GetString("Player3_AI").Equals("True")) + aiPlayers.Add(player3); + if (PlayerPrefs.GetString("Player4_AI").Equals("True")) + aiPlayers.Add(player4); return aiPlayers; }