AllenAdministrator
(KiX Supporter)
2010-11-28 06:28 PM
Kixgolf - Bowling Calculator

=============
The Challenge - Bowling Calculator
=============


Ten-pin bowling (commonly just "bowling" in the United States) is a competitive sport in which a player (the “bowler”) rolls a bowling ball down a wooden or synthetic (polyurethane) lane with the objective of scoring points by knocking down as many pins as possible.

A game of ten-pin bowling is divided into ten rounds (called “frames”), with frames one (1) through nine (9) being composed of up to two rolls. In a frame, each player is given two opportunities to knock down the pins. The player rolls the first ball at the pins. If the first ball knocks down all ten pins, it is called a “strike” (denoted by "X")and the frame is completed. When pins are left standing after the first ball, those that are knocked down are counted and then removed. Then the player rolls a second ball and if all the remaining pins are knocked down, it is called a “spare” (denoted by "/"). If a player fails to knock down any pins on a roll, ie hitting zero pins, it is denoted by "-".

The tenth (10) frame may be composed of up to three rolls. If a player rolls a strike (on the first roll) he is awarded 2 additional rolls. If a player rolls a spare in the 10th frame, he is awarded 1 additional roll. The bonus rolls following a strike or spare in the 10th frame are sometimes referred to as the eleventh and twelth frames. This allows for a potential of 12 strikes in a single game, and a maximum score of 300 points, a perfect game.

In general, one point is scored for each pin that is knocked over. So if a player knocks over three pins with the first shot, then six with the second, the player would receive a total of nine points for that frame. If a player knocks down 9 pins with the first shot, but misses with the second, the player would also score nine. In the event that all ten pins are knocked over by a player in a single frame, bonuses are awarded:

- For a strike, a player is awarded ten points, plus a bonus of whatever is scored with the next two rolls/balls. (for a maximum of 30 points in any frame)
- For a spare, a player is awarded ten points, plus a bonus of whatever is scored with the next roll.

Example 1: (Partial Score)
 Code:
Frame  1   2   3
------------------
       X   X   72
------------------
Score 27  46  55

Frame 1: 10 + (10+7)=27 
Frame 2: 10 + (7+2) =19
Frame 3: 7+2        =9
Total               =55


Example 2: (Partial Score)
 Code:
Frame  1   2   3
------------------
       9/  6/  7-
------------------
Score 16  33   40

Frame 1: 9+1 + (6)=16 
Frame 2: 6+4 + (7)=17
Frame 3: 7+0      =7
Total             =40


Example 3:
 Code:
Frame  1   2   3   4   5   6   7   8   9   10
------------------
       9/  9/  8/  X   X   7/  8/  X   9/  9/9
------------------
Score 19  37  57  84  104 122 142 162 181  200 

Frame  1: 9+1 + (9)   =19 
Frame  2: 9+1 + (8)   =18
Frame  3: 8+1 + (10)  =20
Frame  4: 10  + (10+7)=27
Frame  5: 10  + (7+3) =20
Frame  6: 7+3 + (8)   =18
Frame  7: 8+3 + (10)  =20
Frame  8: 10  + (9+1) =20
Frame  9: 9+1 + (9)   =19
Frame 10: 9+1 + (9)   =19
Total                 =200 


Example 4:
 Code:
Frame  1   2   3   4   5   6   7   8   9   10
------------------
       X  81  9/  81   X   X   X  -/  9/   X9/
------------------
Score 19  28  46  55  85  105 125 144 164  184 

Frame  1: 10   + (8+1)  =19 
Frame  2: 8+1           =9
Frame  3: 9+1  + (8)    =18
Frame  4: 8+1           =9
Frame  5: 10   + (10+10)=30
Frame  6: 10   + (10+0) =20
Frame  7: 10   + (0+10) =20
Frame  8: 0+10 + (9)    =19
Frame  9: 9+1  + (10)   =20
Frame 10: 10   + (9+1)  =20
Total                   =184





*-->A download is available at http://www.kixtart.org/forums/ubbthreads.php?ubb=download&Number=224

=============
Specification
=============


Determine the bowler's score given the frames


=============
Input
=============

The input consists of a string of values, each separated by a space, that would be found on a score sheet of bowling. For example:
"X 81 9/ 81 X X X -/ 9/ X9/"

"X" = Strike, 10 pins on the first roll
"/" = Spare, for example 9/ is equal to rolling 9 on the first ball and 1 on the second.
"-" = Miss/Open, equal to 0 pins on a roll.



=============
Output
=============

A number representing the bowler's score.


=================================================================
Notes
===========================================================+====

- The scoring engine is based on older engine, so there may be something like block comments that are not supported.
- The scoring engine has added code to help diagnose which cases are failing. To see test case results:
 Code:
   kix32 kixgolf_bc $verbose=1 ;shows failing results
   kix32 kixgolf_bc $verbose=2 ;shows all results

- The scoring engine expects your (primary) function to be named a().


=======
Scoring
=======


The solution must pass all tests in order for it's KiXgolf Score to be considered.

When posting KiXtart Golf Scores, please include the KIXGOLF_*.TXT file that is created in the script directory. It contains some basic information about the computer that the script is run on and the resulting scores.

============
Test program
============


Test cases are provided to help screen entries and to provide the Golf Score.
Any script that passes the test cases can be submitted. If you are surprised that your solution passed the test cases, please submit it anyway! That will help me identify bugs in the test program.

================================================================
KiXtart GOLF - How To Play
================================================================


Most importantly, anybody can play, no age restrictions, no penalties, no handicap!

The object in "real" golf is to hit the ball in the hole in the fewest strokes. The object in KiXtart Golf is to get from input (tee) to target (hole) in the fewest keystrokes.

Example: How many positive elements are in array $a?

Array $a could be of structure $a=[1, 2 ,-3, 4, -5, -7, 8, 9]

One approach:
 Code:
for $b=0 to ubound($a)
  if $a[$b]>0
    $c=$c+1
  endif
next

for a score of 45.

Another solution is:
 Code:
DO
  $b=$b+1
  if $a[$b]>0
    $c=$c+1
  endif
UNTIL $b>(UBOUND($a)+1)

for a score of 53.

Better approach: Code sample 1

================================================================
KiXtart GOLF - The Rules
================================================================


