From 4c152fc1ebd0d547aeeb84e5868b2b27616da25e Mon Sep 17 00:00:00 2001 From: Felix Detig Date: Mon, 14 Feb 2022 21:24:15 +0100 Subject: [PATCH] Refactored TicTacToe.SpielerWechsel --- BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs b/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs index 87f0c0a..0b43462 100644 --- a/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs +++ b/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs @@ -30,7 +30,7 @@ namespace MiniGames.Client.ViewModel public void SpielerWechsel() { - AktiverSpielerIndex = (AktiverSpielerIndex == 0) ? 1 : 0; + AktiverSpielerIndex = 1 - AktiverSpielerIndex; } } }