public GameResult CalculateVictory(RpsWeapon player, RpsWeapon cpu) { var playerIndex = weapons.IndexOf(player); var cpuIndex = weapons.IndexOf(cpu); return(CalculateVictory(playerIndex, cpuIndex)); }
public RpsGameResult( RpsWeapon playerWeapon, RpsWeapon cpuWeapon, GameResult status, int?amountWon, int bet) { CpuWeapon = cpuWeapon; PlayerWeapon = playerWeapon; Status = status; AmountWon = amountWon; Bet = bet; }
public Builder WithCpuWeapon(RpsWeapon weapon) { cpuWeapon = weapon; return(this); }
public Builder WithPlayerWeapon(RpsWeapon weapon) { playerWeapon = weapon; return(this); }