1) The goal of KiXtart Golf is to score the lowest strokes.
2) Strokes are all characters in a piece of code except whitespace characters, unless the whitespace character is necessary for the line of code to work. Therefore, carriage returns and line feeds do not count or spaces in between the '=' sign when assigning variables, e.g. '$a = $b' scores 5.
3) Code can be constructed any way you like, as long as it does not generate syntax or other errors when running the script in KiXtart.
4) The final solution MUST pass all test scripts that are part of the KiXtart golf challenge.
7) During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player.
8) During the public coding phase, code should be posted, reused, and borrowed from other players.
9) The test script contains the official KiXgolf scoring engine
10) Only the person posting a particular score will be recognized for the score, unless the KiXtart Golf Challenge organizer or another delegate posts code on behalf of a player
11) KiXtart Golf (a.k.a KiXgolf) codes must be written inside the KiXgolf UDF collection tags, ';!' and ';!;!'
12) Parameter names of the UDF's can be changed and additional optional parameters can be added.
13) Additional helper UDFs and code can be written as long as they reside inside the ';!' and ';!;!' tags.
14) The use of '$' as a variable is allowed.
15) The UDF layout is up to coder.
16) The UDF is expected to finish in a reasonable time, that is, on modern computers inside 1 hour timeframe.
17) You can submit scores as often as you want.
18) If you reach leading score, you are obligated to post your score immediately so others can try to compete with you.
19) The UDF may only use the KiXtart/KiXforms commands/functions/macros, no other code fragments are allowed.
20) Calls to COM components that are part of a standard default Windows installation are allowed.
21) The use of the KiXforms DLL is also permitted as the KiXforms DLL can now be considered an integral part of KiXtart scripting.
22) Calls to other executables, as long as they are part of a standard default Windows installation are allowed.
23) The UDF should be self-contained (except for any I/O mentioned in the challenge). In particular, you may not do things like fetching extra data from a remote site or file.
24) You may assume ASCII as character set.
25) You may use block comments as the KiXgolf Scoring Engine now supports block comments.
26) You are allowed to only use publicly available versions of KiXtart and KiXforms, private builds or alpha builds are NOT allowed.
27) Your submitted score must include the result print of the KiXgolf test-engine.
28) The SETOPTION() parameters in the KiXgolf script may not be modified and will govern the script behavior. SETOPTION() parameters may change depending on the particular needs of the KiXgolf challenge.
29) Tokenizing the UDF, script, or portions thereof is not allowed.
30) If something is not explicitly denied by the rules, it's allowed.
31) If Confusion arises, arranger of the KiXgolf round has the final say.
32) Additional test cases can be added at any time during the KiXgolf round. The code is expected to pass based on the rules. The test cases may not include tests for all rules and exceptions. Test cases that are added during the public round will not alter the results of the private round.


================================================================
KiXtart GOLF - The Duration of the Competition
================================================================


1) Private coding phase: 2010-11-28 to 2010-12-05 (Official Count down clock will determine end time)

2) Public coding phase: 2010-12-05 to 2010-12-12

3) Final results: 2010-12-12


*--> You will need the complete package from http://www.kixtart.org/forums/ubbthreads.php?ubb=download&Number=224.


AllenAdministrator
(KiX Supporter)
2010-11-28 06:31 PM
Re: Kixgolf - Bowling Calculator

I added 30 minutes for my lateness... so no time loss.

Private Round ends in:
ended


AllenAdministrator
(KiX Supporter)
2010-11-28 06:33 PM
Re: Kixgolf - Bowling Calculator

And since it's not always easy to explain, here are a few other websites that try to explain how to keep score.

http://slocums.homestead.com/gamescore.html
http://www.bowling2u.com/trivia/game/scoring.asp
http://hubpages.com/hub/Bowling-How-to-Keep-Score
http://helpwithbowling.com/how-to-keep-score-in-bowling.php


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 06:43 PM
Re: Kixgolf - Bowling Calculator

Thanks Allen!

almost fell asleep waiting though \:\)


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 06:50 PM
Re: Kixgolf - Bowling Calculator

example 1 is wrong.

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 06:53 PM
Re: Kixgolf - Bowling Calculator

 Quote:
- For a strike, a player is awarded ten points, plus a bonus of whatever is scored with the next two rolls/balls. (for a maximum of 30 points in any frame)


the correct score would be:
Frame 1: 10 + (10+10)=30
Frame 2: 10 + (10+9) =29
Frame 3: 7+2 =9
Total =68


am I wrong?


AllenAdministrator
(KiX Supporter)
2010-11-28 06:55 PM
Re: Kixgolf - Bowling Calculator

If it were
X X X then it would be 30... but it's X X 7=27


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 06:55 PM
Re: Kixgolf - Bowling Calculator

oh, I think I see.
the player is not awarded nothing. just the scores.
cool, moving on...


JochenAdministrator
(KiX Supporter)
2010-11-28 07:00 PM
Re: Kixgolf - Bowling Calculator

Tricky ...

Björn
(Korg Regular)
2010-11-28 07:05 PM
Re: Kixgolf - Bowling Calculator

*mumbl*. Somewhat tricky indeed, or perhaps just me not being good at golfing nor bowling ;P

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 07:41 PM
Re: Kixgolf - Bowling Calculator

first try failed \:\(

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 08:12 PM
Re: Kixgolf - Bowling Calculator

wtf!!!
how does:
9/ 9/ 9/...

result in anything other than:
19 19 ... ???????

I can't get the stupid logic of this game.
where does, the extra bonuses come from in example 3????


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 08:24 PM
Re: Kixgolf - Bowling Calculator

still that question remains, how does it any way make sense, I have no idea.

but, just letting you guys know, I need to start from scratch... had a huge design flaw in my code \:\)


AllenAdministrator
(KiX Supporter)
2010-11-28 08:24 PM
Re: Kixgolf - Bowling Calculator

lol... I think I am seriously enjoying your struggle

9/ means 10 plus the next roll
the next roll is a 9. so the total for the frame would be 19.
So the next frame would be the same... so in total it would be
19 from the previous frame, plus, 10 plus the next roll, 9. for a total of 38... repeat.

You might check out the other links I provided. It's hard to grasp at first.


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 09:33 PM
Re: Kixgolf - Bowling Calculator

ELLO ELLO!

 Code:
KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_bc.KIX

Computer
OS               = Windows 6.1 / 1
CPU              = AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
Speed            = 2200 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/28 22:32:30.164
Processing End   = 2010/11/28 22:32:30.653
Duration         = 0000/00/00 00:00:00.489
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 796

Thank you for participating in KiXtart Golf!
Press any key to continue...


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 09:35 PM
Re: Kixgolf - Bowling Calculator

nah, not gonna check any links when the code works \:\)

Benny69
(MM club member)
2010-11-28 09:42 PM
Re: Kixgolf - Bowling Calculator

