|
Post by Josh on Apr 25, 2017 20:04:08 GMT
The Alphabet
Your challenge is to write a program in any language that outputs the alphabet in the shortest amount of characters possible. By the alphabet, we mean ABCDEFGHIJKLMNOPQRSTUVWXYZ or abcdefghijklmnopqrstuvwxyz. Your solution cannot be hard-coded though. For example, you are not allowed to do something like the following:
print"abcdefghijklmnopqrstuvwxyz" It is recommended that you call a function such as string.char in Lua to achieve this.
Please format your solution as the language name followed by the number of characters that your solution contains before writing out the solution in a code block.
Good luck!
|
|
|
Post by Bit on Apr 25, 2017 20:42:48 GMT
RBX.Lua
a=""for i=65,90 do a=a..a.char(i)end warn(a) 44 Characters (EDIT: Counting spacing.) Quickly done in CMDbar
|
|
|
Post by 128Gigabytes on Apr 27, 2017 2:01:16 GMT
I've been trying to brute force find a math.randomseed that will produce the byte codes for the alphabet in order when math.random(65, 90) is called 26 times. So far I'm at 21,434,000,000 different seeds tried. I'm gonna let it run over night and probably while I'm at work, if it still hasn't found a seed by then I'll probably just give up.
Edit: I'm at 74,547,000,000, still no match. Going to head for work in about an hour.
Edit2: I accidentally closed studio so this is over.
|
|
chimmihc
New Member
Veteran
Posts: 8
ROBLOX Username: chimmihc
|
Post by chimmihc on Apr 27, 2017 6:05:45 GMT
Brainf***, 36 characters.
+++++++++++++[>+++++>++<<-]>>[<.+>-]
|
|
|
Post by Josh on Apr 27, 2017 10:56:13 GMT
Brainf***, 36 characters. +++++++++++++[>+++++>++<<-]>>[<.+>-]
Nice solution chimmihc!
|
|
|
Post by Bit on Apr 27, 2017 11:28:47 GMT
I totally forgot brain$@ existed lol
|
|