Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created October 10, 2019 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavilanch/a0e6602376e20dcc283f345a91c31ddb to your computer and use it in GitHub Desktop.
Save gavilanch/a0e6602376e20dcc283f345a91c31ddb to your computer and use it in GitHub Desktop.
@code{
...
class Jugada
{
public OpcionPPT OptionPPT { get; set; }
public OpcionPPT VenceA { get; set; }
public OpcionPPT PierdeContra { get; set; }
public string Imagen { get; set; }
public EstatusJuego JugarContra(Jugada jugada2)
{
if (OptionPPT == jugada2.OptionPPT)
{
return EstatusJuego.Empate;
}
if (VenceA == jugada2.OptionPPT)
{
return EstatusJuego.Victoria;
}
return EstatusJuego.Derrota;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment