private void playRound(Player player) { for (int i = 0; i < 3; i++) { Darts dart = new Darts(_random); dart.Throw(); Score.ScoreDart(player, dart); } }
// Public methods. // public void ThrowDarts() { //Random random = new Random(); Darts dartsGame = new Darts(_random); // Loop to represent the 3 darts each player gets to play with for (int i = 0; i < 3; i++) { dartsGame.Throw(); determineMultiplier(dartsGame); } }
// Determine points for a round // A player gets 3 throws in a round public static int PlayRound(Darts player) { int _roundScore = 0; for (int i = 0; i < 3; i++) { player.Throw(); _roundScore += Score.RoundScore(player, player.DartScore); } return(_roundScore); }