lol I've only ever used python 3 but I think about the only thing you'd need to change in this code is to add parentheses to the print statement as in python 3 it's a print function
I really like this question but I know there are complaints of it being more about art than programming. I'd like to hear both sides of this and see what is in the best interest of the community and the site's public beta.
I'm posting my own view as an answer so that the votes will show where it...
@Doorknob now that you mention it I could have drafted my answer elsewhere before posting the question and then just pasted it in - don't know why I didn't think of that...
I think I've got a marbelous main board for the tweetable mathematical art competition. Right now it just outputs R=G=B=i but now I can actually start implementing the functions
140 characters is 7x20 or 20x7... I can accomplish something in that
oh, drat, half that
7x10 or 10x7
still doable!
sadly even R=G=B=i takes four minutes to run for a 256x256 image
Hey guys, I have a question in the sandbox I want to post to the site eventually. It hasn't gotten a ton of feedback, but I'm willing to make changes to it if that's what it takes to make a good question. I think it might end up just getting lost in the sandbox. Should I post it to the site anyway? Or wait in hopes of having more people stumble across it? I didn't want to make a pointless edit to bump it to the top of active, since I don't have any changes I want to make to it.
Piet (honorary answer)
Snakes its way downwards, running out the right through blue and re-entering through green. Prints out "Fruit flies like a banana."
I used PietCreator to make this, but you can try it out here. Remaking Piet programs is a pain, so I started out at 35x35 and continued th...
Conway's Game of Life is (almost) always played on a regular square grid, but it doesn't need to be.
Write a program that implements the standard cell neighboring rules from Conway's Game of Life on a two-dimensional tiling of the Euclidean plane that is not a regular tiling of squares, triangle...
Using all keywords exactly once
Overview
The task is to write a program in which every keyword of the programming language is used exactly once and to output "Hello World!"
The program may not fail, i.e. outputting "Hello world" and then making the program die silently is not permitted.
Keyw...
I think you might be able to find something if you set up a random initial condition that's mirrored on the vertical centre line
I've seen a few interesting vertically symmetric patterns, but they don't occur often enough and isolated enough to be sure that they will always vanish
(that is for your second tiling)
(btw that's how I was able to reproduce my glider for the other tiling... it happens way to rarely on a completely random grid)
of course increasing the grid size and decreasing the time step also helped
I have a problem with objectively identifying duplicate entries in my challenges, so usually I just don't even try. Some of them are really obvious, but some of them are not. Some solutions are too obfuscated for me to even understand. The moment I start to disqualify some of them, I have to be f...
@ChrisJester-Young Off-topic but I was doing some of my usual shady link-following and saw that you go to Mensa things - my piano teacher suggested I join and I know nothing about it xD
@cjfaure So, I see Mensa as a social group for people with high IQ, where IQ can be measured by a variety of different tests, and passing any single one is sufficient to get in.
@cjfaure While online IQ tests are not considered valid, you only need to be 2SD above mean to get in. So for tests that are SD=16, you can get in on 132 IQ.
(Pretty much all IQ measurements are adjusted to have mean = 100.)
I'll probably never sound that informed again :D however I did find this particularly smart sounding [wikipedia article](https://en.wikipedia.org/wiki/Neuroscience_and_intelligence)
IQ tests in general have been widely discredited, at least insofar as they imply anything much beyond the test. On the other hand, 2 standard deviations on a logic test is probably at least meaningful.
But anyone who's sitting around doing code golf puzzles is bound to do better on a logic test than the general public
@EricTressler Oh, I don't ascribe any meaning to it at all, other than that people usually have to be some kind of nerd to want to assign a number to something like that. :-)
So if Mensa is just a social gathering of nerds, I'm okay with that.
I can't remember for sure, but I think the guy who was the main proponent of that had an unusually smooth skull, or else had bumps where they were supposed to indicate intelligence
Yeah, that's true. Ugh, I've been running this tweetable art program over and over since 12 hours ago. I fell asleep last night waiting for it to finish
I'm counting the contents of the red, green, and blue functions
@cjfaure other people are doing 512x512, or 8-bit instead of 10-bit color, so I don't feel bad constraining the output. if you extend the main() of my code to 1024x1024 you'll just get the same output tiled 16 times
Hmm. It turns out that random vines look pretty good as a background if you green up the color and extend it to 3840x1080 :) Just too bad imgur mangles large pictures.
@cjfaure I think what you'd end up with is a queue of actions to take, and each device would be augmented with the places its outputs end up and how far away those places are, to add that next action to the queue
now that I've written that, it occurs to me that that might be a goal for the interpreter as well :)
right now I track two falling marbles out of a splitter, iterating the fall every tick until they reach something else interesting.
instead, at the moment they leave the splitter I could look ahead to that next interesting thing, and add "marble X does interesting thing Y on tick Z" to position Z in the future queue
@NathanMerrill that will be awesome. I won't be working on it much more today, or likely tomorrow, so you've got some merge-conflict-free time
There's a new problem to output graham's number. Ron Graham was my thesis advisor
And one of my coauthors.
Interestingly, the number there is not his original definition of the number. I'm not sure where it got changed, but I think it may have been simplified in correspondence with Martin Gardner
guys, can we write down some design goals at some point... we've all been designing around our individual visions, and so far we were able to reconcile them fairly well... but I think if we don't have some overarching design written down, someone may at some point question some previous important design decision and replace it with something that just seems like a good thing at the time
Hmm. Since there's no output from the first command, it's hard to say, but I'm guessing you don't have both 'Make' and 'make' commands. Try using lowercase without the sudo.
Marbelous
The actual output image is rather mundane compared to other entries here, the equivalent of about 25 bytes of C. I had more fun writing the main loop than the R/G/B functions.
Note that spaces between cells are optional, included here for clarity. The Gren function is actually 53 by...
Idea for a golf: **Light some fireworks** Given a list of fireworks that need lighting and the times which they should light, arrange the fuse assembly so that they will all light at the right time. Each unit of fuse takes one unit of time to burn. Example input and output:
a 3 b 6 c 6 d 8 e 9 f 9
---a
|
|-c
--|--d
| b |
f e
Now, how do I prevent people from taking too much fuse and just using a single branch for each firework? I'm not sure how I can prove optimality in all test cases.
they give you a bunch of test cases. you solve the problem. then everyone looks at all the solutions, and you get extra points for coming up with test cases that break others' solutions
IIRC, Martin had people submitting extra test cases for Vector Racing. The idea was that if you had a test case that your algorithm performed well on where others didn't, it gave an advantage overall.
Yes, I did that with a code challenge, and I intend to do that with the next code challenge as well. Someone also recently suggested running two challenges in parallel (overactor I think), where you could pit solutions from one challenge against solutions of the other. A suitable challenge for that would be a two-part thing, where one challenge is to design complicated mazes and the other is to solve mazes (there's a sandbox proposal for that).