0 Replies - 4436 Views - Last Post: 04 January 2014 - 08:24 PM

#1 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2238
  • View blog
  • Posts: 9,409
  • Joined: 29-May 08

Challenge: Outshots?

Post icon  Posted 04 January 2014 - 08:24 PM

Challenge: Outshots?


Challenge: (Easy - Moderate)

Generate all the possible out shots for a target score from a game of darts.
An outshot must end with a double or bull, which could be in less than 3 darts.

Which outshot is the best the aim for?
Fewer darts the better. Eg
Target:= 40
         { D20             } Is better cos it uses few darts. 
         { S10 , D50 , D00 }



What if the player hits another bed close to it?
Aiming For:= D20
      Hits:= D1



Select better (or alternative) outshot depending on the darts been thrown.

Target     Dart1        Dart2       Dart3
   100 --> T40 = 40 --> D5 = 30 --> D15 = 0



This challenge is open to all languages but VB.net enteries are preferred.

This post has been edited by AdamSpeight2008: 05 January 2014 - 01:22 AM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1