« first day (1793 days earlier)      last day (3052 days later) » 

12:05 AM
Helloooo
A long time later...
 
12:22 AM
120 stars to go !!!
 
for what
 
Why doesn't this work?
 
F A N A T I C
I've sold my soul to PPCG.
2
 
._.
 
> visited 100 days, 100 consecutive
Meh, not bad
 
12:27 AM
I've spent nearly a consecutive year on the site.
 
Also I got El Dorado for that
Hmmm which looks cooler
@AlexA. Can you clean up the starboard? It looks like a emoji slaughterhouse.
4
Just discarded limbs everywhere...
 
Yeyyey
 
Star troll?
 
@quartata 1st time I got over 90 on SO I purposely missed a day not to get that badge
 
@CSᵠ ...why?
 
12:28 AM
@quartata naming sux
 
Do you just not want to accept your obsession?
 
> visited 40 days, 12 consecutive
Well not getting fanatic anytime soon
 
@BlockCoder1392 And I said hey-yey-yey-yeyey, ey-yey-yey. I said hey. What's going on?
 
12:29 AM
who
 
^ this
 
Damn, I should have given you the 10 hour version
 
ಠ_ಠ
 
I once listened to 10 hours of "They're taking the hobbits to Isengard!"
 
12:31 AM
@El'endiaStarman I also have.
 
@El'endiaStarman I listened to 10 hours of the epic face song whilst studying for exams
 
Working on a perl bb96 encoder/decoder...
Last time I checked it wasn't spelled "Hello, W@@@ `" though
So I think I might have done something wrong
 
I hate playing TF2 where everyone on the other team is the "taunt when you kill" type
 
The usual solution I've found for that is to duel them all one by one
 
@quartata that works? XD
 
12:45 AM
Yes. It takes a while though.
It's better on 24/7 servers since the duel basically only ends when they ragequit.
 
Guys, check out the Helios bot (Spacewar!).
 
@El'endiaStarman The Helios bot looks pretty much like the Engineer o_o
 
I think this is one of my favorite bots so far. It's surprisingly good! — El'endia Starman 38 secs ago
@CᴏɴᴏʀO'Bʀɪᴇɴ It's better!
 
I have no idea how to play Spacewar but this bot looks cool
 
12:49 AM
Engineer vs Helios: 1-7. Yup. Better.
 
@El'endiaStarman So? I feel pirated.
:P
 
This is definitely an interesting KoTH,
I can tell you spent way too much time on it
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Say, are you ever going to fix your bot?
 
@El'endiaStarman fix it?
 
@quartata Haha, only a week at most, I think.
@CᴏɴᴏʀO'Bʀɪᴇɴ Yeah, it's still asymmetrical.
 
12:50 AM
One week is one week too many
 
@El'endiaStarman I'll ship it as a feature.
No pun intended
 
Meta question is closed by its own author, with good explanation in comments. Response: someone votes to reopen...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You shouldn't. The code is quite different at a glance, and the Helios bot is smart enough to shoot across boundaries.
 
@El'endiaStarman Note the :P
 
Helios vs Helios - 2-3.
That pairing is fun to watch.
Second game: 5-4.
Third game: 1-3.
It's worth noting that the worst bots usually die at least 10 times in a single game.
 
1:04 AM
Sunavoider and Helios played a 0-0 game o_o
 
hahaha
Fourth game: 2-2.
 
Hey @El'endiaStarman we should make botVars writable
That makes bots better
 
botVars is writable.
Whatever made you think it isn't?
 
I mean, in the second function
 
That's still the case.
 
1:09 AM
'
function userbot_setup(team) {
    var botVars = {};

botVars["color"] = team;
    botVars["color"] = team;
    botVars.i = 0
    return botVars;
}
function userbot_getActions(gameInfo, botVars) {
    var actions = [];

    actions.push(["fire missile","turn right","turn left"][botVars.i%3])
    botVars.i++;
    return actions;
}
waut'
 
Ah, I think I know what you're getting confused by.
 
Consider that there are 33 frames in a second. In each frame, your bot does something.
If you always turn right and then immediately turn left, you will hardly ever see the change.
Take out one of the turn commands.
 
Still, wouldn't the missile fire?
 
And please don't consider submitting this bot. There are already too many boring bots.
 
1:11 AM
And even then, actions.push(["fire missile","turn right","turn left"][(botVars.i/10|0)%3]) doesn't work
 
Missiles are rate-limited.
 
@El'endiaStarman I'm not. It is merely a test
But none are coming out'
No action is registering.
oh wait
I'm an idiot
I set it on human by accident
Sorry ^^"
 
ah, lol
Still, I put your code in and I'm getting Uncaught TypeError: Cannot read property 'replace' of undefined.
 
huh
I don't have replace anywhere in the bot. It must be your problem
 
I changed botVars.i++; to botVars.i += 1; and now it works.
Heh, wasn't my code...
 
1:15 AM
o-o
that makes legit no sense
They are the same thing!
 
And besides, it works fine on Firefox. it must be something wrong with Chrome :P
 
Yeah, maybe.
 
@El'endiaStarman I love your KotH! Would it be useful to have a link to your question from your game page?
 
No wait, I changed it back. It does work.
I guess I must've forgotten to hit the "Set userbot code" button.
 
1:17 AM
o___o
oh
Or blame caching
 
@trichoplax Thanks! Hmm, that's probably a good idea.
Haha, yeah.
 
@El'endiaStarman And the GitHub
 
I've created a bot that turns straight up :D
@El'endiaStarman The first function is only run once?
I thought it was run at the beginning of every round
 
@CᴏɴᴏʀO'Bʀɪᴇɴ If you use S to restart, yes. If you click the grid to restart, no.
 
1:25 AM
huh
that's annoying :P
 
lol
I'll probably end up fixing that when I get around to writing code that will run this game as fast as possible.
 
To see the true results?
 
More like to get them as fast as possible.
We have 17 bots so far.
 
We'll probably have at least 20 bots, let's say 25 altogether once I start the tournament.
 
1:27 AM
BTW we should make a limit for the name size. IDKWhatToCallThisBot (or whatever its called) exceeds the boundaries.
 
That's 25*25 = 625 pairings, and I said I would run each match at least 10 times, in both color orders, so 20 altogether, per pairing. At 1.5 minutes per match...
That's just over 5.2 days.
 
o-o
I could run some on my computer :P
 
Now, I know from experience that the render loop usually takes only 1 millisecond to run...
I can write code where I just cut out all of the graphics stuff and run the update loop literally as fast as possible.
 
That would probably be best
It should still mirror the regular results
OR you could do it bracket-style!
Sorry I'm ADHD with thoughts, too >_<
 
There shouldn't be any difference between doing it slowly and doing it fast. It'll be the exact same code that's run (excepting graphics rendering).
And nah on bracket style.
 
1:32 AM
@El'endiaStarman ok
@El'endiaStarman Unless if someone has long code to run, which I doubt
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Well, yeah, and one bot taking 10 times as long to run won't really make that much of a difference.
 
@El'endiaStarman And that, too
 
does anyone know how random Python sets are? I know it isn't good enough for crypto, but is it good enough for a game?
 
Sets? I've never heard of sets being used for randomness.
 
1:41 AM
cuz I'm writing a game where I'm already using a set, and wondering if list(stuff) is enough
 
Whatever code you are using, ಠ_ಠ
 
I could try...
 
or I need random.shuffle(list(stuff))
 
>>> list({1, 2, 3})
[1, 2, 3]
>>> list({1, 2, 3})
[1, 2, 3]
>>> list({1, 2, 3})
[1, 2, 3]
 
1:42 AM
How would you cause its ordering to change?
 
@Doorknob冰 they aren't ints
@El'endiaStarman sets are hash-maps sans map
 
>>> list({'foo','bar','baz'})
['bar', 'foo', 'baz']
>>> list({'foo','bar','baz'})
['bar', 'foo', 'baz']
>>> list({'foo','bar','baz'})
['bar', 'foo', 'baz']
Same thing, I think they end up ordered by hash code
 
Yeah. I don't think the ordering of sets changes unless you add or delete something.
 
@Doorknob冰 it doesn't need to be different each time. I know I shouldn't be doing it, but i"m just curious
 
They're not so much "random" as "not guaranteed to be ordered the way you want/put them in".
 
1:43 AM
Just... don't do that >.<
 
hey @El'endiaStarman I think I'll make a permalinking system for the spacewar game
 
>>> s = set()
>>> X = list(range(15))
>>> X
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
>>> shuffle(X)
>>> X
[13, 1, 2, 4, 9, 12, 8, 0, 14, 3, 5, 11, 6, 10, 7]
>>> for x in X: s.add(x)

>>> s
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}
@Maltysen: ^ there's no randomness in sets.
@CᴏɴᴏʀO'Bʀɪᴇɴ Sure, that'd be cool.
 
yay!
And would it be possible to move the bots into a folder, or something? Idk how you got that stuff working and all
 
Ctrl+U and you'll see all of the bots' scripts have been included.
 
1:52 AM
scripts = []
for filename in os.listdir(path):
    if filename.endswith('.js'): scripts.append('Spacewar/'+filename)
context['scripts'] = scripts
 
Can you include, say, another folder?
oh
 
That's a piece of my Django view.
 
scripts = []
for filename in os.listdir(path):
    if filename.endswith('.js'): scripts.append('Spacewar/bots/'+filename)
context['scripts'] = scripts
 
I guess it would make sense to put the bots in their own folder...
 
Would that work?
 
1:53 AM
I'd have to augment path, and I'd also have to manually include non-bot files.
Which is not a big deal.
 
oh okay
So should we do it?
 
I'm leaning towards "yes", but I'll do it. I want to make sure that code and file structure work together before pushing to the server.
@CᴏɴᴏʀO'Bʀɪᴇɴ That's lazy programming on my part, actually...
I just set it at 20 characters, basically.
Wouldn't be hard to set it to the maximum.
 
@El'endiaStarman Okay, then
@El'endiaStarman Ship it as a feature :P
 
haha
That's kinda why I've been putting it off. It's not really a big deal...but I'll fix it anyway.
 
I tried downloading the webpage to edit it, and I get this :
o_o
 
2:00 AM
haha wow um...
oh, I know why
main.js and game_engine.js add the play field and selection grid.
 
<h1>PPCG &ndash; Spacewar! King of the Hill</h1>

<div id="playfield" tabindex="1"></div>

<table id="action-table">
 
huh
		<p><button onclick="clearInterval(renderLoop); renderLoop=false;">Stop the animation!</button>
		<button onclick="setupGame(0)">Reset</button>
		<button onclick="setupGame(1)">Restart</button>
		Gravity? <input id="gravityCheck" checked="checked" type="checkbox">
		Intersections? <input id="showIntersections" type="checkbox"> <button onclick="save()">Save permalink</button><button onclick="load()">Load permalink</button></p>
Could you add that to your HTML file?
It's the options paragraph
 
Did you already add the relevant JS?
 
2:05 AM
Okay, I see setup and action in the URL.
So this is for the userbot?
 
Yeah
The relevant code is in main.js iirc
 
Is the load permalink button really needed?
Just going to the permalink URL loaded the code.
 
It isn't, but it's useful
If you save a bot, then edit it, realize you make a mistake, and reload it
 
But it doesn't actually load the permalink.
If you change it in the URL bar, the code doesn't change.
Alright, I'm going to unminify the JS code you added.
Also, since when could you use commas like that?
 
s/then //
 
2:19 AM
1
Q: Print the QWERTY keyboard using keys that are as close together as possible

geokavel Normally, challenges are scored in bytes, or sometimes Levenshtein distance, but for this one we're using keyboard distance -- the number of keys between the keys used to type the program (use the above keyboard as the definitive reference). For example, the distance between A and F is 3, becau...

 
location.hash.slice(1).split("&").map(function(e){
    e=e.split("="),
    "setup"==e[0]&&(document.getElementById("userbot-setup").value=dec(e[1])),
    "action"==e[0]&&(document.getElementById("userbot-getactions").value=dec(e[1]))
})
@CᴏɴᴏʀO'Bʀɪᴇɴ: What's going on here? ^
 
2:33 AM
0
A: Sandbox for Proposed Challenges

CyoceNth Regex This challenge('s explanation) is simple: given a number n and a regex r, output the nth string that matches r! The only valid strings are printable ASCII characters, and they count up like base 94 (ASCII codes 32-126). To prevent people from brute-forcing it, I was thinking of makin...

I know I need to clear it up a bit...
 
0
A: Sandbox for Proposed Challenges

CyoceNth Regex This challenge('s explanation) is simple: given a number n and a regex r, output the nth string that matches r! The only valid strings are printable ASCII characters, and they count up like base 94 (ASCII codes 32-126). To prevent people from brute-forcing it, I was thinking of makin...

 
lol
 
@Sp3000 Hi
 
@CᴏɴᴏʀO'Bʀɪᴇɴ: Your additions are now live!
 
@AlexA. Hey (^.^)/
 
2:43 AM
@Sp3000 Haven't seen you around much lately. How are things?
 
Busy, essentially :P
 
Haha alright
I hope you've been well despite being busy
 
Been okay :)
I'd ask how the site's been but with Winter Bash I assume you're all fine :P
 
Overrun Blessed and graced with hats, but otherwise fine :P
 
2:58 AM
s/Overrun/Blessed and graced/
 
Speaking of which, you seem to have a marked lack of hats on your avatar
@Doorknob冰 fixed
 

« first day (1793 days earlier)      last day (3052 days later) »