Page 1 of 5 12345>
Topic Options
#190894 - 2008-12-08 04:04 AM KiXgolf - Easier Done Than Said
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
=============
The Challenge - Easier Done Than Said
=============


Password security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are often insecure. Some sites use random computer-generated passwords (like xvtpzyo), but users have a hard time remembering them and sometimes leave them written on notes stuck to their computer. One potential solution is to generate "pronounceable" passwords that are relatively secure but still easy to remember.

FnordCom is developing such a password generator. You work in the quality control department, and it's your job to test the generator and make sure that the passwords are acceptable. To be acceptable, a password must satisfy these three rules:
1. It must contain at least one vowel.
2. It cannot contain three consecutive vowels or three consecutive consonants.
3. It cannot contain two consecutive occurrences of the same letter, except for 'ee' or 'oo'.

(For the purposes of this problem, the vowels are 'a', 'e', 'i', 'o', and 'u'; all other letters are consonants.) Note that these rules are not perfect; there are many common/pronounceable words that are not acceptable.

You therefore write a function that accepts the potential password as an input and generates an output as follows: password enclosed in angled brackets followed by either the text " is acceptable." or " is not acceptable.". Thus, a password of "a" would generate an output of "<a> is acceptable."

A download is available at http://s91376351.onlinehome.us/kixtart/kixgolf_edts.zip

=============
Inputs & Outputs
=============


The input consists of a potential password. Each password is at least one and at most twenty letters long and consists only of lowercase letters.

For each password, output whether or not it is acceptable, using the precise format shown in the example.

=======
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 during the private round by submitting a proposal for a new test case to the BBS. The proposed test case becomes official once it has been added to the existing test cases and the KiXgolf package has been reposted for download. If new test cases are added within 12 hours of private round end the private round will extend by an additional 24 hours. The public round will then start one day later and also end one day later. Not additional test cases will be added during the public round.


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


1) Private coding phase: 2008-12-07 to 2008-12-12

2) Public coding phase: 2008-12-13 to 2009-01-09

3) Final results: 2009-01-10

You will need the complete package from http://s91376351.onlinehome.us/kixtart/kixgolf_edts.zip.
_________________________
There are two types of vessels, submarines and targets.

Top
#190896 - 2008-12-08 06:55 AM Re: KiXgolf - Easier Done Than Said [Re: Sealeopard]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
In the download Test 5 has a typo in it.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#190905 - 2008-12-08 11:23 AM Re: KiXgolf - Easier Done Than Said [Re: Gargoyle]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
It's my honour to Tee off first \:\)
 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows XP Professional
CPU              =               Intel(R) Pentium(R) D CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 1008 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 11:20:44.296
Processing End   = 2008/12/08 11:20:44.343
Duration         = 0000/00/00 00:00:00.046
KiXGolf Score    = 360
 
Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

Top
#190908 - 2008-12-08 12:42 PM Re: KiXgolf - Easier Done Than Said [Re: DrillSergeant]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Cleanup:


 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows XP Professional
CPU              =               Intel(R) Pentium(R) D CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 1008 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 12:41:38.368
Processing End   = 2008/12/08 12:41:38.414
Duration         = 0000/00/00 00:00:00.045
KiXGolf Score    = 266
 
Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

Top
#190910 - 2008-12-08 01:25 PM Re: KiXgolf - Easier Done Than Said [Re: DrillSergeant]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
a bit more....

 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows XP Professional
CPU              =               Intel(R) Pentium(R) D CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 1008 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 13:24:53.287
Processing End   = 2008/12/08 13:24:53.334
Duration         = 0000/00/00 00:00:00.047
KiXGolf Score    = 256
 
Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

Top
#190912 - 2008-12-08 01:30 PM Re: KiXgolf - Easier Done Than Said [Re: DrillSergeant]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Currently at 671 with some major issue (failing 8 of 8)

But must quit golf and go to work. More tonight
_________________________
Today is the tomorrow you worried about yesterday.

Top
#190913 - 2008-12-08 02:00 PM Re: KiXgolf - Easier Done Than Said [Re: Gargoyle]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
-k-, I'll also get back to work now :-)
 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows XP Professional
CPU              =               Intel(R) Pentium(R) D CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 1008 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 13:51:53.747
Processing End   = 2008/12/08 13:51:53.794
Duration         = 0000/00/00 00:00:00.046
KiXGolf Score    = 252
 
Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

Top
#190914 - 2008-12-08 02:08 PM Re: KiXgolf - Easier Done Than Said [Re: DrillSergeant]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Dang Drill!
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#190915 - 2008-12-08 02:33 PM Re: KiXgolf - Easier Done Than Said [Re: Benny69]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Yeah, sorry about that. Test 5 has indeed a typo. The password to test for is "zoggax".

I'll upload a corrected package tonight but feel free to correct the .INI file.
_________________________
There are two types of vessels, submarines and targets.

Top
#190919 - 2008-12-08 04:33 PM Re: KiXgolf - Easier Done Than Said [Re: Sealeopard]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Ok, last one for today:

 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows XP Professional
CPU              = Intel(R) Pentium(R) D CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 1008 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 16:13:34.933
Processing End   = 2008/12/08 16:13:34.949
Duration         = 0000/00/00 00:00:00.016
KiXGolf Score    = 244
 
Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

