Page 2 of 2 <12
Topic Options
#191382 - 2008-12-22 05:46 PM Re: KiXgolf - A Well-Formed Problem - Public Round [Re: Benny69]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
damn!
_________________________
!

download KiXnet

Top
#191411 - 2008-12-25 01:09 PM Re: KiXgolf - A Well-Formed Problem - Public Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
this is a bug in the parser:
If $ .tagname = $c.tagname

should never accept that one...
_________________________
!

download KiXnet

Top
#191412 - 2008-12-25 01:35 PM Re: KiXgolf - A Well-Formed Problem - Public Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
YEAH!
 Quote:

Your solution passed all tests

KiXtart
KiXtart Version = 4.53
KiXGolf Script = kixgolf_wfp.kix

Computer
OS = Windows XP Professional
CPU = AMD Turion(tm) 64 X2 Mobile Technology TL-64
Speed = 2194 MHz
Memory = 1920 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = A Well-Formed Problem
Processing Start = 2008/12/25 14:33:19.718
Processing End = 2008/12/25 14:33:19.875
Duration = 0000/00/00 00:00:00.156
KiXGolf Score = 217

 Code:
Function WFP($c)
Dim $

$ = CreateObject(Microsoft.XMLDOM)

  $wfp = IIf($.load($c) + Val($.firstChild.nodetype), w, 'non w') + 'ell-formed'
For Each $ in $.getElementsByTagName('*')
      If $.tagname = $.parentnode.tagname
        $wfp = 'non ' + $wfp
      EndFunction
_________________________
!

download KiXnet

Top
#191413 - 2008-12-25 01:56 PM Re: KiXgolf - A Well-Formed Problem - Public Round [Re: Lonkero]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Damn! I was looking at the parentnode thingie yesterday, but I didn't have time to try it out...

Nice one, Jooel!
_________________________
The Code is out there

Top
#191415 - 2008-12-25 05:07 PM Re: KiXgolf - A Well-Formed Problem - Public Round [Re: DrillSergeant]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
indeed.

I've been cracking at it since I lost my lead but today the correct format just hit me.
_________________________
!

download KiXnet

Top
#191720 - 2009-01-08 05:34 AM Re: KiXgolf - A Well-Formed Problem - Public Round [Re: Lonkero]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA

Private Round

Player

Score

Points

DrillSergeant

261

5

Lonkero

639

4

Gargoyle

1050

3

Public Round

Player

Score

Points

Lonkero

217

5

Benny69

230

4

DrillSergeant

261

3

Gargoyle

1050

3

Totals

Player

Score

Participation

Private

Public

Grand

Private

Public

Bonus

Bonus

Points

Points

Totals

Lonkero

639

217

1

1

4

5

11

DrillSergeant

261

261

1

1

5

3

10

Gargoyle

1050

1050

1

1

3

2

7

Benny69

N/A

230

1

0

0

4

5

  • 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 all participants in the private coding round (results posted in private round and valid script posted in public round)
_________________________
There are two types of vessels, submarines and targets.

Top
Page 2 of 2 <12


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

Who's Online
1 registered (mole) and 405 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.056 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

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