You're right, that should be -= i, thanks. And as I said, I'm just starting to teach myself, but I think that i should fall out of scope each time anyway?
the way to get it looping is to insert 17 or so bytes
most of which is the word "netscape2"
@MartinBüttner would you mind checking this works and doesn't set your computer on fire or the like visualmelon.onl/103.gif (should loop after 1second delay on the last frame)
Global Warmth king-of-the-hill
This KOTH takes place on a nice iceberg of circular surface which gradually shrinks. The goal is to be the last entry to fall off the iceberg. Each turn, participants can either move in a certain direction (or none), or if they are near enough, can push other parti...
I changed my mind about the output input, I think it's worth more that the helper code provides extended functionality in this challenge than that people can use the language they want.
I'm not a very experienced coder at all, did i start okay?
There might also be mistakes, I did this in some online java editor thing, I'll finish it in eclipse though.
oh shit yeah, I'm mainly programming in delphi, there = is to compare and := is for assignment. I didn't know java had a ternary operator, in such simple functions it's definitely a plus.
@VisualMelon ah good... from a quick glance at your code it looked like you replaced things with # immediately, in which case that last tile probably would have fallen, too
Hi guys, I updated my sandbox answer that I originally intended to have someone else do. Any feedback on the direction it's going and the code in general are welcome : meta.codegolf.stackexchange.com/questions/1847/…
@MartinBüttner Damn. Maybe I'll set MODE to 0 for the next tourney. :)
I don't actually know if this is true, but I've heard rumours that the slot machines in the Rocket Game Corner from the generation 1 pokemon games were programmed to behave in ways gamblers think that casinos work. There were hot machines, cold machines, that kind of thing.
As a kid, I usually ended up just buying coins to buy prizes with, though. It was faster, and why play slots when I could be battling pokemon? :P
@Trimsty When I'm reading code-golf submissions, I get hyped about confusing code and I take it as a challenge. Anything else and my eyes just kind of glaze over, haha.
@MartinBüttner Oh, god, I know. One time I let my sister use my laptop and set it to QWERTY for her, but she accidentally set it back to Dvorak and I wasn't around to help her. The solution that her and Dad came up with was to go into my system settings and remove Dvorak entirely. Wasn't a hard fix, but still.
I'm trying to figure out something about the judge
the rules say that poking with zero sharpness does nothing. the judge says that poking with zero sharpness blocks. many existing entries seem to calculate as if poking with zero sharpness results in negative one sharpness.
The Entertainer
Caveman have party. Caveman poke guests. Caveman have plan.
from sys import argv
print("PSSBSPPBSB"[len(argv)<2 or (len(argv[1])+argv[1].count("B"))%10])
The name comes from his strange ability to influence the opponent's action.
I modified some good existing bots to test with. Giving up the first move is a net loss, but it does win in some situations that the bot would otherwise lose in
and my goal is more to get the other bots fixed than to win :)
Game element idea: You're can change one of your earlier moves, but you have to choose wisely because the moves that you did after that might kill you.
Also, I'm not actually sure that it makes sense to have all my code in an anonymous function that immediately gets called. It's not bad, either, but I don't actually know if there's a reason to do that.
That's just how it was in the SO answer I found :P
the reason is that JS doesn't have block scoping but function scoping... so unless you code in a function, everything is global. so the only way to create a scope/module/whatever is to write a function. but if it's your "main" or whatever, you still wanna run it, so you call it immediately
well my Pokeball one was beaten by J (amongst others)... but why would I golf in CoffeeScript anyway :D
how on earth is Generalist a silver badge... on SO the only gold badges that are rarer than Generalist are Reversal, Legendary and Publicist (plus the moderator ones, obviously)