Top
#190923 - 2008-12-08 08:38 PM Re: KiXgolf - Easier Done Than Said [Re: DrillSergeant]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Is it against the rules to ask why my output is failing all the tests, when it appears to be right?

 Quote:

<a> is acceptable.
<tv> is not acceptable.
<ptoui> is not acceptable.
<bontres> is not acceptable.
<zoggax> is not acceptable.
<wiinq> is not acceptable.
<eep> is acceptable.
<houctuh> is acceptable.

Top
#190925 - 2008-12-08 09:08 PM Re: KiXgolf - Easier Done Than Said [Re: Allen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Well I found the solution to my question... the function name is not "a" anymore... I thought that was a rule change some time back as to not penalize people.

With that fixed, my next issue comes with the CaseSenitivity being set to on. I can change my code to work around this, but what's the value here when in the rules its stated all potential passwords "consists only of lowercase letters"

Top
#190926 - 2008-12-08 09:18 PM Re: KiXgolf - Easier Done Than Said [Re: Allen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Its REALLY ugly, but its on the board.


Your solution passed all tests

KiXtart
KiXtart Version = 4.53
KiXGolf Script = kixgolf_edts.KIX

Computer
OS = Windows Vista Business Edition
CPU = AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Speed = 2605 MHz
Memory = 4094 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Easier Done Than Said?
Processing Start = 2008/12/08 15:15:18.530
Processing End = 2008/12/08 15:15:21.665
Duration = 0000/00/00 00:00:03.135
KiXGolf Score = 656

Thank you for participating in KiXtart Golf!

Top
#190927 - 2008-12-08 09:25 PM Re: KiXgolf - Easier Done Than Said [Re: Allen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Your solution passed all tests

KiXtart
KiXtart Version  = 4.53
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows Vista Business Edition
CPU              = AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Speed            = 2605 MHz
Memory           = 4094 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 15:24:03.077
Processing End   = 2008/12/08 15:24:06.261
Duration         = 0000/00/00 00:00:03.184
KiXGolf Score    = 611

Thank you for participating in KiXtart Golf!

Top
#190929 - 2008-12-08 10:39 PM Re: KiXgolf - Easier Done Than Said [Re: Allen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
two more...

 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows Vista Business Edition
CPU              = Intel Pentium Model 15
Speed            = 2194 MHz
Memory           = 2038 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 22:32:43.275
Processing End   = 2008/12/08 22:32:43.298
Duration         = 0000/00/00 00:00:00.023
KiXGolf Score    = 242
 
Thank you for participating in KiXtart Golf!


I've got an MS exam 70-297 planned for this friday, and instead of studying I'm golfing...
_________________________
The Code is out there

Top
#190930 - 2008-12-08 10:52 PM Re: KiXgolf - Easier Done Than Said [Re: DrillSergeant]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
GEEZ. I might find another 100 or so strokes, but not 400. I think I know the better way to do it, but it so eludes me on how to do it. (sigh) \:\(
Top
#190931 - 2008-12-08 11:19 PM Re: KiXgolf - Easier Done Than Said [Re: Allen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Last one for tonight...

 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

Computer
OS               = Windows Vista Business Edition
CPU              = Intel Pentium Model 15
Speed            = 2194 MHz
Memory           = 2038 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 23:16:29.088
Processing End   = 2008/12/08 23:16:29.120
Duration         = 0000/00/00 00:00:00.031
KiXGolf Score    = 236
 
Thank you for participating in KiXtart Golf!



Edited by DrillSergeant (2008-12-08 11:25 PM)
_________________________
The Code is out there

Top
#190933 - 2008-12-09 01:25 AM Re: KiXgolf - Easier Done Than Said [Re: DrillSergeant]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Just to get on the green's

Your solution failed 2 of 8 tests.
 Code:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.KIX

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

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 17:10:19.844
Processing End   = 2008/12/08 17:10:19.860
Duration         = 0000/00/00 00:00:00.016
KiXGolf Score    = 665
 
Thank you for participating in KiXtart Golf!
_________________________
Today is the tomorrow you worried about yesterday.

Top
#190936 - 2008-12-09 02:45 AM Re: KiXgolf - Easier Done Than Said [Re: Gargoyle]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
ok its bit of a pig but:

 Code:
Your solution passed all tests

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.kix

Computer
OS               = Windows Vista Ultimate Edition
CPU              =               Intel(R) Pentium(R) D CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 19:47:17.120
Processing End   = 2008/12/08 19:47:17.145
Duration         = 0000/00/00 00:00:00.025
KiXGolf Score    = 454

Thank you for participating in KiXtart Golf!
Press any key to continue...
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#190937 - 2008-12-09 03:01 AM Re: KiXgolf - Easier Done Than Said [Re: Benny69]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
ok 1 more for the night: 428
 Code:
Your solution passed all tests

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_edts.kix

Computer
OS               = Windows Vista Ultimate Edition
CPU              =               Intel(R) Pentium(R) D CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Easier Done Than Said?
Processing Start = 2008/12/08 20:03:21.570
Processing End   = 2008/12/08 20:03:21.597
Duration         = 0000/00/00 00:00:00.026
KiXGolf Score    = 428

Thank you for participating in KiXtart Golf!
Press any key to continue...
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
Page 1 of 5 12345>


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

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.073 seconds in which 0.025 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