MacGyver's Toolbox

25

2

In this question each answer will get a "toolbox" that can be used to construct a program/function. The toolbox will consist of two things:

  • a list of programming languages

  • a list of valid characters

You must write a valid program/function in one of the languages provided using only the characters in the toolbox. Your program/function should output the number of answers already present on this question.

Once you have written and posted an answer the language and characters you have used will be removed from the toolbox and 1 new language and 12 new characters will be randomly added to be used as the toolbox for the next answer.

Rules

  • Each answer will:

    • Output the number of valid answers coming before it
    • Contain a subset of the characters provided in the toolbox for that answer. (repeats are allowed)
    • Be in one of the languages from the provided toolbox
  • The next toolbox will determined by this python program. To generate the next toolbox put in the remaining languages and characters along with the post id of the last answer.

  • The language list here is all the languages available on try it online at the time of this post. The characters have char codes 0-127.

  • You may write either a full program or a function as your answer. Since REPLs are different languages they will not be allowed. (use the TIO version of every language)

  • If a language uses a special encoding the characters should be interpreted as bytes (decoded from ASCII and padded with a zero).

  • The starting toolbox will be randomized from this questions post id (126063), there will be 7 languages to start and I will add the characters echoprint0 and ascii 0-31 for free to get people started.

  • You may not answer twice in a row

Scoring

Each person will have a score equal to the number valid answers they have provided. There will not necessarily be an end and I will not be accepting any answers.

Sporting

This is a competition, but I encourage you to put fun above winning while still staying competitive (if I could make the winning criteria "fun had" I would). Some things that are not fun:

  • Intentionally using characters you don't need to stunt future answers.
  • Attempting to game the post id system to make future tool boxes harder to use.
  • Attempting to game the post id system to make future tool boxes easier to use.

I can't prevent any one from doing these things, but I will be downvoting any answers I suspect are doing this.

On a more positive note, here are some things that are good sporting and encouraged:

  • Coordinating with other users in chat.
  • Saving characters for harder or more restrictive languages

Post Rock Garf Hunter

Posted 2017-06-12T22:05:58.587

Reputation: 55 382

Question was closed 2017-06-26T15:57:21.907

Can we output numbers in bases other in 10? – Comrade SparklePony – 2017-06-13T14:09:24.923

@ComradeSparklePony If that is the standard way of outputting in a language. – Post Rock Garf Hunter – 2017-06-13T14:10:08.313

3Well...an interesting setup that got nipped in the bud early due to too many missing characters for languages that are defined by a very small set of characters. Logicode got hosed by the lack of a 1 and ! in its toolbox. I managed to produce the string "0110" using ?,0 and + although I couldn't quite figure out what the ? actually did (and it was not in the language specification). But + was missing from the toolbox as well, along with = which would have allowed for variable assignment. Aaanndd...no o for output. – Draco18s no longer trusts SE – 2017-06-13T17:34:06.790

1@Draco18s I found an SML answer, so maybe now there are enough chars available for a logicode answer. – Laikoni – 2017-06-14T10:46:37.387

@Laikoni Nice! I couldn't find specs for several of the languages, SML being one of them. – Draco18s no longer trusts SE – 2017-06-14T13:32:36.680

...Are Emojicode programs even possible in this challenge? It's one of the available languages, but I can't figure out how one would produce a – Draco18s no longer trusts SE – 2017-06-14T19:46:06.560

@Draco18s I'll look into it, they may be possible if not I'll remove them from the rotation. – Post Rock Garf Hunter – 2017-06-14T19:48:01.447

There may also be another bug: https://codegolf.stackexchange.com/questions/126063/macgyvers-toolbox/126432?noredirect=1#comment311251_126432 13 Ws in the toolbox linked on that answer.

– Draco18s no longer trusts SE – 2017-06-14T20:13:36.873

What about emojis for use in Emojicode? – Santiago Benoit – 2017-06-14T20:29:23.803

@SantiagoBenoit I have removed emojicode – Post Rock Garf Hunter – 2017-06-14T20:37:44.457

1Adding 12 new characters each time may have made this too easy. – mbomb007 – 2017-06-16T15:53:30.683

@mbomb007 You are almost certainly correct. I wasn't able to get enough people to help me test this before release. I hope to re-release this challenge with a number of improvements, among them a lower character influx. – Post Rock Garf Hunter – 2017-06-16T15:59:54.187