You DAWG! ;\)

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 09:46 PM
Re: Kixgolf - Bowling Calculator

a little shorter:
 Code:
KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.KIX

Computer
OS               = Windows 7 Professional Edition
CPU              = AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
Speed            = 2200 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/28 22:44:07.239
Processing End   = 2010/11/28 22:44:07.321
Duration         = 0000/00/00 00:00:00.081
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 411

Thank you for participating in KiXtart Golf!
Press any key to continue...


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 09:51 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 398

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 09:59 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 383

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:04 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 360

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:06 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 340

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:10 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 328

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:29 PM
Re: Kixgolf - Bowling Calculator

damn, getting slower...
KiXGolf Score = 327


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:32 PM
Re: Kixgolf - Bowling Calculator

guess maybe not...
 Code:
KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.KIX

Computer
OS               = Windows 7 Professional Edition
CPU              = AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
Speed            = 2200 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/28 23:31:21.330
Processing End   = 2010/11/28 23:31:21.404
Duration         = 0000/00/00 00:00:00.073
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 310

Thank you for participating in KiXtart Golf!
Press any key to continue...


LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:39 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 307

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:42 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 305

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:46 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 302

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 10:56 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 294

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 11:01 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 293

LonkeroAdministrator
(KiX Master Guru)
2010-11-28 11:20 PM
Re: Kixgolf - Bowling Calculator

doh...
KiXGolf Score = 290


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 12:00 AM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 288

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 12:04 AM
Re: Kixgolf - Bowling Calculator

make that 286

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 12:30 AM
Re: Kixgolf - Bowling Calculator

I was just informed that I can play as much as I want for at least a day and I won't be missed.
awesome.


ShaneEP
(MM club member)
2010-11-29 01:29 AM
Re: Kixgolf - Bowling Calculator

Nice, just now able to take a look. Will be back with something eventually.

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 01:30 AM
Re: Kixgolf - Bowling Calculator

hehee...
KiXGolf Score = 273


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 01:33 AM
Re: Kixgolf - Bowling Calculator

@shane, good to hear that at least someone might be trying.

KiXGolf Score = 271

KiXGolf Score = 270


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 01:43 AM
Re: Kixgolf - Bowling Calculator

269

and now it's freaking messy!


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 01:52 AM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 265

guess that's it.


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 01:56 AM
Re: Kixgolf - Bowling Calculator

or not...
KiXGolf Score = 259


maciep
(Korg Regular)
2010-11-29 03:29 AM
Re: Kixgolf - Bowling Calculator

On the course....

 Code:
KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows Vista Enterprise Edition
CPU              = Intel Pentium III
Speed            = 2394 MHz
Memory           = 1960 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/28 21:27:08.022
Processing End   = 2010/11/28 21:27:08.022
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 345


maciep
(Korg Regular)
2010-11-29 03:55 AM
Re: Kixgolf - Bowling Calculator

Got the easy ones...I'll dig back in tomorrow

KiXGolf Score = 328


JochenAdministrator
(KiX Supporter)
2010-11-29 10:09 AM
Re: Kixgolf - Bowling Calculator

Got my strategy figured .. now to implement (If time allows today)

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 11:46 AM
Re: Kixgolf - Bowling Calculator

way to go maciep. I was hoping you would land somewhere near...

BradV
(Seasoned Scripter)
2010-11-29 01:54 PM
Re: Kixgolf - Bowling Calculator

I'll have to download this afternoon when I get home. See if I can break the 700 barrier. \:\)

JochenAdministrator
(KiX Supporter)
2010-11-29 02:46 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Jochen
Got my strategy figured .. now to implement (If time allows today)


Strategy discarded as not implementable.

Gawd, this is really tricky for me

Edith says:
Well, at the moment I am able to solve tests 1 and 3 with a score of 111 109 .. so, should be in the scorers pool soon


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 03:50 PM
Re: Kixgolf - Bowling Calculator

LOL

maciep
(Korg Regular)
2010-11-29 03:51 PM
Re: Kixgolf - Bowling Calculator

Back at it this morning:
KiXGolf Score = 278

Yeah, Jochen, this one is pretty tricky...thought it was gonna be a breeze, but it definitely had me banging my head for a while

And I got a feeling my code might be getting kinda messy soon too, Jooel \:\)


JochenAdministrator
(KiX Supporter)
2010-11-29 03:54 PM
Re: Kixgolf - Bowling Calculator

Well, well, well

passing tests 1,3,6 and 9 with a score of 128 now \:D
now on to struggle those pesky strikes!


maciep
(Korg Regular)
2010-11-29 04:00 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 251

maciep
(Korg Regular)
2010-11-29 04:09 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 239

maciep
(Korg Regular)
2010-11-29 04:19 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 230

JochenAdministrator
(KiX Supporter)
2010-11-29 04:33 PM
Re: Kixgolf - Bowling Calculator

With a score of 179 I only fail 3 of 17 tests, and these only by 1 ....

*GNNNNNNNAAAAH*


AllenAdministrator
(KiX Supporter)
2010-11-29 04:35 PM
Re: Kixgolf - Bowling Calculator

New Leader!

 Quote:

Gawd, this is really tricky for me


Somewhere in the back of my mind, I remember you saying something about the last one being too easy \:\)

If it's any consolation, I spent the better part of two evenings figuring this one out.



JochenAdministrator
(KiX Supporter)
2010-11-29 04:51 PM
Re: Kixgolf - Bowling Calculator

Huzzah!!!! \:D



KiXtart
KiXtart Version = 4.61
KiXGolf Script = kixgolf_bc.kix

Computer
OS = Windows XP Professional
CPU = Intel Pentium Model 14
Speed = 1662 MHz
Memory = 1014 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/29 16:36:54.125
Processing End = 2010/11/29 16:36:54.187
Duration = 0000/00/00 00:00:00.061
# Tests Run = 17
# Tests Passed = 17
# Tests Failed = 0
Result = passed
KiXGolf Score = 178

Thank you for participating in KiXtart Golf!








maciep
(Korg Regular)
2010-11-29 04:58 PM
Re: Kixgolf - Bowling Calculator

Wow, well done Jochen!! Obviously, there is a better way for me to approach this one....

AllenAdministrator
(KiX Supporter)
2010-11-29 05:04 PM
Re: Kixgolf - Bowling Calculator

Jooel is in last place! \:\)

JochenAdministrator
(KiX Supporter)
2010-11-29 06:05 PM
Re: Kixgolf - Bowling Calculator

