#167220 - 2006-09-10 03:18 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
look at the %correct climb, hehee
|
Top
|
|
|
|
#167222 - 2006-09-10 05:24 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
maciep
Korg Regular
Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
|
Well I think my code is working. but did I miss something, why do i only have 4 test cases?
Code:
Shuttle Puzzle solution (n=1) : W B WB BW B W
Shuttle Puzzle solution (n=2) : WW BB WWB B W BWB WBWB BW WB BWBW BWB W B BWW BB WW
Shuttle Puzzle solution (n=3) : WWW BBB WWWB BB WW BWBB W WBWBB WBW WBB WBWBW B WBWBWB WBWB BW WB BWBW BWBWBW B WBWBW BBW WBW BBWBW W BBWB WW BB BWWW BBB WWW
Shuttle Puzzle solution (n=4) : WWWW BBBB WWWWB BBB WWW BWBBB WW WBWBBB WWBW WBBB WWBWBW BB WWBWBWB B WWBWB BWB WWB BWBWB W BWBWBWB WBWBWBWB BW WBWBWB BWBW WBWB BWBWBW WB BWBWBWBW BWBWBWB W BWBWB BWW BWB BWBWW B BWBWBWW BB WBWBWW BBBW WBWW BBBWBW WW BBBWB WWW BBB BWWWW BBBB WWWW
Shuttle Puzzle passed all 4 tests (100% correct)
KiXtart KiXtart Version = 4.51 KiXforms Version = KiXGolf Script = kixgolf_shuttle.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium Model 13 Speed = 1698 MHz Memory = 502 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Shuttle Puzzle Processing Start = 2006/09/09 23:22:02.958 Processing End = 2006/09/09 23:22:03.008 Duration = 0000/00/00 00:00:00.050 KiXGolf Score = 564
|
Top
|
|
|
|
#167223 - 2006-09-10 09:35 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
jens, yep, didn't bother changing it. 8 and 9 are also wrong on the board. but the code outputs them fine, after I turned the letters around.
if you look at my last output, it's correct. so why bother changing the rules???
|
Top
|
|
|
|
#167226 - 2006-09-10 05:10 PM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
Thought i better get on the board at least before i have to leave town:
Code:
Shuttle Puzzle solution (n=1) : W B WB BW B W
Shuttle Puzzle solution (n=2) : WW BB WWB B W BWB WBWB BW WB BWBW BWB W B BWW BB WW
Shuttle Puzzle solution (n=3) : WWW BBB WWWB BB WW BWBB W WBWBB WBW WBB WBWBW B WBWBWB WBWB BW WB BWBW BWBWBW B WBWBW BBW WBW BBWBW W BBWB WW BB BWWW BBB WWW
Shuttle Puzzle solution (n=4) : WWWW BBBB WWWWB BBB WWW BWBBB WW WBWBBB WWBW WBBB WWBWBW BB WWBWBWB B WWBWB BWB WWB BWBWB W BWBWBWB WBWBWBWB BW WBWBWB BWBW WBWB BWBWBW WB BWBWBWBW BWBWBWB W BWBWB BWW BWB BWBWW B BWBWBWW BB WBWBWW BBBW WBWW BBBWBW WW BBBWB WWW BBB BWWWW BBBB WWWW
Shuttle Puzzle passed all 4 tests (100% correct)
KiXtart KiXtart Version = 4.52 KiXforms Version = KiXGolf Script = kixgolf_shuttle.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2793 MHz Memory = 2048 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Shuttle Puzzle Processing Start = 2006/09/10 10:05:00.156 Processing End = 2006/09/10 10:05:00.171 Duration = 0000/00/00 00:00:00.014 KiXGolf Score = 690
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Top
|
|
|
|
#167227 - 2006-09-10 09:47 PM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
trimed it down a little: Code:
Shuttle Puzzle passed all 4 tests (100% correct)
KiXtart KiXtart Version = 4.52 KiXforms Version = KiXGolf Script = kixgolf_shuttle.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2793 MHz Memory = 2048 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Shuttle Puzzle Processing Start = 2006/09/10 14:44:08.812 Processing End = 2006/09/10 14:44:08.828 Duration = 0000/00/00 00:00:00.016 KiXGolf Score = 583
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Top
|
|
|
|
#167229 - 2006-09-11 02:20 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
k, heading bed... Code:
KiXtart KiXtart Version = 4.53 Release Candidate 1 KiXforms Version = KiXGolf Script = kixgolf_shuttle.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1866 MHz Memory = 760 MB
KiXGolf Scoring Engine Scoring Engine = 3.3
KiXtart Golf Score Tournament = KiXtart Golf: Shuttle Puzzle Processing Start = 2006/09/11 03:18:40.406 Processing End = 2006/09/11 03:18:40.687 Duration = 0000/00/00 00:00:00.280 KiXGolf Score = 465
|
Top
|
|
|
|
#167231 - 2006-09-11 02:52 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
see you guys on thursday when i get back to town.
|
Top
|
|
|
|
#167233 - 2006-09-11 09:51 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Jochen
KiX Supporter
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
Top
|
|
|
|
#167234 - 2006-09-11 10:00 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
jens... looking at the solutions, you could have written just one and test them both ways. starting from index0 and ubound.
btw, now your tester throws the darn messagebox() all the time. also, like I have always critisized, you should add to the code, which one of the tests fail. I hate needing to add it everytime myself...
Code:
Shuttle Puzzle passed 9 of 10 tests (90% correct)
KiXtart KiXtart Version = 4.53 Release Candidate 1 KiXforms Version = KiXGolf Script = kixgolf_shuttle.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1866 MHz Memory = 760 MB
KiXGolf Scoring Engine Scoring Engine = 3.3
KiXtart Golf Score Tournament = KiXtart Golf: Shuttle Puzzle Processing Start = 2006/09/11 10:44:07.671 Processing End = 2006/09/11 10:45:07.281 Duration = 0000/00/00 00:00:59.610 KiXGolf Score = 465
and here is the not matching tenth test (my results left, your test array right) Code:
65 BWBWBWBWBWBWBWBWBWBW BWBWBWBWBWBWBWBWBWBW
65
the empty space on line 65 denotes that there is something wrong with it. as you can see, they both have same text, so the issue is somewhere else.
[edit] shortened the lengthy output of my tester.
Edited by Jooel (2006-09-11 10:14 AM)
|
Top
|
|
|
|
#167235 - 2006-09-11 10:06 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
k, found the reason. you forgot to add the space at the end
|
Top
|
|
|
|
#167236 - 2006-09-11 10:08 AM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
and here is the result when added the space: Code:
Shuttle Puzzle passed all 10 tests (100% correct)
KiXtart KiXtart Version = 4.53 Release Candidate 1 KiXforms Version = KiXGolf Script = kixgolf_shuttle.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1866 MHz Memory = 760 MB
KiXGolf Scoring Engine Scoring Engine = 3.3
KiXtart Golf Score Tournament = KiXtart Golf: Shuttle Puzzle Processing Start = 2006/09/11 11:07:18.359 Processing End = 2006/09/11 11:07:18.484 Duration = 0000/00/00 00:00:00.125 KiXGolf Score = 465
|
Top
|
|
|
|
#167238 - 2006-09-11 05:46 PM
Re: KiXgolf: Shuttle Puzzle - Private Round
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
Code:
Shuttle Puzzle passed all 10 tests (100% correct)
KiXtart KiXtart Version = 4.53 Release Candidate 1 KiXforms Version = KiXGolf Script = kixgolf_shuttle.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1866 MHz Memory = 760 MB
KiXGolf Scoring Engine Scoring Engine = 3.3
KiXtart Golf Score Tournament = KiXtart Golf: Shuttle Puzzle Processing Start = 2006/09/11 18:44:45.687 Processing End = 2006/09/11 18:44:45.937 Duration = 0000/00/00 00:00:00.250 KiXGolf Score = 460
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 351 anonymous users online.
|
|
|