Or, maybe make it so that the characters added don't have to be unique, so it might not actually add as many until more are missing. – mbomb007 – 2017-06-16T16:01:00.713

@WheatWizard There are repeat languages showing up as options now. We have already done Go and Forte. Should we just remove them and continue? In your future version, I think that the input should have the languages that have already been done, rather than what it is. – andrewarchi – 2017-06-16T19:23:56.540

@andrewarchi Repeat languages are intentional, I don't know if I would disallow them in future versions they keep things interesting. – Post Rock Garf Hunter – 2017-06-16T19:27:06.413

Answers

8

2. Cubix, (no@

Third time's the charm

(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((no@((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((

Try it online!

Next toolbox

Post Rock Garf Hunter

Posted 2017-06-12T22:05:58.587

Reputation: 55 382

6

1. 3var (1 byte)

Toolbox

['elf', 'cubix', 'sml-mlton', 'forte', 'logicode', 'python1', '3var']
'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e.0@BGN`ceghilnoprtvwz}'

Code

p

Try it online!

Next toolbox

Santiago Benoit

Posted 2017-06-12T22:05:58.587

Reputation: 261

5

3. Pari/GP, 3 bytes

`
2

Exploits a syntax error.

Try it online!

Next toolbox

Santiago Benoit

Posted 2017-06-12T22:05:58.587

Reputation: 261

5

5. J, 3 Bytes

5|9

Performs 5 mod 9, outputting 4

Next toolbox!

nkizz

Posted 2017-06-12T22:05:58.587

Reputation: 51

I pasted in the wrong toolbox link, it should be correct now – nkizz – 2017-06-13T01:20:55.330

1you still need the answer to output 4 – Destructible Lemon – 2017-06-13T01:27:26.953

In the question: Each answer will: Output the number of valid answers coming before it. There are four valid answers before this one, so your program must output 4. If you cannot make that happen, please delete your answer. – JungHwan Min – 2017-06-13T01:33:24.677

Apologies, I misread the requirements. I've fixed it. – nkizz – 2017-06-13T01:39:40.157

1Can you post a TIO link? Also I'm pretty sure that's 9 mod 5, not 5 mod 9 – PunPun1000 – 2017-06-13T12:24:51.477

1That's 9 mod 5. – isaacg – 2017-06-16T10:15:44.577

4

6. Forte

Uses \n 187-DENPUT

1 PUT 71-18
7 END

Try it online!

Next toolbox

Business Cat

Posted 2017-06-12T22:05:58.587

Reputation: 8 927

no ( -> scheme-chez , scala. no 1 nor ! -> logicode – marcosm – 2017-06-13T13:46:25.097

@marcosm Good point, I hope my toolbox didn't stop the chain ;_; – Business Cat – 2017-06-13T15:44:54.697

logicode actually has a problem with the fact that the characters to write out are missing. I managed to get out ?+?+?+0 to produce the binary expression of 6....which appears to be valid if "that is the standard way of outputting in a language" is allowed here, which for logicode would be mostly true. There is a convert-to-ascii, but without an = you can't assign ?+?+?+0-like expressions to a variable to convert, nor can you wrap in parenthesis, due to a lack of (. ?+?+?+0 by itself is valid code...but produces no output. + is also missing, so even that won't work... – Draco18s no longer trusts SE – 2017-06-13T17:01:57.043

no E -> Forte (program would loop forever without an END keyword) as no P,R,N, and T for the PRINT command. I cannot find a language definition for elf, assembly-as, or mlton (or at least, not enough in order to determine how to produce output). no (,o,s,; -> Javascript (unable to call console.log(...)), no r for alert (if tio allowed it). – Draco18s no longer trusts SE – 2017-06-13T17:23:31.743

1@Draco18s You don't need brackets for JavaScript since backtick and 6 are both legal, so you could do console.log`6`, the problem would be getting access to console.log since s isn't available – Business Cat – 2017-06-13T17:33:35.680

@BusinessCat I wasn't aware of that syntax. Neat. But yes, the o and s are still missing. And no a to try and fiddle things into an eval – Draco18s no longer trusts SE – 2017-06-13T17:35:33.903

4

7. Standard ML (MLton), 7 bytes

fun$n=6

Try it online! This declares a function $ which takes any argument and returns 6, eg. by calling with $().

New toolbox. Powershell is the newly added language.

Laikoni

Posted 2017-06-12T22:05:58.587

Reputation: 23 676

Looking at the new toolbox...No (, no 1, no !, no E, no P, no s. The same characters that were precluding the other languages are still missing. :\ – Draco18s no longer trusts SE – 2017-06-14T13:33:03.090

4

15. Half-Broken Car in Heavy Traffic

# 
^
^
^
^
^
^
^
^
^
^
^
^   >>v
  < ^ 
^ >   v
  ov ^
^< <  <

Outputs is in cell -2.

Try it online!

Next Toolbox

Riley

Posted 2017-06-12T22:05:58.587

Reputation: 11 345

For number 16, I don't think it is possible in TRANSCRIPT or Emojicode. Transcript requires a > before lines that do stuff like print, and Emojicode needs emojis. – Comrade SparklePony – 2017-06-14T20:32:05.103

For 16 in scala, how much of this is needed? object A{def main(a:Array[String]){print(Integer.parseInt("F",16))}} TIO. Most of that is the main, so can that be left out?

– andrewarchi – 2017-06-14T20:58:29.923

@andrewarchi You can write an function that returns 16. That might save you. I don't know scala so thats about as helpful as I can be. However we currently have all of the characters so I wouldn't worry about using them. – Post Rock Garf Hunter – 2017-06-14T21:09:40.067

@WheatWizard The two changes that I see are hbcht which I used and emojicode which seems to be removed from the generator program entirely. I assume the emojicode change was intentional. I didn't do that. – Riley – 2017-06-14T22:34:17.883

@Riley Ah I see all is good then. – Post Rock Garf Hunter – 2017-06-14T22:35:10.470

3

23. DStack, 5 bytes

222cK

Explanation

DStack is read in pairs and moves the cursor one char at a time, so the instructions become 22, 22, 22, and cK.

22  Multiplies register by 10 (initially 0), adds 2
22  Multiplies register by 10, adds 2
2c  Does nothing
cK  Displays number of the register

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

3

27. Assembly (x64, Linux, as)

.text
  .global _start
_start:
movl $len,%edx
movl $msg,%ecx
movl $1,%ebx
movl $4,%eax
int $0x80
movl $0,%ebx
movl $1,%eax
int $0x80
.data
msg:
.byte 0b110010,0b110110
len = . - msg

Try it online!

Explanation

I don't really know Assembly as, and information online seems hard to find ,so this is modified from the Hello World test on TIO.

The main issue here is that we lack the 2 byte, (turns out we did, but hey looks like I saved a 2 for the next answer) this makes it relatively hard to print 26. We can't use raw ascii or even Hexadecimal (0x32) so I ended up using binary.

msg:
.byte 0b110010,0b110110

Tells it to output the two bytes 2 and 6.

Next toolbox

Post Rock Garf Hunter

Posted 2017-06-12T22:05:58.587

Reputation: 55 382

That looks so ugly for something as trivial as printing 26 – andrewarchi – 2017-06-15T17:31:00.610

1I get a 2 when running the toolbox from either 25 or 26. You must have just forgotten to run it – andrewarchi – 2017-06-15T17:39:26.380

This works xD – Okx – 2017-06-17T09:06:56.143

3

35. ELF 32-bit LSB executable (Linux), 48 bytes

0000000: 7f 45 4c 46 01 00 00 00 00 00 00 00 00 90 43 0d  .ELF..........C.
0000010: 02 00 03 00 19 90 43 0d 19 90 43 0d 04 00 00 00  ......C...C.....
0000020: b9 2e 90 43 0d b2 0d cd 80 cc 20 00 01 00 33 34  ...C...... ...34

I've done it! I have conquered the elusive ELF. ELF has been the first language in the list ever since the first toolbox. Now we can move on.

I've never used or even heard of ELF before, so this one was an adventure to figure out. I eventually copied much of Dennis' 32 bit Hello, World! program (64 bit version here). I modified it to print 33 and was able to remove a line of bytes.

Chars used: \x00\x01\x02\x03\x04\r\x19 .34CEFL\x7f\x80\x90\xb2\xb9\xcc\xcd

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

2We have done 35/243 languages! Only 85.596707% more languages left! – andrewarchi – 2017-06-16T05:09:12.033

2

Post Rock Garf Hunter

Posted 2017-06-12T22:05:58.587

Reputation: 55 382

2

8. PowerShell Core, 1 byte

7

Try it online!

I had no idea what powershell is, but it turns out that 7 outputs 7 in TIO.

Next toolbox

user70700

Posted 2017-06-12T22:05:58.587

Reputation:

2

9. JavaScript (Babel Node), 14 bytes

console.log`8`

Try it online!

Miraculously all the characters needed were available.

Next toolbox New language: pylons (Should be easy ;).

Draco18s no longer trusts SE

Posted 2017-06-12T22:05:58.587

Reputation: 3 053

I am not sure how to get the link for the next toolbox though. – Draco18s no longer trusts SE – 2017-06-14T18:15:49.900

1To get the next toolbox you can copy the last toolbox from the output section into the input section, and replace the number with your post id. (hit share it should be the number in the url starting with 126...) I've done it for you here. – Post Rock Garf Hunter – 2017-06-14T18:18:29.770

@WheatWizard Cool. I thought so, but in trying to work it out I got interrupted by Real Life and it was easier to flail out a comment and wait for an edit. Thanks :) – Draco18s no longer trusts SE – 2017-06-14T18:25:09.490

2

18. C# (.NET Core), 33 bytes

()=>System.Console.WriteLine(17);

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

2

20. TRANSCRIPT, 45 bytes

You can see a Q here.
>SET Q TO 19
>X Q
>QUIT

Explanation:

TRANSCRIPT is designed to resemble interactive fiction scripts. So rather than using variables, objects and NPCs are used. Commands and dialog (essentially comments) are mixed together.

You can see a Q here.    Creates an object named Q
>SET Q TO 19             Assign Q to 19
>X Q                     Display Q
>QUIT                    End the program

Chars used: .19>EIOQSTUXYZacehnorsu

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

2

29. Pushy, TL#

TTTTTTTTTTTTTTTTTTTTTTTTTTTTL#

This pushes 10 to the stack 28 times, then gets the length of the stack and prints it.

Try it online!

Next toolbox

Comrade SparklePony

Posted 2017-06-12T22:05:58.587

Reputation: 5 784

Great language name! – andrewarchi – 2017-06-15T20:11:00.390

2

34. Java (OpenJDK 9), 63 bytes

interface a{static void main(String[]a){System.out.print(33);}}

I figured this was getting a bit too easy, with all the characters available and all...

Try it online!

Next toolbox

Santiago Benoit

Posted 2017-06-12T22:05:58.587

Reputation: 261

That's handy. I didn't know that when using an interface main doesn't need public and print doesn't need the full path! I was going to do class S{public static void main(String[]a){java.lang.System.out.print(33);}}, a whole 13 bytes more. Though if you named the interface S, then you would save a char. – andrewarchi – 2017-06-16T04:49:27.643

Whoops, a was supposed to be lowercase – Santiago Benoit – 2017-06-16T04:54:28.943

2Yeah - I feel like the toolbox generator is adding too many chars each time. – Santiago Benoit – 2017-06-16T05:05:57.320

@WheatWizard would you be able to modify the toolbox script to add back fewer chars? Adding 12 each time seems like too much because in most cases, we use less than 12 chars (except for Java that used 28). – andrewarchi – 2017-06-16T05:06:31.127

@andrewarchi I think I will leave the character count on this question, I plan on doing a revamped version of this question with a lower character count and some more features to keep it interesting. – Post Rock Garf Hunter – 2017-06-16T15:31:39.020

2

45. Templates Considered Harmful, Ad<T,>

Add<Add<Add<Add<Add<Add<T,T>,Add<T,T>>,Add<Add<T,T>,Add<T,T>>>,T>,Add<T,T>>,Add<Add<T,T>,Add<Add<Add<Add<T,T>,Add<Add<Add<Add<Add<Add<Add<T,T>,Add<T,T>>,Add<Add<T,T>,Add<T,T>>>,T>,Add<T,T>>,Add<Add<T,T>,Add<Add<Add<Add<T,T>,Add<T,T>>,Add<Add<T,T>,Add<T,T>>>,T>>>,T>>,Add<Add<T,T>,Add<T,T>>>,Add<T,T>>>>

Try it online!

Next Toolbox

Zack C.

Posted 2017-06-12T22:05:58.587

Reputation: 491

1

10. Prelude, 3+!

We finally got an !!

3333333333333333333++++++++++++++++++!

Try it online!

Next toolbox

Explanation

9 is 57 in ASCII, which is 3 times 19. So in order to get 9 we add 19 3s and use ! to output.

Post Rock Garf Hunter

Posted 2017-06-12T22:05:58.587

Reputation: 55 382

Two number 9s?? – None – 2017-06-14T18:26:05.503

@OrphanBot Sorry this is number 10, still works though :) – Post Rock Garf Hunter – 2017-06-14T18:26:50.353

1

scatter

Posted 2017-06-12T22:05:58.587

Reputation: 874

1

12. Logicode, 6 bytes

out 11

Try it online!

trivial, right language for 11

Next toolbox

marcosm

Posted 2017-06-12T22:05:58.587

Reputation: 986

Was fiddling with this to see if I could get it to print 11 as ascii characters rather than binary-11, couldn't get it to do them on the same line. – Draco18s no longer trusts SE – 2017-06-14T18:36:06.610

I am not sure your toolbox is correct. It is taking a post number of 26407 and your answer is actually 126407 – Draco18s no longer trusts SE – 2017-06-14T18:55:12.133

does it looks correct now? – marcosm – 2017-06-14T18:58:13.350

Yep. I hadn't noticed the discrepancy until after I did #13 and was getting its toolbox and I was like "hold on a moment..." And it totally invalidated the entry. – Draco18s no longer trusts SE – 2017-06-14T19:30:59.800

1

13. Pylons, 14 bytes

2+2+2+2+2+2+2,

Try it online!

Next toolbox

(We now have all the characters)

user70700

Posted 2017-06-12T22:05:58.587

Reputation:

Could you have done 2+2+2... to save characters? – Post Rock Garf Hunter – 2017-06-14T19:00:38.337

I don't understand the next toolbox, could someone please edit it in? – None – 2017-06-14T19:04:21.537

@WheatWizard The current toolbox contains 4 es, is there some bug in the implementation? – Laikoni – 2017-06-14T19:13:03.957

@Laikoni Yes there is you can count it as a single e. – Post Rock Garf Hunter – 2017-06-14T19:13:58.120

1

16. Scala, 13 bytes

()=>print(15)

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

1

17. 2sable (Prints 16)

4n

Try it online!

4  # Push 4
 n # Square it

Next Toolbox, new language: golfscript

Riley

Posted 2017-06-12T22:05:58.587

Reputation: 11 345

1

19. pbrain, 58 bytes

+++++++++++++++++++++++++++++++++++++++++++++++++.+++++++.

Prints ASCII values 49 and 56 (18).

Try it online!

Next toolbox

Santiago Benoit

Posted 2017-06-12T22:05:58.587

Reputation: 261

1

22. MarioLANG, 44 bytes

+++++++++++++++++++++:
=====================

Boring but shortest.

Try it online!

Next Toolbox

marcosm

Posted 2017-06-12T22:05:58.587

Reputation: 986

Hah! You beat me by 13 seconds. I'll change mine to 23 – andrewarchi – 2017-06-15T16:04:47.280

1

24. Chez Scheme, 12 bytes

(display 23)

Try it online! Next toolbox. Arcyóu is the new language.

Laikoni

Posted 2017-06-12T22:05:58.587

Reputation: 23 676

+1 I was going to do (printf "23"), but yours is shorter – andrewarchi – 2017-06-15T17:24:15.667

1

28. Haskell, 6 bytes

f x=27

Try it online! Declares a function f which takes any argument and returns 27.

Next toolbox:

['elf', 'logicode', 'visual-basic-net-mono', 'python2-pypy', 'silos', 'pushy', 'agony']
'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f!"#$%&\'()*+,-./1234569:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^`cdghijkopqrtuvwxz{|}~\x7f'

Laikoni

Posted 2017-06-12T22:05:58.587

Reputation: 23 676

1

30. Visual Basic .NET (Mono), 9 bytes

MSGBOX 29

Pops up a system dialog box containing 29. Very similar to alert in javascript. It is case insensitive, but is usually written as MsgBox.

This can't be tested on TIO because MsgBox is a system window and that can't be seen online. The easiest way to test it is by pasting the code into a .vbs text file and running it on Windows. A .vbs file uses VBScript, a scripting version of VB that is very similar (MsgBox is the same between the two).

It's fun to use MsgBox again as that was the very first thing I ever programmed. In fifth grade, I made a series of MsgBox scripts to mess with friends.

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

1

31. Python 2 (PyPy), print-31

print--31-1

Try it online!

--31 is the same thing as 31, then -1 subtracts 1, making it 30.

Next toolbox

Comrade SparklePony

Posted 2017-06-12T22:05:58.587

Reputation: 5 784

1

33. Minkolang, 9 bytes

"332"(O).

Try it online!

Next Toolbox

Never heard of this one before, I have no idea how it works. It just did weird stuff and I went "ok fine" and got it to print what I wanted. :D

Draco18s no longer trusts SE

Posted 2017-06-12T22:05:58.587

Reputation: 3 053

1

38. Go, 20 bytes

First 20 byte Go solution on PPCG..? :P

func()int{return 37}

Try it online!

Next toolbox.

totallyhuman

Posted 2017-06-12T22:05:58.587

Reputation: 15 378

1

Emigna

Posted 2017-06-12T22:05:58.587

Reputation: 50 798

1

42. S.I.L.O.S, 8 bytes print 41

print 41

Try it online!

Little boring, but it works

Next toolbox

Skidsdev

Posted 2017-06-12T22:05:58.587

Reputation: 9 656

Welcome to SILOS – Rohan Jhunjhunwala – 2017-06-16T18:06:05.657

1

43. Logicode, 19 bytes

out @110100+@110010

Try it online!

Next toolbox

Emigna

Posted 2017-06-12T22:05:58.587

Reputation: 50 798

I didn't know that Logicode could output anything other than 1 and 0, I thought we were going to have to wait until 100. – Post Rock Garf Hunter – 2017-06-16T13:17:20.260

@WheatWizard: Yeah, at a first glance I was thinking the same but discovered that it could :) – Emigna – 2017-06-16T13:18:18.003

Well brainbool got added an it can't output anything other than 1 and 0 for sure. So it looks like we are going to have to wait on that one. – Post Rock Garf Hunter – 2017-06-16T13:19:24.780

@WheatWizard surely brainbool could output the correct number in base2? You said in the comments of the OP that outputting in a base other than 10 is acceptible if it's the standard way of outputting in that language – Skidsdev – 2017-06-16T13:26:20.973

1@Mayube Yes seems like it I forgot I said that. – Post Rock Garf Hunter – 2017-06-16T13:26:56.137

@WheatWizard I attempted a solution at #7 (IIRC) that output the value in base 2. I just didn't have all of the symbols required (cough, out, cough). But yes, logicode can output ascii. – Draco18s no longer trusts SE – 2017-06-16T14:00:57.477

1

46. uBASIC, PRINt45

4PRINt45

I ran out of uppercase letters, so I used a lowercase t! I guess you could call it PRIN-t or Printy!

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

1

48. Racket, cake eating peril (#47)

#lang racket (print 47)

"Cake eating peril?!?", you might ask. Well, if I said peak #7 in a rectilinear triple integral r(4) instead, then you'd all be confused and pinkcartgel() #47 just doesn't make sense, so cake eating peril (#47) was a natural choice. Plus, maybe Racket eats cake in it's free time. We'll never know.

It's no fun to say the chars you used sorted alphabetically. Anagrams are better. I'd suggest you do the same :).

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

1

54. ///, 2 bytes

53

Sorry for taking your numbers but there's really no better solution.

(oh wait, 5 and 3 got added to the toolbox again)

Try it online!

Next Toolbox

Okx

Posted 2017-06-12T22:05:58.587

Reputation: 15 025

1

56. Go

package main

import "fmt"

func main() {
   fmt.Println("55")
}

I learned this language just for this challenge. If I understood the challenge correctly, this should be valid.

Try it Online!

Next Toolbox

SuperStormer

Posted 2017-06-12T22:05:58.587

Reputation: 927

0

14. CJam, 2 bytes

I'll try to be a bit more creative next time.

13

Try it online!

Next toolbox

Santiago Benoit

Posted 2017-06-12T22:05:58.587

Reputation: 261

Next character set: ABCDEFGHIJKLMNOPQRSTUVWWWWWWWWWWWWWXYZ What? 13 Ws? – Draco18s no longer trusts SE – 2017-06-14T20:02:28.253

Must be a bug in the python script – Santiago Benoit – 2017-06-14T20:12:05.960

0

21. Turtlèd

"20"

Try it online!

Next Toolbox:

['elf', 'assembly-as', 'scheme-chez', 'logicode', 'golfscript', 'dstack', 'mariolang']
'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f'

Riley

Posted 2017-06-12T22:05:58.587

Reputation: 11 345

0

25. Arcyóu

24

Boring, but ¯\_(ツ)_/¯

Try it online!

Next Toolbox:

['elf', 'assembly-as', 'logicode', 'golfscript', 'visual-basic-net-mono', 'python2-pypy', 'silos']
'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f'

Riley

Posted 2017-06-12T22:05:58.587

Reputation: 11 345

0

26. GolfScript, 2 bytes

25

GolfScript makes this way too easy.

It pushes 25 to the stack, then when the program ends, it prints the stack.

Try it online!

Next Toolbox

Available Languages

  • elf
  • assembly-as
  • logicode
  • visual-basic-net-mono
  • python2-pypy
  • silos
  • haskell

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

0

32. rk, 27 bytes

rk:start print: "31" rk:end

Chars used: "13:adeiknprst

The code is pretty self explanatory, but what surprised me is that rk was created by a 13 year old.

Try it online!

Next Toolbox

andrewarchi

Posted 2017-06-12T22:05:58.587

Reputation: 408

0

36. Foo, 10 bytes

&2+1$h&5$h

Try it online!

God I hope I understood this challenge correctly.

Chars used: $&+125h

Explanation

&2+1$h&5$h
&2          Set current cell to 2
  +1        Add 1 to current cell
    $h      Print as hexadecimal (i was taken so couldn't print as decimal
              thankfully 0-10 are the same in hex as in decimal)
      &5    Set current cell to 5
        $h  Print as hexadecimal

Next Toolbox

Looks like Go's on the menu now, hope to see something awesome from totallyhuman

Skidsdev

Posted 2017-06-12T22:05:58.587

Reputation: 9 656

now that I think about it perhaps I should've used up 7 and * instead of 1, 2 and +. – Skidsdev – 2017-06-16T08:05:04.380

@totallyhuman Go is still there. – Okx – 2017-06-16T10:47:41.527

Ah, whoops. I was looking at the wrong section in the toolbox. ^^ And it seems I have every character I can possibly have... – totallyhuman – 2017-06-16T10:49:19.733

0

37. Oasis, 36 bytes

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Try it online!

Next Toolbox

Okx

Posted 2017-06-12T22:05:58.587

Reputation: 15 025

0

40. Reticular, 7 bytes

12+:9O;

Try it online!

Next toolbox

Skidsdev

Posted 2017-06-12T22:05:58.587

Reputation: 9 656

0

41. Random Brainfuck, 19 bytes

-[>+<-----]>+.----.

Try it online!

Next toolbox

Emigna

Posted 2017-06-12T22:05:58.587

Reputation: 50 798

0

44. D, "().34;adeilmnoprstvw{}

import std.stdio;void main(){writeln("43");}

Try it online!

Next toolbox

Post Rock Garf Hunter

Posted 2017-06-12T22:05:58.587

Reputation: 55 382

0

47. Forth (forth-gforth), 46 .

46 .

Try it online

Well that was easy.

Next Toolbox

mbomb007

Posted 2017-06-12T22:05:58.587

Reputation: 21 944

You used the input of 46's toolbox for your toolbox. I'll fix it for you – andrewarchi – 2017-06-16T15:39:47.797

0

49. brainbool, 26 bytes +><.

+>+<.>.>.>.>.>.

Try it online!

Outputs 110000, which is 48 in base 2

Next toolbox

Skidsdev

Posted 2017-06-12T22:05:58.587

Reputation: 9 656

0

totallyhuman

Posted 2017-06-12T22:05:58.587

Reputation: 15 378

0

Comrade SparklePony

Posted 2017-06-12T22:05:58.587

Reputation: 5 784

0

52. Factor, 17 bytes

USE: io
"51"print

Try it online!

Next toolbox

totallyhuman

Posted 2017-06-12T22:05:58.587

Reputation: 15 378

0

53. Actually, 6DP*

6DP6DD*

Try it online!


6       push 6
 D      pop 6, push 6-1=5
  P     pop 5, push the 5th prime = 13
   6DD  push 6-1-1=4
      * pop 13 and 4, push 13*4=52

Next toolbox

Zack C.

Posted 2017-06-12T22:05:58.587

Reputation: 491

0

55. Agony

+++++++++++++++++++++++++++++++++++++++++++++++++++++.-.

I don't really get this language, but it seems to be a superset of brainfuck.

Try it online!

Next toolbox

Business Cat

Posted 2017-06-12T22:05:58.587

Reputation: 8 927