I want to see this black on white ... BOARD PLEASE

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 06:15 PM
Re: Kixgolf - Bowling Calculator

lol!!!!!!!!!!!!!!!

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 06:27 PM
Re: Kixgolf - Bowling Calculator

hehee...
KiXGolf Score = 257

so way behind.


Glenn BarnasAdministrator
(KiX Supporter)
2010-11-29 07:16 PM
Re: Kixgolf - Bowling Calculator

I'll have to try a round tonight, if only to pull Lonk out of last place. \:D

Glenn


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 09:03 PM
Re: Kixgolf - Bowling Calculator

guys... keep on talking like that and I shall resume the game!

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 09:30 PM
Re: Kixgolf - Bowling Calculator

255...

k, guess it's time to do it from scratch with less elegant code...


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 09:38 PM
Re: Kixgolf - Bowling Calculator

k, new code, good start: "tests failed 17"

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 09:46 PM
Re: Kixgolf - Bowling Calculator

is it possible to get a score of 2048 in bowling?
just asking...


Björn
(Korg Regular)
2010-11-29 09:47 PM
Re: Kixgolf - Bowling Calculator

lol. I got home some 40 mins ago, been awake since 4:30 - I will not try this yet.. (then I know I won't sleep until I got something running (around 1,5k :P )

JochenAdministrator
(KiX Supporter)
2010-11-29 09:50 PM
Re: Kixgolf - Bowling Calculator

as you wish..


KiXGolf Score    = 176




LonkeroAdministrator
(KiX Master Guru)
2010-11-29 09:51 PM
Re: Kixgolf - Bowling Calculator

oops, old code:
KiXGolf Score = 244


Björn
(Korg Regular)
2010-11-29 09:52 PM
Re: Kixgolf - Bowling Calculator

Oy, why does mine start with 23 without adding a line? I'm not good at this, should it not start at like - 2300? \:D

Mart
(KiX Supporter)
2010-11-29 09:54 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Lonkero
is it possible to get a score of 2048 in bowling?
just asking...


LOL
Max score in bowling is 300. 11 strikes in a row.


JochenAdministrator
(KiX Supporter)
2010-11-29 10:04 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Björn
Oy, why does mine start with 23 without adding a line? I'm not good at this, should it not start at like - 2300? \:D


That's counting "function a($) endfunction" = 23
-2300 would be too much of a handicap ;\)


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 10:05 PM
Re: Kixgolf - Bowling Calculator

hmm... 12 or 13 strikes, wasn't it?

anyways, oops II, old code:
KiXGolf Score = 238


JochenAdministrator
(KiX Supporter)
2010-11-29 10:05 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Mart
 Originally Posted By: Lonkero
is it possible to get a score of 2048 in bowling?
just asking...


LOL
Max score in bowling is 300. 11 strikes in a row.


Make that 12 strikes in row ..


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 10:12 PM
Re: Kixgolf - Bowling Calculator

oohlalaa!
 Code:
KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.KIX

Computer
OS               = Windows 7 Professional Edition
CPU              = AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
Speed            = 2200 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/29 23:11:32.367
Processing End   = 2010/11/29 23:11:32.425
Duration         = 0000/00/00 00:00:00.058
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 220

Thank you for participating in KiXtart Golf!
Press any key to continue...


I guess I will scrap that new code for now...


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 10:14 PM
Re: Kixgolf - Bowling Calculator

oopsidaisee...

KiXGolf Score = 212


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 10:16 PM
Re: Kixgolf - Bowling Calculator

or, better yet: KiXGolf Score = 209

Mart
(KiX Supporter)
2010-11-29 10:33 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Jochen

...
Make that 12 strikes in row ..


My bad


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 10:46 PM
Re: Kixgolf - Bowling Calculator

uhm...
KiXGolf Score = 205

KiXGolf Score = 204


JochenAdministrator
(KiX Supporter)
2010-11-29 10:59 PM
Re: Kixgolf - Bowling Calculator


KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 15
Speed            = 2400 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/29 22:58:42.971
Processing End   = 2010/11/29 22:58:42.971
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 175

Thank you for participating in KiXtart Golf!



maciep
(Korg Regular)
2010-11-29 11:04 PM
Re: Kixgolf - Bowling Calculator

Been trying to come up with some new code too...nothing doing yet.

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 11:23 PM
Re: Kixgolf - Bowling Calculator

WTG JPOL!

Maciep, will happen, I'm sure of it.
in the meanwhile:
 Code:
KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.KIX

Computer
OS               = Windows 7 Professional Edition
CPU              = AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
Speed            = 2200 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/30 00:21:50.164
Processing End   = 2010/11/30 00:21:50.218
Duration         = 0000/00/00 00:00:00.054
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 200

Thank you for participating in KiXtart Golf!


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 11:31 PM
Re: Kixgolf - Bowling Calculator

hey!
KiXGolf Score = 198


Björn
(Korg Regular)
2010-11-29 11:33 PM
Re: Kixgolf - Bowling Calculator

hrmp. I'm still stuck.. Let's hope I can come up with something working soon (still can't figure out the scoring system!)

LonkeroAdministrator
(KiX Master Guru)
2010-11-29 11:34 PM
Re: Kixgolf - Bowling Calculator

so, the official scoreboard?

Jochen 175
Jooel 198
Eric 230

was that everyone?


LonkeroAdministrator
(KiX Master Guru)
2010-11-29 11:37 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 195

maciep
(Korg Regular)
2010-11-30 12:01 AM
Re: Kixgolf - Bowling Calculator

Ok, got some new code...getting there

KiXGolf Score = 197


maciep
(Korg Regular)
2010-11-30 12:27 AM
Re: Kixgolf - Bowling Calculator

Ok, I'm done for the day...back at it tomorrow night

KiXGolf Score = 188


JochenAdministrator
(KiX Supporter)
2010-11-30 07:54 AM
Re: Kixgolf - Bowling Calculator

Nice one mace!

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 14
Speed            = 1662 MHz
Memory           = 1014 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/30 07:53:04.984
Processing End   = 2010/11/30 07:53:05.015
Duration         = 0000/00/00 00:00:00.030
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 173

Thank you for participating in KiXtart Golf!



Benny69
(MM club member)
2010-11-30 08:04 AM
Re: Kixgolf - Bowling Calculator

ok, 700 and 5/17, OMG! Brain Hurtz!, start again 2morow nite,... nite,nite

JochenAdministrator
(KiX Supporter)
2010-11-30 09:59 AM
Re: Kixgolf - Bowling Calculator

Wow Dale,

what're you doing there?

Heh, I still wait on Rogier taking the lead with some code like
$a = join(split(join(split($,X),&&),4.5&"/"),µ)


JochenAdministrator
(KiX Supporter)
2010-11-30 10:55 AM
Re: Kixgolf - Bowling Calculator

Oh hey,


KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 14
Speed            = 1662 MHz
Memory           = 1014 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/30 10:54:40.328
Processing End   = 2010/11/30 10:54:40.359
Duration         = 0000/00/00 00:00:00.030
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 172

Thank you for participating in KiXtart Golf!



BradV
(Seasoned Scripter)
2010-11-30 12:10 PM
Re: Kixgolf - Bowling Calculator

I just started looking at it last night. Hopefully I'll be able to come up with a score tonight. I'll shoot for 700 to start. \:\)

