Page 3 of 4 <1234>
Topic Options
#181634 - 2007-10-15 10:29 PM Re: KiXgolf: Linear Pachinko - Public Round [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
but...


; begin Linear Pachinko
;!
function a($b)
    dim $c,$,$d
    $=join(split($b,_),$)
    while $
        $d=$c<'/'
        $c=$
        $=right($,~)
        $d=$d+($<'/')
        $a=$a+iif($c>_,$d,2*($c<'/'|$c<_&$d))
    loop
    $a=$a*50/($b^)
endfunction
;!
;!
; end Linear Pachinko



Running Test 1...Done 61
Running Test 2...Done 53
Running Test 3...Done 100
Running Test 4...Done 0
Running Test 5...Done 100
Running Test 6...Done 50
Running Test 7...Done 53
Running Test 8...Done 10
Running Test 9...Done 0
Running Test 10...Done 38
Your solution passed all tests

Your solution passed all tests

KiXtart
KiXtart Version  = 4.53
KiXGolf Script   = kixgolf_lp.kix

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Linear Pachinko
Processing Start = 2007/10/15 22:28:59.717
Processing End   = 2007/10/15 22:28:59.717
Duration         = 0000/00/00 00:00:00.000
KiXGolf Score    = 154

Thank you for participating in KiXtart Golf!


_________________________



Top
#181635 - 2007-10-15 10:31 PM Re: KiXgolf: Linear Pachinko - Public Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
KiXtart IS exciting \:o
_________________________



Top
#181636 - 2007-10-15 10:46 PM Re: KiXgolf: Linear Pachinko - Public Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Lol,

nobody even dared touching Rogiers code.
Oh well, I did, but all I got from that was a 155 score and a headache
_________________________



Top
#181637 - 2007-10-15 10:59 PM Re: KiXgolf: Linear Pachinko - Public Round [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, the liquorice-spirit bottle is empty.
glad I have some peppermint-spirit left...
_________________________
!

download KiXnet

Top
#181639 - 2007-10-16 01:39 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what am I missing.
why this isn't working?
 Code:
function a($b)
    dim $c,$,$d,$!
    $=join(split($b,_),$)
    while $
        $d=$c<'/'
        $c=$
        $=right($,~)
        $d=$d+($<'/')
        $!=$!+iif($c>_,$d,2*($c<'/'|$c<_&$d))
;    loop
    $a=$!*50/($b^)
endfunction
_________________________
!

download KiXnet

Top
#181640 - 2007-10-16 01:46 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
even changed the $a line to:
$a=0+$!*50/($b^)

with no change.
result comes out as vartypename = empty, value = 0

that doesn't make sense.
0 is always integer/long.
_________________________
!

download KiXnet

Top
#181641 - 2007-10-16 01:47 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Lonkero]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Idk but strange thing is that this does, which I think is the same thing:

 Code:
Function a($b)
    $a=e($b)*50/($b^)
EndFunction
Function e($b)
    Dim $c,$,$d
    $=Join(Split($b,_),$)
    While $
        $d=$c<'/'
        $c=$
        $=Right($,~)
        $d=($<'/')+$d
        $e=$e+IIf($c>_,$d,2*($c<'/' | $c<_&$d))
    ;Loop
EndFunction
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#181642 - 2007-10-16 01:48 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Benny69]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
is it a bug in 4.60?
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#181643 - 2007-10-16 01:51 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Benny69]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, at least it's really close.
weird. JOCHEN!!!
come explain, I don't wanna study the code or god forbid, the task at hand. :p
_________________________
!

download KiXnet

Top
#181644 - 2007-10-16 01:52 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Benny69]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
benny, can't be 4.60 as I don't use it.
so, it's either generic issue or something wicked going on I don't see.
_________________________
!

download KiXnet

Top
#181645 - 2007-10-16 04:14 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Lonkero]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Public round is closed. Thanks for participating.
_________________________
There are two types of vessels, submarines and targets.

Top
#181646 - 2007-10-16 04:49 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Sealeopard]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Private Round              
Player Score Points          
DrillSergeant 152 5          
Richard H. 174 4          
Jochen 177 3          
Allen 229 2          
Benny69 288 1          
Gargoyle 481 0          
             
