You will take in 3 integers between 0,255 inclusive and output the converted 3 integers, as an array or similar structure (representing red, green, and blue values).
Websafe colors are in intervals of %51, in hex they include 0,3,6,9,c, and f as digits (such as #993333).
As this is code golf, l...
I was thinking the other day about this idea and I thought "hey, if a question has no code, that means it very likely contains no test cases nor explanations, right?" so I wanted to test it out
I wonder: has there ever been a problem where the output of a program ended up being the same as the TIO output separator, and if so, how would that break TIO (and would it in the first place)?
yay I just finished my CS assignment for a GUI thing
I think I overkilled it xD
it was just meant to be a GUI introduction with a Happy Birthday message dialog thing with like labels, buttons, and basic string concat but I got bored so I also made it process the date input and determine the user's age xD
Draw 'til You Drop! code-golf random game
In D&D 5th edition (as well as most other editions), there exists a magic item called the Deck of Many Things. It is an incredibly powerful item, as the cards all have very strong positive or negative effects. To use the deck, a character declares a numb...
Sequencus Indexus Digitnietus
code-golfsequencenumberinteger
Title is made up, from 'Sequence Index Digit Niet' ('niet' = 'not' in Dutch).
Challenge:
Given an integer n in the range 0 ≤ n < 1,023,456,789, output the n'th number of the following sequence.
Here are the first 50 items, with it's...
@Mr.Xcoder Sure, although I doubt anyone knows QuadS… Also, beware that vowel runs are not actually diphthongs, rather they are digraphs. But many diphthongs are spelled with digraphs, so you can say that "for the purposes of this challenge…"
@ASCII-only I wouldn't. Too hard to read. And doesn't line up well in code.
(phonetics) A complex vowel sound that begins with the sound of one vowel, transitions through another vowel sound, and ends with the sound of yet another vowel.
Take one to make one
Challenge
Given a list of positive integers, find if there exists a permutation where taking up to one bit from each of the integers, a binary number consisting of all 1s can be created.
The number of bits in the resulting binary number is equal to the highest MSB in the l...
(cc @SocraticPhoenix @VoteToReopen) I got a TIO chat bot working! :D It's on my home computer so I can't access the code or start it up right now but I might be able to demo it later tonight (but probably tomorrow)
CMP: Name suggestions for an extended Python interpreter that autocompletes brackets semi-intelligently, quotes, and uses partial evaluation? (Same concept as ARBLE for the last point.) Essentially Python, but for golfing xD
I was also considering Pyon (parody of "Pion" which is a subatomic particle which goes well together with the names of my practical language and failed Mathematica/Python combo)
@SocraticPhoenix xD I was motivated enough to finish it to not go do something else :P
It took a while to figure out why the output format was wrong until I realized that I was placing the four spaces after each line so it wasn't becoming fixed font :P
@SocraticPhoenix well I did too ಠ_ಠ and besides, yesterday I managed to write half my history essay (which is due in like 10 minutes), overkill my CS homework for this week, play minecraft, and finish the TIO bot :P
@Adám You can check its output format in the Sandbox; it just takes the array of strings returned from TIO and outputs them separated with ==========
That's 2:30 here. Unfortunately, I don't get home until 5. So no, sorry, I can't run it :(
Python for Golfing: https://tio.run/##rVhZc9s2EH7Xr0DQzJiMLNVy2jxoqrZpY7fu4fRIr9AcDUzBFhUJYEAotuP6t7u7AChCIijbSTmZsQDs@e1isZviSk@leHp7my8KqTRRvNOZ8DMyZeXYbkWCLXg87BD4tLqyP/AbO4Lx2JKYA36Z8ULXRIrrpRLkkM1L3vE2Xqml05QxMebv2DzK5CSopz78QA1nucjL6Zhf8szI2SVMnZdBVRWJr4ociQkXmulcigOlpCKsJLxmys8IT/bSfqmZ0uVFrqcRXQp@WfBM8wmNa0r85rngJRkR1NIvi3muI3oiaNwgAhqeDFL41@RPDEGPDFKg2thJBsN1Dt99VNWfyVxEhit2UNQAAIjr9iqWl5wcS320KOZ8AUDwiQ/OMYQ@hAqmBLrQX/CyZOc8eTbsDZ6lPmrhHAua7bKTkq4V3CXoCfzx4rnFCVCGJOub@MEuGIln/UIW0d56GJqCGhnTFKbYxTgXxVJHMeodkE/JPhmNyJ4RR9xRQ4CD8@DloUFzmwa6R1uRqtBBMvgbIUfuXTJYx9YQxQtllnEYTXN1CsXre@M…
yeah :/ next week I can try to get it running in the morning, though I don't have internet that early so the bot will have to keep making connection attempts.
print(1]) will evaluate as print([1]); if it finds a lone close-bracket, it looks backwards until it finds the first unclosed bracket, and opens it next to that one
While reading the mt19937 source code (cython) I notice that there are 2 /* non linear */ comment. No wonder why feersum 's Seed Hello World program need to be that excessively long.
Question: Should I start working on the next OEIS or waiting for someone to post an answer and (highly likely, may be false if HyperNeutrino post it) get disappointed because that answer hardcode 1000 first items or use builtin function? (I still have Logo left, though I'd rather using Logo for some graphical-related sequence)
Code a program or function to construct an interactive canvas on the screen of at least 400 pixels x 400 pixels in size. The canvas can be any color you wish, bordered or borderless, with or without a title bar, etc., just some form of obvious canvas.
The user will click on two distinct areas of...
For the purposes of this challenge, a polyphtong is defined as a contiguous slice of a String, that only contains vowels, and has length at least 2. Given a non-empty String as input, your task is to output all the polyphtongs it contains.
For example, "abeoic" has the following contiguous slice...
@AdmBorkBork I suppose that's because some tabs being converted to 8 spaces instead of 4. Specifically, all the spaces before all lines except ones start with a {.
@user202729 Had to, or opted to? I took a Keyboarding class in high school which sucked, but everything I can remember from college was useful in that I learned new things.
@user202729 I'm pretty much positive that everyone in this room is someone who programs for fun, and if you program for fun, any CS course that isn't advanced will be way too easy for you
I took one class that was too easy (CS 1), but was worthwhile because I didn't know c++, and a second class (CS 2) that was not too easy, but I was one of the very few students that did well
Oh, and I also took a web-dev class that was waaaay too easy
I knew nothing about web-dev before taking that class. After taking that class, I still know nothing about web-dev. And yet it was still boringly easy
Print the following output of a happy coincidence addition pattern:
8
8
8
88
+888
----
1000
Rules:
No leading spaces except the ones already present
There can be a trailing newline
+ sign needs to be displayed
Order of parcels needs to be the same
No winner. It is code-golf per ...