LonkeroAdministrator
(KiX Master Guru)
2010-11-30 12:31 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Jochen

Heh, I still wait on Rogier taking the lead with some code like
$a = join(split(join(split($,X),&&),4.5&"/"),µ)


hey, be careful. you might get disqualified for posting code during private round ;\)


JochenAdministrator
(KiX Supporter)
2010-11-30 03:09 PM
Re: Kixgolf - Bowling Calculator

Hm, Hah, well,

Result           = passed
KiXGolf Score    = 171



ShaneEP
(MM club member)
2010-11-30 09:21 PM
Re: Kixgolf - Bowling Calculator

well I'm passing 14 of 17 with a score of 602. Something tells me I'm over complicating things a bit. Time to start over.

LonkeroAdministrator
(KiX Master Guru)
2010-11-30 09:39 PM
Re: Kixgolf - Bowling Calculator

that is about the same I started with. just keep it going.

LonkeroAdministrator
(KiX Master Guru)
2010-11-30 09:58 PM
Re: Kixgolf - Bowling Calculator

damn, that was a hard one :@
three times I had to remodel the script to get 2 off \:\(

KiXGolf Score = 193


Bryce
(KiX Supporter)
2010-11-30 10:04 PM
Re: Kixgolf - Bowling Calculator

every time i try to sit down and do this, i get distracted... they got me playing with digital xrays and usb xray sensors at a new dental office....


would rather be golfing!


Glenn BarnasAdministrator
(KiX Supporter)
2010-11-30 10:50 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Lonkero
 Originally Posted By: Jochen

Heh, I still wait on Rogier taking the lead with some code like
$a = join(split(join(split($,X),&&),4.5&"/"),µ)


hey, be careful. you might get disqualified for posting code during private round ;\)
That's code? \:D

I'm on my 5th or better rewrite - not having any real time to focus on it this time.

G-


maciep
(Korg Regular)
2010-12-01 12:05 AM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 186

Still doesn't quite look "golfed" yet


maciep
(Korg Regular)
2010-12-01 12:21 AM
Re: Kixgolf - Bowling Calculator

Better, but running out of places to cut...

 Code:
KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows Vista Enterprise Edition
CPU              = Intel Pentium III
Speed            = 2394 MHz
Memory           = 1960 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/11/30 18:19:42.452
Processing End   = 2010/11/30 18:19:42.468
Duration         = 0000/00/00 00:00:00.015
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 178


maciep
(Korg Regular)
2010-12-01 12:51 AM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 175

maciep
(Korg Regular)
2010-12-01 04:29 AM
Re: Kixgolf - Bowling Calculator

it's amazing how much it can help to take a few hours off...

KiXGolf Score = 170


JochenAdministrator
(KiX Supporter)
2010-12-01 09:40 AM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: maciep
it's amazing how much it can help to take a few hours off...

KiXGolf Score = 170


Nice Mace,
I can't think of a way to get mine shorter, so maybe a rewrite from scratch is indicated


JochenAdministrator
(KiX Supporter)
2010-12-01 10:00 AM
Re: Kixgolf - Bowling Calculator

Myself proofed me wrong



Result = passed
KiXGolf Score = 165



JochenAdministrator
(KiX Supporter)
2010-12-01 10:09 AM
Re: Kixgolf - Bowling Calculator

One improvement induces another...

Result           = passed
KiXGolf Score    = 164



LonkeroAdministrator
(KiX Master Guru)
2010-12-01 10:38 AM
Re: Kixgolf - Bowling Calculator

lol.
boys, slow down \:\(


maciep
(Korg Regular)
2010-12-01 12:41 PM
Re: Kixgolf - Bowling Calculator

lol...yeah, jochen, slow down! \:\)

JochenAdministrator
(KiX Supporter)
2010-12-01 12:49 PM
Re: Kixgolf - Bowling Calculator

mkay... I guess this is pretty much it (at least with this version)

AllenAdministrator
(KiX Supporter)
2010-12-01 04:14 PM
Re: Kixgolf - Bowling Calculator


Jochen	164
Maciep	170
Jooel	193

Hey guys... I've been around but not much time to keep up with the scores...

Curious if anyone finds the $verbose modes of any use?

Well here's hoping the stragglers and/or late arrivals get in on the game.


JochenAdministrator
(KiX Supporter)
2010-12-01 04:26 PM
Re: Kixgolf - Bowling Calculator

Yo Allen,

those verbose modes are really useful while slowly getting to a working function.


ShaneEP
(MM club member)
2010-12-01 04:53 PM
Re: Kixgolf - Bowling Calculator

well...it finally works at least. time to try to make it shorter. Is there a prize for most INefficient?

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Home Edition
CPU              = Intel(R) Celeron(R) CPU 2.53GHz
Speed            = 2532 MHz
Memory           = 504 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/01 09:50:13.030
Processing End   = 2010/12/01 09:50:13.046
Duration         = 0000/00/00 00:00:00.016
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 810
 
Thank you for participating in KiXtart Golf!


maciep
(Korg Regular)
2010-12-01 06:17 PM
Re: Kixgolf - Bowling Calculator

Good job, Shane! Now just start shaving off some strokes!

Allen, I agree, verbose mode is wonderful when the script doesn't work...add a little output of my own and it makes it much easier to see where the logic breaks down


JochenAdministrator
(KiX Supporter)
2010-12-01 06:56 PM
Re: Kixgolf - Bowling Calculator

Good job Shane,

now get off them strokes, I bet there are a few hundred uneccessary ;\)


LonkeroAdministrator
(KiX Master Guru)
2010-12-01 10:29 PM
Re: Kixgolf - Bowling Calculator

I made a shortcut so I can use the verbose mode with wki32.exe

it's always usefull. even when you break up something by mistake.


