Last active
October 10, 2019 23:33
-
-
Save gavilanch/6614cb332592fde5f76a699cf5f831a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@code{ | |
... | |
string resultadoMensaje; | |
string resultadoMensajeColor; | |
private void SeleccionarJugada(Jugada jugada) | |
{ | |
timer.Stop(); | |
var resultado = jugada.JugarContra(jugadaOponente); | |
if (resultado == EstatusJuego.Victoria) | |
{ | |
resultadoMensaje = "Ganaste!"; | |
resultadoMensajeColor = "green"; | |
} | |
else if (resultado == EstatusJuego.Derrota) | |
{ | |
resultadoMensaje = "Perdiste!"; | |
resultadoMensajeColor = "red"; | |
} | |
else | |
{ | |
resultadoMensaje = "Empate!"; | |
resultadoMensajeColor = "black"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment