I'm writing a program for an embedded device based on the game of Darts, I'm writing code for a "Computer" player, basically I generate a series of random scores so that the computer tries to go from 501 down to zero, all is pretty straight forward till the score goes below 170, this is the number which in Darts you can checkout and finish on a double for example "40 = double 20, 16 = double 8 and so on...", I have an array "Checkoutcodes" which I can query for combinations of numbers which will allow the computer to finish the game, for example 145 = "t20t15d20" which translates to (3x20, 3x15, 2x20) which is 145 and game over. Now obviously in the real world it's not possible to get out every time so I have wrote code to mimic an attempt to checkout.
These numbers represent the order on a dart board in a circular pattern, note the 5 is beside the 20 20,1,18,4,13,6,10,15,2,17,3,19,7,16,8,11,14,9,12,5
In order to mimic an attempt I randomly select the number needed or a number to the left or right, so for 145, and for the first part "t20", The computer could potentially hit a 1,20,5 or (3x1),(3x20),(3x5). Now if it selects a number other than "t20" then I'd have to retrieve a new checkout code, so if a (3x5) was hit, the score remaining would be 130 and the new checkout code would be "t20t20d5". This would repeat until 3 darts were thrown and at the end my code would evaluate the total score remaining against what it expected to be remaining. If they don't equal then I loop back and try again, this works ok when tested on a PC but when loaded onto an embedded device it's sluggishly slow. Below further explains the flow of how my code works.
//Successful mimic
145 - "t20t15d20" - (3x20) hit
85 - "t19d14" - (1x7) hit
78 - "t18d12" - (3x4) hit
Outcome is 66, expected was 66 so (3x20),(1x7),(3x4) is a valid combination
//Unsuccessful mimic
145 - "t20t15d20" - (1x5) hit
140 - "t20t20d10" - (3x20) hit
80 - "t20d10" - (1x1) hit
Outcome is 79, expected was 66 so (1x5),(3x20),(1x1) is not a valid combination, so code will loop till a valid combination is found.
I need a way of retrieving these mimic combinations quickly on an embedded device, the full list of checkout code is attached.
Hello,
I have reviewed your project posting and are very much excited to assist you in your project. I would appreciate if we can connect over private message or other medium to discuss about the project and provide you with accurate details.
We are a professional company with experience of over 7 years. We have worked with MNCs and government counties to develop solutions for them. We can be a one stop shop for all your development needs. We have expert developers for all the technologies and platforms mentioned in the project. Unlike an individual freelancer, we are a professional company with proven track record. We can provide timely, scalable and cost effective solutions.
We have state of the art development center. We have wide range of mobile devices & tablets on Android, iOS, Windows, RIM & Symbian platforms. We have latest windows & MAC PCs and servers. So you can associate with us and get the advantage of this technology without requiring a big investment at your end.
Price is negotiable because I need to know your full requirement.
Regards
Starco Enterprise
Hi, I (Myself a senior PHP, ASP.NET programmer using C# and VB) have a team having experience of more than 10 years in developing web and mobile applications. I have a team of expert programmers who write robust and bug-free codes at the very first instance. After seeing our quality of work and the cooperation offered to you even after the work has been delivered to you, you’ll come to us again and again to avail our services. I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I can achieve the results that you are asking for within your timeframe and budget. I am confident I can exceed your expectations and I would love to work on your project. Thanks, Priyanka
Dear sir , I have created several systems before , I am ready to complete your application
and i have strong knowledge with web development since 2007 using .net , sql and MVC
ready to start working now
thanks and regards
Dear Prospect Hiring Manager.
Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned
I have checked your requirements. We have right skills to work on this assignment. We are a team of professionals including experienced analysts, designers, project managers, developers and QA people having great expertise in web applications development mainly on core PHP, PHP with open sources (Joomla, Wordpress, Codeigniter, Cake PHP), .NET, Asp.NET, Vb.NET, HTML 5 etc. and mobile applications on ios and Android platform.
Our award = superb result = happy client. In a good partnership, good results happen. Good cooking makes good eating!BWe consider our client as our partner.
can u provide your email or sky-pe etc for further discussion about the project
with best Regards