BradV
(Seasoned Scripter)
2010-12-01 11:01 PM
Re: Kixgolf - Bowling Calculator

Well, I at least got it to work and was below my target 700! \:\)

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Media Center Edition
CPU              = Intel(R) Pentium(R) 4 CPU 3.00GHz
Speed            = 3000 MHz
Memory           = 1016 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/01 16:59:19.741
Processing End   = 2010/12/01 16:59:19.757
Duration         = 0000/00/00 00:00:00.015
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 553
 
Thank you for participating in KiXtart Golf!


AllenAdministrator
(KiX Supporter)
2010-12-01 11:07 PM
Re: Kixgolf - Bowling Calculator

Great to see some others stepping up (Shane, Brad)!

Jochen	164
Maciep	170
Jooel	193
BradV	553
Citrix	810


Thanks for letting me know on the verbose...

Jooel... you've been awfully quiet???


BradV
(Seasoned Scripter)
2010-12-01 11:12 PM
Re: Kixgolf - Bowling Calculator

Hmm, I think I'll have to go look through old golfing matches to see folks tricks on how do things "quickly."

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 529


BradV
(Seasoned Scripter)
2010-12-02 01:41 AM
Re: Kixgolf - Bowling Calculator

Well, this is about as far as I can o tonight.

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows 7 Professional Edition
CPU              = Intel Pentium Model 12
Speed            = 3373 MHz
Memory           = 4096 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/01 19:35:32.640
Processing End   = 2010/12/01 19:35:32.655
Duration         = 0000/00/00 00:00:00.014
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 417
 
Thank you for participating in KiXtart Golf!


maciep
(Korg Regular)
2010-12-02 03:19 AM
Re: Kixgolf - Bowling Calculator

slow and steady wins the race...

KiXGolf Score = 169


ShaneEP
(MM club member)
2010-12-02 04:26 AM
Re: Kixgolf - Bowling Calculator

got a lil better...not sure ill have much more time to work on it in the private phase. but i am sure i never want to think this much about bowling scores ever again haha.

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows Vista Home Premium Edition
CPU              = AMD Turion(tm) 64 X2 Mobile Technology TL-60
Speed            = 2000 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/01 21:23:03.139
Processing End   = 2010/12/01 21:23:03.155
Duration         = 0000/00/00 00:00:00.016
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 538
 
Thank you for participating in KiXtart Golf!


LonkeroAdministrator
(KiX Master Guru)
2010-12-02 07:09 PM
Re: Kixgolf - Bowling Calculator

FINALLY!

 Code:
KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.KIX

Computer
OS               = Windows 7 Professional Edition
CPU              = AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
Speed            = 2200 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/02 20:07:50.340
Processing End   = 2010/12/02 20:07:50.622
Duration         = 0000/00/00 00:00:00.282
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 187


LonkeroAdministrator
(KiX Master Guru)
2010-12-02 07:51 PM
Re: Kixgolf - Bowling Calculator

and stuck again...

LonkeroAdministrator
(KiX Master Guru)
2010-12-02 08:02 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 181

AllenAdministrator
(KiX Supporter)
2010-12-03 01:48 AM
Re: Kixgolf - Bowling Calculator

Jochen	164
Maciep	169
Jooel	181
BradV	417
Citrix	538




maciep
(Korg Regular)
2010-12-03 02:42 AM
Re: Kixgolf - Bowling Calculator

 Code:
KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/02 20:41:26.886
Processing End   = 2010/12/02 20:41:26.902
Duration         = 0000/00/00 00:00:00.016
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 165


Mart
(KiX Supporter)
2010-12-03 10:11 AM
Re: Kixgolf - Bowling Calculator

Nice! \:\)
Just one to go for a draw on first place.......


JochenAdministrator
(KiX Supporter)
2010-12-03 10:14 AM
Re: Kixgolf - Bowling Calculator

\:o

Well, ummm, slow down Eric. lol


Björn
(Korg Regular)
2010-12-03 12:58 PM
Re: Kixgolf - Bowling Calculator

I will not make the deadline ... :(. But, I'll continue anyways later on, work is eating up all my time..


maciep
(Korg Regular)
2010-12-03 11:30 PM
Re: Kixgolf - Bowling Calculator

 Quote:
Well, ummm, slow down Eric. lol


Haha...not sure I can go much slower \:\)


AllenAdministrator
(KiX Supporter)
2010-12-04 12:50 AM
Re: Kixgolf - Bowling Calculator

Man... one score update in 24 hours... a little slow in here for sure.

ShaneEP
(MM club member)
2010-12-04 04:53 PM
Re: Kixgolf - Bowling Calculator

Got off a couple hundred more with this last rewrite...at least I closed the gap a little.

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Home Edition
CPU              = Intel(R) Celeron(R) CPU 2.53GHz
Speed            = 2532 MHz
Memory           = 504 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/04 09:51:52.968
Processing End   = 2010/12/04 09:51:52.999
Duration         = 0000/00/00 00:00:00.031
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 330
 
Thank you for participating in KiXtart Golf!


ShaneEP
(MM club member)
2010-12-04 05:02 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 311

ShaneEP
(MM club member)
2010-12-04 05:10 PM
Re: Kixgolf - Bowling Calculator

I like the irony of ending with a score of 300.

 Code:
KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Home Edition
CPU              = Intel(R) Celeron(R) CPU 2.53GHz
Speed            = 2532 MHz
Memory           = 504 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/04 10:08:48.594
Processing End   = 2010/12/04 10:08:48.610
Duration         = 0000/00/00 00:00:00.016
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 300
 
Thank you for participating in KiXtart Golf!


maciep
(Korg Regular)
2010-12-04 06:33 PM
Re: Kixgolf - Bowling Calculator

Well done Shane!!

I love this part of the private round...when I start to wonder if Jochen and I have the same code....

 Code:
KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/04 12:32:04.446
Processing End   = 2010/12/04 12:32:04.466
Duration         = 0000/00/00 00:00:00.019
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 164


maciep
(Korg Regular)
2010-12-04 06:45 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 161

maciep
(Korg Regular)
2010-12-04 06:49 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 160

JochenAdministrator
(KiX Supporter)
2010-12-04 07:01 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: maciep
Well done Shane!!

I love this part of the private round...when I start to wonder if Jochen and I have the same code....


Most probably not .. as I can't shorten mine anymore \:\(

Rewrite!!!


maciep
(Korg Regular)
2010-12-04 07:17 PM
Re: Kixgolf - Bowling Calculator

 Quote:

