How Many Laps?
I was at my taekwondo training last night and the first thing we do when we start is a ~5 min jog around the gym to get warmed up. The problem is as follows. We run around the edge of the gym, everyone starting from wherever they like, and everyone jogs at a slightly different spe...
I've never really liked or used the sandbox, but I've recently posted 2-3 really sloppy challenges. They all would have really benefited from a couple days in the sandbox.
EDIT: This challenge is looking for someone to either writefinish and run an arena server, or someone that wants to rephrase the challenge so that an arena server is not needed and who is also prepared to run entries manually. Both options turned out to be more complicated for me than I originall...
DUP
It's simple: 2+2=5.
Try it here.
Hehe, good luck with this one.
Explanation
DUP treats most A-za-z as variables, albeit uninitialized. It pushes 2 uninitialized variables to the stack. 's pushes charcode of s to the stack. Whitespace is entirely ignored. simple pushes 6 more uninitializ...
I wrote the client to take input piped from stdin/stdOut so that it any one can use my client(It has a visualizer to watch the chaos unfold) with pretty much any language they want
Im just running some tests with the server to get it to make matches between all the bots and not do anything to stupid.
Game Of Life
The Game of Life is a zero-player game, where cells evolve over time by following a simple set of rules determining whether any given cells will live or die.
I have found that generally speaking, the kind of people that know about and like The Game of Life are pretty nerdy. And thi...
Happy Prime numbers: A happy prime number is a number that is both a prime number and a happy number.
For example, the happy prime numbers below 500 are: 7, 13, 19, 23, 31, 79, 97, 103, 109, 139, 167, 193, 239, 263, 293, 313, 331, 367, 379, 383,
397, 409, 487
**The goal of this problem isn't j...
Please don't manually remove spam from posts. I almost didn't spam-flag the question, because it didn't look like it. After 6 spam flags (or one from a mod), the post is edited, deleted and locked by Community, and the poster is added to SE's red list.
Calculate π(n)
π(n) is the number of primes less than or equal to n.
Input: a natural number, n.
Output: π(n).
Scoring: This is a fastest-code challenge. Score will be the sum of times for several TBD values of n.
Your code should work n up to 1 billion (?).
@quintopia, no it was spam because it said: "if you would like to be able to save and compare efficiency of your programs feel free to register at greencode.cs.txstate.edu/"
An uninspired challenge that took 30 seconds to type up with random links scattered about it while pleading for us to register for something online? spam.
1) it is proposing a new type of challenge: most energy-efficient code 2) it provides a tool for automatically scoring this challenge and links to this tool 3) this tool is hosted by a respected university, clearly part of some larger campaign to promote more energy efficient code 4) an email is provided for those who want help with the tool 5) no product is being sold
@Doorknob: I downloaded vim for Windows and the hybrid color scheme. I think it did work, but then I did gvim just to see what it looked like, and since then, I can't get :colorscheme hybrid to work at all.
That command does work in gvim though. Pretty frustrating, honestly...
The broken minus parser code-golf parsing
Sam is trying to create a new programming language, but is having a lot of trouble getting the parser right. For example,
4--5
evaluates correctly to 4 - (-5) = 9, but
4-5
is giving a result of -20!
After doing some digging around, Sam realises th...
@Dennis Could you please freeze my account and chat ban me for 3 days (or whatever time period is shortest past that)? I'm going to be really busy in school the next few days and CG is just going to get in the way.
KOTH Jump 'n' Run king-of-the-hill
A Jump 'n' Run game where you have to run from the Start to the End. Here is an example map:
████████████████████████████████████
█ █
█ █
█ █
█S █ ...
I can kinda see the point in making a new golfing language, or making a new one to learn stuff about language creation. Making one just to be hard to use seems like a waste of time to me. YMMV
@somebody Haven't used it, but it seems like a bastard cross between C++ and Java, so it would probably be okay, though I don't see the point in learning it unless I need to for work or something.
@TimmyD The only thing I've ever really used VBScript for was chatbots ;)
@somebody Actionscript, flash, silverlight... basically anything that runs in a browser kinda sucks imo. It's surprising to me that it's still the case, but there it is.
A struggling manufacturer named Tennessee Instrumental is desperate to get into the calculator business. Problem is, they don't have any software engineers on payroll, and the deadline is coming up fast.
It's your job to help TI configure a basic calculus-ready calculator that can simplify expr...
I have made my own compression tool for a stack-based language that uses a dictionary compression method. The code for the decompression is the following:
elif current_command == "\u201d":
temp_string = ""
temp_string_2 = ""
temp_index = ""
temp_position = pointer_position
wh...
Since designers on other sites have taken into account user ideas on meta, please browse the meta post and downvote/comment loudly for anything you don't want to see.
Programming Puzzles & Code Golf will someday graduate out of public beta, and it will get a new site design. Stack Exchange employees generally do all the design work and make the design decisions, but that doesn't mean we can't nudge them in the right direction when the time comes.
This meta po...
@trichoplax I've thought about going through and downvoting a bunch of stuff there. I don't have any real alternatives, though, so I'm not sure what good it is to shout down the others. I just know what I like when I see it, and haven't yet, that's all.
@Geobits I've done a fair bit of downvoting there, and upvoting comments that point out why things won't fit. I'd rather see meta full of downvoted things to avoid, than just end up with a design that appeared to be popular.