1 Replies - 5737 Views - Last Post: 26 October 2014 - 10:45 AM

#1 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2271
  • View blog
  • Posts: 9,499
  • 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
  • +

Replies To: Challenge: Outshots?

#2 dbasnett  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 110
  • View blog
  • Posts: 609
  • Joined: 01-October 08

Re: Challenge: Outshots?

Posted 26 October 2014 - 10:45 AM

An attempt is here (VS2012):
Outshots Solution

The binaries have been removed.

This post has been edited by dbasnett: 29 October 2014 - 04:23 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1