May I just say thank you to all participants - without you this challenge would not have worked. I also thank you for your patience as it was my first challenge on mircscripts.org. A new challenge will be made in the next week or so. I invite you to join in this one also :) ... Now onto the challenge results...
There were 27 entries submitted, 19 valid and 8 invalid entries. Entries that contained subtle mistakes were corrected (aren't I nice?) and the new code size in bytes reflects this correction.
Congratulations to the winner myndzi and in joint second position visionz, Ag2X and poste9.
* String too long: $bvar (line 5, inctext-vampire.mrc) - Was replacing ascii values which made the string size * 4-1 larger on upper case values and * 3-1 on lower case. Did not support 900 chrs.
* Did not return the values as asked, strings with numbers was supose to report $null although this script incremented the numbers, along with the characters. This, although impressive as it worked flawlessly, was not asked for.
Description:
New challenges as of 2006 !
You are to create an alias that will accept a text string of A-Z and a-z characters and increment it and return the output. If the input value contains characters that are not in this range – it will return $null.
The alias must preserve upper and lower cases in their appropriate positions.
If left of string is ‘Z’ then ‘A’ will be appended to the beginning of the string.
If left of string is ‘z’ then ‘a’ will be appended to the beginning of the string.
(Preserving cases even when carrying)
Example:
$inctext(1) = $null
$inctext(1A6aajo46) = $null
$inctext(?) = $null
$inctext(a) = b
$inctext(z) = aa
$inctext(Z) = AA
$inctext(aB) = aC
$inctext(BB) = BC
$inctext(ABC) = ABD
$inctext(ABc) = ABd
$inctext(AbZ) = AcA
$inctext(ZZZ) = AAAA
$inctext(YzZ) = ZaA
$inctext(Zzz) = AAaa
$inctext(zZZ) = aaAA
$inctext(mZzzZZ) = nAaaAA
$inctext(CcC) = CcD
$inctext(ppZ) = pqA
$inctext(aZzZzZ) = bAaAaA
Rules:
No dlls / coms
No sockets
No regular expressions
Alias must be called ‘inctext’
File will be loaded into the REMOTE section
Maximum input text size will be tested from 1 to 900.
May be submitted as .txt or .mrc ONLY
File we will be using to count the code: countcode.mrc
One submission per user.
Entries will be judged on their code size and if they are in working order.
a