Page 3 of 5 <12345>
Topic Options
#187018 - 2008-04-17 02:48 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Lonkero]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Mistake, wanted a digit that get's transformed to '0', thus the last digit should be
 Code:
...
|..
|..
_________________________
There are two types of vessels, submarines and targets.

Top
#187022 - 2008-04-17 03:13 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Sealeopard]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
Ok then \:\)

Changed test 6 to:
 Code:
[Test 6]
Input=...........................~..|..|..|..|..|..|..|..||..~..|..|..|..|..|..|..|..||..
Output=111111110


And this is the result:

 Code:

Your solution passed all tests

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_cs.kix

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Check Scanning
Processing Start = 2008/04/17 15:11:28.474
Processing End   = 2008/04/17 15:11:28.612
Duration         = 0000/00/00 00:00:00.137
KiXGolf Score    = 629
 
Thank you for participating in KiXtart Golf!
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187031 - 2008-04-17 06:16 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, we need a new test.
my old code got 6 out of 6 right.
and it shouldn't. imo. it has no logic to deal with these special cases so I must assume, none of the current tests do really test it.

so... I would say we need a test7 with the old test six data but with corrected output.
_________________________
!

download KiXnet

Top
#187033 - 2008-04-17 06:18 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, remco', your test 6 there can't be correct.
it would make last digit as:
...
|..
|..

and to make a zero, we need 4 segments right.
_________________________
!

download KiXnet

Top
#187034 - 2008-04-17 06:22 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sorry, we need 5.
_________________________
!

download KiXnet

Top
#187038 - 2008-04-17 07:19 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Lonkero]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
Hmmm dont understand what you mean with needing 5 segments, I think you need 4 to make a zero

And I assume that the old test 6 should return failure.

And to brighten up the day, I got a new score \:\)

 Code:
Your solution passed all tests

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_cs.kix

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Check Scanning
Processing Start = 2008/04/17 19:08:04.380
Processing End   = 2008/04/17 19:08:04.485
Duration         = 0000/00/00 00:00:00.104
KiXGolf Score    = 588
 
Thank you for participating in KiXtart Golf!
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187039 - 2008-04-17 07:20 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
Off topic... how do you post you're score with the
pre /pre
codes, it doesnt work for me ?

Edit.
Lol it doesnt work in preview but when submitted it works


Edited by RemcovC (2008-04-17 07:21 PM)
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187041 - 2008-04-17 07:43 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
Ok use the next ini to check my script:

[Test 1]
Input=...._.._....._.._.._.._.._.~..|._|._||_||_.|_...||_||_|~..|._.._|..|._||_|..||_|._|
Output=123456789
[Test 2]
Input=...._.._.._.._.._.._....._.~|_||_||.||.||_...|..|..||_.~..|._||_||_||_|..|..|..|._|
Output=ambiguous
[Test 3]
Input=._.._.._.._.._.._.._.._.._.~|_||_||_||_||_||_||_||_||_|~|_||_||_||_||_||_||_||_||_|
Output=failure
[Test 4]
Input=._....._.._.._.._.._.._.._.~|_|..||_||_||_||_||_||_||_|~|_|..||_||_||_||_||_||_||_|
Output=878888888
[Test 5]
Input=...._.._.._.._.._.._....._.~..||_.._|._||.||_.|_|...|_|~..||_|._|._||_||_||_|...._|
Output=163306869
[Test 6]
Input=...........................~..|..|..|..|..|..|..|..||..~..|..|..|..|..|..|..|..||..
Output=111111110
[Test 7]
Input=...........................~..|..|..|..|..|..|..|..|.|.~..|..|..|..|..|..|..|..|.|.
Output=failure


Which results in:

Your solution passed all tests

KiXtart
KiXtart Version = 4.60
KiXGolf Script = kixgolf_cs.kix

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Check Scanning
Processing Start = 2008/04/17 19:41:06.364
Processing End = 2008/04/17 19:41:06.469
Duration = 0000/00/00 00:00:00.104
KiXGolf Score = 575

Thank you for participating in KiXtart Golf!
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187046 - 2008-04-17 09:16 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
Jochen Administrator Offline
KiX Supporter
*****

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