Public Round              
Player Score Points          
DrillSergeant 152 5          
Jochen 154 4          
Jooel 159 3          
Richard H. 174 2          
Benny69 175 1          
Allen 229 0          
Gargoyle 481 0          
             
Memorable Moments              
DrillSergeant: Do not try and follow the ball... that's impossible. Instead only try to realize the truth: There is no ball.
             
Totals              
Player Score Participation Private Public Grand
Private Public Bonus Bonus Points Points Totals
DrillSergeant 152 152 1 1 5 5 12
Jochen 177 154 1 1 3 4 9
Richard H. 174 174 1 1 4 2 8
Allen 229 229 1 1 2 0 4
Benny69 288 175 1 1 1 1 4
Jooel N/A 159 1 0 0 3 4
Gargoyle 481 481 1 0 0 0 1
             
             
1 Point for each participant that posts a KiXgolf script during the public coding round (must be either a new solution or an improvement to an existing solution)
x Points for 1st to 5th place in either the private or public round in reverse order, thus 1st Place = 5 points down to 5th Place = 1 Point
1 Point for the 1st to 5th Place in the private coding round (if valid script was posted in public round)

Congratulations to all participants



Edited by Sealeopard (2007-10-16 04:52 AM)
_________________________
There are two types of vessels, submarines and targets.

Top
#181649 - 2007-10-16 07:12 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
 Originally Posted By: Lonkero
well, at least it's really close.
weird. JOCHEN!!!
come explain, I don't wanna study the code or god forbid, the task at hand. :p


I will later on today...
_________________________



Top
#181653 - 2007-10-16 08:56 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
K, your code:

function a($b)
  dim $c,$,$d,$!
  $=join(split($b,_),$)
  while $
    $d=$c<'/'
    $c=$
    $=right($,~)
    $d=$d+($<'/')
    $!=$!+iif($c>_,$d,2*($c<'/'|$c<_&$d))
  ; loop
  $a=$!*50/($b^)
endfunction

doesn't return anything for test cases 4 and 9 because it never enters the loop... the join(split($b,_),$) renders $ empty as there are only _ characters ;\)

Dale's adaption on the other hand returns a 0 as it calculates even if $ gets emptied in the second function.

Clear?

edit: I had this in the make too :roll:


Edited by Jochen (2007-10-16 09:01 AM)
_________________________



Top
#181659 - 2007-10-16 11:15 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Bah!

Now that Public round is over I found a way to equal Rogiers 152
No need to check for / or \ at all

function a($b)
    dim $c,$,$d
    $=join(split($b,_),$)
    while $
        $d=$c<'/'
        $c=$
        $=right($,~)
        $d=$d+($<'/')
        $a=$a+iif($c>_,$d,2*($c<'/'|($d>)))
    loop
    $a=$a*50/($b^)
endfunction

_________________________



Top
#181660 - 2007-10-16 11:29 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: Jochen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Makes you wish you didn't have that surgery, eh? \:\)

Kixgolf is waaay more important than a working body ;\)
_________________________
The Code is out there

Top
#181661 - 2007-10-16 11:55 AM Re: KiXgolf: Linear Pachinko - Public Round [Re: DrillSergeant]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ja,

but on the other side it is history now. I wouldn't want to have that drainage tube (hose?) yet to be pulled from the inside of my knee
_________________________



Top
#181669 - 2007-10-16 02:31 PM Re: KiXgolf: Linear Pachinko - Public Round [Re: Jochen]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Congrats guys, good round of KiXGolf.

Gargoyle, Well done, glad you joined us.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#181671 - 2007-10-16 04:01 PM Re: KiXgolf: Linear Pachinko - Public Round [Re: Benny69]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Glad I was able to actually solve one of these. The other challanges I was unable to even get something functional.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#181674 - 2007-10-16 06:43 PM Re: KiXgolf: Linear Pachinko - Public Round [Re: Gargoyle]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
makes me think of new bonus scoring schema.

every working solution should get points in private, imo.

what ya think?
_________________________
!

download KiXnet

Top
Page 3 of 4 <1234>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.079 seconds in which 0.031 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org