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
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...noo
forout
put. – Draco18s no longer trusts SE – 2017-06-13T17:34:06.7901@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
– Draco18s no longer trusts SE – 2017-06-14T20:13:36.873W
s in the toolbox linked on that answer.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