Question to Jens:
can we have a heads up on the official test case until saturday 12:00 (GMT + 1, DST on!)? It's just because my work day is loaded with, uh, work! and not spare time as we have a major GoLive over the "weekend" and I might have to wait until then to start...

to my other fellow Middle-Europeans:
Where the H* is that neat timeanddate.com post with the already translated countdown to the above given timezones deadline(s)? Oh, come on!

Update on AC:
Warning, Spoiler:
I feel like subject 17 in the mean time ;\)


Edited by Jochen (2008-04-17 09:17 PM)
_________________________



Top
#187055 - 2008-04-17 10:53 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Jochen]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
Like this ?


hope i did get the timezone correct


Edited by RemcovC (2008-04-17 10:54 PM)
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187070 - 2008-04-18 04:26 AM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I've added RemcovC's test case 7 to the official package. No more tests will be added. Hope you guys now go back to coding instead of creating test cases \:\)
_________________________
There are two types of vessels, submarines and targets.

Top
#187071 - 2008-04-18 08:38 AM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Sealeopard]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
 Originally Posted By: Sealeopard
I've added RemcovC's test case 7 to the official package. No more tests will be added. Hope you guys now go back to coding instead of creating test cases \:\)


Oh... I thought te goal of this was to make valid testcases in which other scripts fail \:\)
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187072 - 2008-04-18 08:49 AM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
Ok lost a few strokes again


Your solution passed all tests

KiXtart
KiXtart Version = 4.60
KiXGolf Script = kixgolf_cs.kix

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Check Scanning
Processing Start = 2008/04/18 08:43:05.974
Processing End = 2008/04/18 08:43:06.069
Duration = 0000/00/00 00:00:00.095
KiXGolf Score = 567

Thank you for participating in KiXtart Golf!
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187077 - 2008-04-18 12:06 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, now the test cases are way better.
got 1 failure.
_________________________
!

download KiXnet

Top
#187078 - 2008-04-18 12:12 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
can one digit be totally missing?
I mean like:
...
...
...

as my code currently counts for that and I might be able to remove that...
_________________________
!

download KiXnet

Top
#187080 - 2008-04-18 12:24 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Lonkero]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
my code has no problems with that.

My code will try to validate all numbers (0-9) in that case

Edit:
Oops... didn't read your post very well apperantly.

According to my interpretation the case states that 1 digit misses 1 or more segments, so an empty digit is a possibility.


Edited by RemcovC (2008-04-18 12:27 PM)
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
#187102 - 2008-04-18 10:42 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: RemcovC]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
 Originally Posted By: RemcovC
 Originally Posted By: Sealeopard
I've added RemcovC's test case 7 to the official package. No more tests will be added. Hope you guys now go back to coding instead of creating test cases \:\)


Oh... I thought te goal of this was to make valid testcases in which other scripts fail \:\)


You basta!

[edit: still not started, duty is over for today, but I am too filled up with other stuff atm \:\( ]


Edited by Jochen (2008-04-18 10:44 PM)
Edit Reason: eahds up
_________________________



Top
#187105 - 2008-04-19 02:53 AM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Jochen]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I've thought about a case where all segments of a digit are missing. However, the rules say "some may be missing". I do interpret this in a way that "some (but not all) may be missing", thus a least one segment must remain.
_________________________
There are two types of vessels, submarines and targets.

Top
#187108 - 2008-04-19 09:26 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Sealeopard]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I think there will be no (private) result from me this first round, this year \:\(
Worked long yesterday and even longer today, but slept too short. And with 6 and something hrs. left and the dizzy feeling I got right now, I won't be able to produce something useful.

Sad but true
_________________________



Top
#187109 - 2008-04-19 10:28 PM Re: KiXgolf 2008 Schmankerl: Check Scanning [Re: Jochen]
RemcovC Offline
Starting to like KiXtart
*****

Registered: 2006-09-13
Posts: 174
Loc: Holland
to bad, Rogier told me today he didnt had time also \:\(
_________________________
It's better to have scripted and died, then to never have scripted at all

Top
Page 3 of 5 <12345>


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

Who's Online
0 registered and 348 anonymous users online.
Newest Members
Raoul, Timothy, Jojo67, MaikSimon, kvn317
17875 Registered Users

Generated in 0.13 seconds in which 0.092 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