0 Members and 2 Guests are viewing this topic.
Where do you find this code ?
Code: [Select]:Prompt E,N:If E=2 and N=1:Disp "NRML:If E != 2 or N!=1:Then:If E=2 or N=1:Then:Disp "ALMST NRML:Else:Disp "WEIRD80bytes, for the first challenge
:Prompt E,N:If E=2 and N=1:Disp "NRML:If E != 2 or N!=1:Then:If E=2 or N=1:Then:Disp "ALMST NRML:Else:Disp "WEIRD
Prompt E,NIf N(E=2Disp "NRMLIf E=2 or N=1Disp "ALMST NRMLIf ((N!=1)E!=2Disp "WEIRD
Quote from: kindermoumoute on November 20, 2010, 12:50:49 pmWhere do you find this code ?I made it It took me about 17 minutes, but I made it
:Input "Number :",Str1:Input "From Base :",C:Input "to Base :",D:"123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ→Str2:length(Str1→A:0:For(Ɵ,1,A:Ans+C^(A-Ɵ)inString(Str2,sub(Str1,Ɵ,1:End:Ans→B:"0"+Str2→Str2:While B:int(B/D→C:sub(Str2,B-DC+1,1)+Str1→Str1:C→B:Endsub(Str1,1,length(Str1)-A
New challenge!make the smallest program possible with the final "e" rule for english. (I had to make this yesterday, shows how you can use calcs in english too, )I have 331 bytes with an 8 letter titlebascically, it lets you enter the root word, and the suffix, and combines it for you.
the rule: A word ending in "e" plus a suffix starting with a consonent, the final "e" isn't dropped, if the suffix starts with a vowel, it is dropped, unless the root word's "e" is precede by a "c" or a "g" and the suffix starts with an "a" or "o"
Quote from: ScoutDavid on November 20, 2010, 12:52:11 pmCode: [Select]:Prompt E,N:If E=2 and N=1:Disp "NRML:If E != 2 or N!=1:Then:If E=2 or N=1:Then:Disp "ALMST NRML:Else:Disp "WEIRD80bytes, for the first challengeThis is missing two end statements plus it could be optimized to this:Code: [Select]Prompt E,NIf N(E=2Disp "NRMLIf E=2 or N=1Disp "ALMST NRMLIf ((N!=1)E!=2Disp "WEIRD
Code: [Select]Prompt E,NIf N(E=2Disp "NRMLIf E=2 or N=1Disp "ALMST NRMLIf ((N!=1)E!=2Disp "WEIRDI had no idea of this tricks though
Quote from: ScoutDavid on November 20, 2010, 01:33:04 pmCode: [Select]Prompt E,NIf N(E=2Disp "NRMLIf E=2 or N=1Disp "ALMST NRMLIf ((N!=1)E!=2Disp "WEIRDI had no idea of this tricks though Ah, well, it didn't work for me... It just displayed all three phrases.
What? It wasn't MY code!