public override void RegisterDart(int segment, int multiplier) { var dart = new CricketDart(CurrentPlayer, segment, multiplier); //if the player hit a segment that matters var cricketSegment = Segments.FirstOrDefault(s => s.Segment == segment && s.IsOpen); if (cricketSegment != null) { dart.ScoredMarks = multiplier; cricketSegment.RegisterDart(dart); } CurrentPlayerRound.Darts.Add(dart); }
public override void RegisterDart(int segment, int multiplier) { var dart = new CricketDart(CurrentPlayer, segment, multiplier); //if the player hit a segment that matters var cricketSegment = Segments.FirstOrDefault(s => s.Segment == segment && s.IsOpen); if (cricketSegment != null) { dart.ScoredMarks = multiplier; cricketSegment.RegisterDart(dart); } CurrentPlayerRound.Darts.Add(dart); }
public void RemoveDart(CricketDart dart) { _marks[dart.Player].Remove(dart); }
public void RegisterDart(CricketDart dart) { _marks[dart.Player].Add(dart); }
public void RemoveDart(CricketDart dart) { _marks[dart.Player].Remove(dart); }
public void RegisterDart(CricketDart dart) { _marks[dart.Player].Add(dart); }