Most probably not .. as I can't shorten mine anymore


I thought that a few times now...haven't been right yet


JochenAdministrator
(KiX Supporter)
2010-12-04 07:33 PM
Re: Kixgolf - Bowling Calculator

Rewritten code passes with a score of 169

JochenAdministrator
(KiX Supporter)
2010-12-04 07:37 PM
Re: Kixgolf - Bowling Calculator

New code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 15
Speed            = 2400 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/04 19:36:28.856
Processing End   = 2010/12/04 19:36:28.856
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 163

Thank you for participating in KiXtart Golf!


3 9 to catch up, 4 10 to take lead ...


maciep
(Korg Regular)
2010-12-04 07:57 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 154

JochenAdministrator
(KiX Supporter)
2010-12-04 08:07 PM
Re: Kixgolf - Bowling Calculator

Wow, what're you doing there?

maciep
(Korg Regular)
2010-12-04 08:13 PM
Re: Kixgolf - Bowling Calculator

Golfing \:\) I have a tendency to miss some real obvious strokes if I don't pay attention. Luckily, I decided to write up an explanation of my function to post tomorrow, which helped make those obvious strokes a little more obvious.

maciep
(Korg Regular)
2010-12-04 08:19 PM
Re: Kixgolf - Bowling Calculator

Ok, I'm done...154 it is. Explanation is written and I've got a lazy Saturday to get back to. If there are more strokes to be found, they'll have to be found in the public round.

Good luck to the rest of you and I'll see ya tomorrow!


ShaneEP
(MM club member)
2010-12-04 08:25 PM
Re: Kixgolf - Bowling Calculator

Wow you guys are awesome. Your inspiration, lead me to check again.
 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Home Edition
CPU              = Intel(R) Celeron(R) CPU 2.53GHz
Speed            = 2532 MHz
Memory           = 504 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/04 13:24:41.297
Processing End   = 2010/12/04 13:24:41.313
Duration         = 0000/00/00 00:00:00.016
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 287
 
Thank you for participating in KiXtart Golf!


ShaneEP
(MM club member)
2010-12-04 09:25 PM
Re: Kixgolf - Bowling Calculator

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Home Edition
CPU              = Intel(R) Celeron(R) CPU 2.53GHz
Speed            = 2532 MHz
Memory           = 504 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/04 14:25:26.219
Processing End   = 2010/12/04 14:25:26.235
Duration         = 0000/00/00 00:00:00.016
# Tests Run      = 17
# Tests Passed   = 17
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 273
 
Thank you for participating in KiXtart Golf!


AllenAdministrator
(KiX Supporter)
2010-12-04 10:36 PM
Re: Kixgolf - Bowling Calculator

Maciep	154
Jochen	163
Jooel	181
Citrix	273
BradV	417
 




maciep
(Korg Regular)
2010-12-05 06:13 PM
Re: Kixgolf - Bowling Calculator

I just realized my code will fail in some instances...got a few minutes to try correcting

AllenAdministrator
(KiX Supporter)
2010-12-05 06:20 PM
Re: Kixgolf - Bowling Calculator

Please post your last good score then.

AllenAdministrator
(KiX Supporter)
2010-12-05 06:22 PM
Re: Kixgolf - Bowling Calculator

Actually... if it passes all public tests... its considered good... with less then 10 minutes left there is no way to fix it until the public round.

maciep
(Korg Regular)
2010-12-05 06:25 PM
Re: Kixgolf - Bowling Calculator

lol, not sure when my logic broke...might have been after the 230 round. I think you can just scratch me for this one.

Here is an example test score I came up with that my code doesn't pass.

12 11 11 21 41 51 35 53 x 12=53


AllenAdministrator
(KiX Supporter)
2010-12-05 06:30 PM
Re: Kixgolf - Bowling Calculator

Damn... I can't believe I missed the test case of a strike in the ninth frame with an open in the 10th.

maciep
(Korg Regular)
2010-12-05 06:34 PM
Re: Kixgolf - Bowling Calculator

I can't believe I didn't realize my logic was messed up until now!

JochenAdministrator
(KiX Supporter)
2010-12-05 06:36 PM
Re: Kixgolf - Bowling Calculator

well, my 163 code passes this 18th test...


KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 15
Speed            = 2400 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/05 18:34:50.517
Processing End   = 2010/12/05 18:34:50.533
Duration         = 0000/00/00 00:00:00.015
# Tests Run      = 18
# Tests Passed   = 18
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 163

Thank you for participating in KiXtart Golf!


What now?


AllenAdministrator
(KiX Supporter)
2010-12-05 06:36 PM
Re: Kixgolf - Bowling Calculator

Do not post code yet... lets talk for a second...

JochenAdministrator
(KiX Supporter)
2010-12-05 06:38 PM
Re: Kixgolf - Bowling Calculator

from my point of view prolongation of the private round is ok.

AllenAdministrator
(KiX Supporter)
2010-12-05 06:40 PM
Re: Kixgolf - Bowling Calculator

I want to be fair about this. The rules say that if your code passes all public tests then it counts. But submitting a new test so late in the game...

Two questions...

Jochen, since you are in 2nd, would you be apposed to a 3 hour extension? It might mean you will end up in first.

Eric... do you have time right now to fix this if time is added?


maciep
(Korg Regular)
2010-12-05 06:40 PM
Re: Kixgolf - Bowling Calculator

I don't mind either way...Steelers don't play til tonight \:\)

JochenAdministrator
(KiX Supporter)
2010-12-05 06:42 PM
Re: Kixgolf - Bowling Calculator

Might cconsider even a 24 hour extension .. we've had this case of new test cases in the past, and the extension period was always comfortable for all involved..

AllenAdministrator
(KiX Supporter)
2010-12-05 06:50 PM
Re: Kixgolf - Bowling Calculator

Okay Jochen... I agree. I'll update the scoreboard in a second with a new clock...

AllenAdministrator
(KiX Supporter)
2010-12-05 06:57 PM
Re: Kixgolf - Bowling Calculator

Please add test case 18 to your ini.
12 11 11 21 41 51 35 53 x 12=53



Jochen	163
Jooel	181
Citrix	273
BradV	417
Maciep	???
 




maciep
(Korg Regular)
2010-12-05 08:29 PM
Re: Kixgolf - Bowling Calculator

amazing how many strokes i need to add to cover that case...

KiXGolf Score = 200


maciep
(Korg Regular)
2010-12-05 08:35 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 191

maciep
(Korg Regular)
2010-12-05 09:45 PM
Re: Kixgolf - Bowling Calculator

My brain is starting to hurt

 Code:
KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/05 15:43:56.932
Processing End   = 2010/12/05 15:43:56.948
Duration         = 0000/00/00 00:00:00.015
# Tests Run      = 18
# Tests Passed   = 18
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 162


maciep
(Korg Regular)
2010-12-05 09:53 PM
Re: Kixgolf - Bowling Calculator

KiXGolf Score = 159

maciep
(Korg Regular)
2010-12-05 10:10 PM
Re: Kixgolf - Bowling Calculator

Done for now...

KiXGolf Score = 157


LonkeroAdministrator
(KiX Master Guru)
2010-12-06 01:08 AM
Re: Kixgolf - Bowling Calculator

k, with the new test case:
 Code:
KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.KIX

Computer
OS               = Windows 7 Professional Edition
CPU              = AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
Speed            = 2200 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/06 02:07:39.015
Processing End   = 2010/12/06 02:07:39.170
Duration         = 0000/00/00 00:00:00.154
# Tests Run      = 18
# Tests Passed   = 18
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 181


ShaneEP
(MM club member)
2010-12-06 03:41 AM
Re: Kixgolf - Bowling Calculator

I was an idiot and forgot to bring my newest code home with me from work. I dont see any reason it wont pass the new test though. I will test it in the morning.

JochenAdministrator
(KiX Supporter)
2010-12-06 07:24 AM
Re: Kixgolf - Bowling Calculator

Hey Eric,
positions restored, good job!
Very curious to see your code.


JochenAdministrator
(KiX Supporter)
2010-12-06 10:20 AM
Re: Kixgolf - Bowling Calculator

WTF!!! (and that means not Welcome To Facebook)


KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 14
Speed            = 1662 MHz
Memory           = 1014 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/06 10:18:12.343
Processing End   = 2010/12/06 10:18:12.375
Duration         = 0000/00/00 00:00:00.031
# Tests Run      = 18
# Tests Passed   = 18
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 157

Thank you for participating in KiXtart Golf!




JochenAdministrator
(KiX Supporter)
2010-12-06 10:43 AM
Re: Kixgolf - Bowling Calculator

In the mean time it won't surprise me if we had the same code

BradV
(Seasoned Scripter)
2010-12-06 11:54 AM
Re: Kixgolf - Bowling Calculator

Sorry, had a busy weekend. I'll have to look when I get home this afternoon.

maciep
(Korg Regular)
2010-12-06 02:43 PM
Re: Kixgolf - Bowling Calculator

Nice, Jochen! I guess we'll find out in a couple hours how much we think alike... ;\)

maciep
(Korg Regular)
2010-12-06 02:56 PM
Re: Kixgolf - Bowling Calculator

One more..
KiXGolf Score = 156

Got some errands to run this morning, so this might be it for me


JochenAdministrator
(KiX Supporter)
2010-12-06 03:10 PM
Re: Kixgolf - Bowling Calculator



AllenAdministrator
(KiX Supporter)
2010-12-06 03:12 PM
Re: Kixgolf - Bowling Calculator

lol!

Nice work guys... curious if anyone ever remembers a game ending in a tie?


JochenAdministrator
(KiX Supporter)
2010-12-06 03:47 PM
Re: Kixgolf - Bowling Calculator

Nah, that never happened.
It was soo close today, but I guess it won't happen anymore.


JochenAdministrator
(KiX Supporter)
2010-12-06 04:15 PM
Re: Kixgolf - Bowling Calculator

*Ka-ching*


KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 14
Speed            = 1662 MHz
Memory           = 1014 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/06 16:13:19.843
Processing End   = 2010/12/06 16:13:19.875
Duration         = 0000/00/00 00:00:00.031
# Tests Run      = 18
# Tests Passed   = 18
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 155

Thank you for participating in KiXtart Golf!




ShaneEP
(MM club member)
2010-12-06 04:30 PM
Re: Kixgolf - Bowling Calculator

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_bc.kix

Computer
OS               = Windows XP Home Edition
CPU              = Intel(R) Celeron(R) CPU 2.53GHz
Speed            = 2532 MHz
Memory           = 504 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Bowling Calculator
Processing Start = 2010/12/06 09:28:47.703
Processing End   = 2010/12/06 09:28:47.718
Duration         = 0000/00/00 00:00:00.014
# Tests Run      = 18
# Tests Passed   = 18
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 265
 
Thank you for participating in KiXtart Golf!


JochenAdministrator
(KiX Supporter)
2010-12-06 04:35 PM
Re: Kixgolf - Bowling Calculator

Go Shane!

only 85 to leave Jooel behind


maciep
(Korg Regular)
2010-12-06 05:02 PM
Re: Kixgolf - Bowling Calculator

Well done, Shane...you golfing fool!

So one stroke to tie it up...i'll see what i can do


ShaneEP
(MM club member)
2010-12-06 05:28 PM
Re: Kixgolf - Bowling Calculator

Haha. Question...Is the code supposed to be able to calculate partial scores, like a real computerized score keeper would? Or just the final score string?

JochenAdministrator
(KiX Supporter)
2010-12-06 05:30 PM
Re: Kixgolf - Bowling Calculator

only the final score strings (no more than the ini states)

AllenAdministrator
(KiX Supporter)
2010-12-06 05:31 PM
Re: Kixgolf - Bowling Calculator

Only the final score. I wanted to give everyone the maximum amount of ways to come up with a solution. (Directly or indirectly).

JochenAdministrator
(KiX Supporter)
2010-12-06 05:39 PM
Re: Kixgolf - Bowling Calculator

 Originally Posted By: Allen
Private Round ends in:

ended


AllenAdministrator
(KiX Supporter)
2010-12-06 05:41 PM
Re: Kixgolf - Bowling Calculator

Jochen says... "Man this clock is slow..." \:\)

maciep
(Korg Regular)
2010-12-06 05:48 PM
Re: Kixgolf - Bowling Calculator

 Quote:
Jochen says... "Man this clock is slow..."


haha...no worries, Jochen...you can put a fork in me 'cause I think I'm done \:\)


JochenAdministrator
(KiX Supporter)
2010-12-06 05:49 PM
Re: Kixgolf - Bowling Calculator

Xactly!
And I have to wait another 3 hours to know how this ended..
Sent you my code in a pm.

Cu guys!


AllenAdministrator
(KiX Supporter)
2010-12-06 06:00 PM
Re: Kixgolf - Bowling Calculator

Great Game and Thanks for playing gentleman, the private round is complete.

The public round will continue in the following thread:
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=201073#Post201073