« first day (1526 days earlier)      last day (3324 days later) » 

1:16 PM
@flawr You're on the blue team! Help amass the horde!
I'm trying to recruit some people to participate.
 
what for?=)
i just did my final (hopefully) edits on the source of my cat-catcher-challenge=)
i'm planning to release it this weekend
 
I'm referring to the Red vs Blue Pixel Battlebots challenge: codegolf.stackexchange.com/questions/48353/…
 
the specs are sooo long=/
=)
well then, im gonna read it and see if i can come up with something=)
 
The key to winning is teamwork. You will see how the bots made by Sp3000 and I work together. My suggestion is to join the group.
(Users are split into teams by their user ID numbers on PPCG. Your ID number is odd, so you're on my team.)
 
1:35 PM
hm any tactics that proved successful?
couldnt run it on firefox, now trying on chrome
 
It should work on Chrome.
 
what do i have to do in chrome? when i pres 'new battle' or 'run' nothing happens
 
The main tactic is to stick close to teammates.
Ummm.... I just click new battle and then run and it works.
 
ah now it works
 
Are the red and blue warriors loading on the sides?
Okay.
 
1:40 PM
Is the battle still going on? What are the stats now? I ran a few simulations and it seemed blue is winning most of the battles!
 
hm
same here
 
Ah I found some stats on chatting page
 
Since @PhiNotPi and @Sp3000 combo, it's a constant loss to the reds -.-
 
If it wasn't for your bot we'd have a clean sweep a lot more of the time :P
 
From a 1k run, the results were 176/759/65
 
1:44 PM
Our bot does have a few weaknesses though, so if you guys gang up right...
 
And I have quite an error in it, when being followed by an enemy and getting against the wall, instead of moving to the side it bounces and that makes it get eaten
 
is there anything you suggest doing?
 
When will the competition end?
I wish I could join...
 
But I didn't find out till this morning and now it's to late to fix it
 
@JeffBaxter Not at least for another week or two, says Calvin
 
1:46 PM
I wish you would not, we are already having a hard time, us reds... Please, more red people!!
 
Good. By the way I'm red:)
 
Oh wow! that's true
sorry, I looked at your user ID in the chat, but you have your main account in another site and there you have an odd ID
Then, please join!
 
@PhiNotPi i really don't know what i could contribute more, all of the tactics i could think of are covered by other bots
 
It would be great to have someone to take profit of Ismael's bot
 
@flawr I think the simplest option is a bot that locates and join up with SphiNotPi3000. Then, kill any enemies that approach.
Of course you can contribute.
If our pair of bots gets teamed up on by a pair of enemy bots, we need you to be there to break the tie.
 
1:51 PM
I think, tactically speaking, it's easier to wait and see what red comes up with first :P
 
hm is it allowed to copy other peoples code and modify it?
 
Do we red have to team up or lose?
 
Probably best to ask Calvin if not sure
 
Yep, teaming up seems to be the best strategy right now
 
I think Wasmoo and Minos are copies, or at least similar
 
1:52 PM
Ismael built a bot that let's other bots send him orders for what to do
but I'm not sure on how it works
 
I think it's surprisingly hard to give orders to other bots.
 
Ismael's bot only takes orders, doesn't do anything else, I believe, so it would not be that hard, would it?
 
@Optimizer Yes
 
@JeffBaxter there's this chat chat.stackexchange.com/rooms/22548/…
 
Thanks.
 
1:59 PM
@flawr I'm not sure
Don't copy from the other team, of course.
 
ok, then i try to write my own
is there a way to test before sumission?
 
yes, there is a post in meta for that
 
also
in the screen, bottom left, you can see a textbox and a button that says "Reload with test entry"
 
thanks!
 
That's probably better since you're only testing a single bot.
 
2:05 PM
it loads the code inputted in the textbox as a bot with named TEST ENTRY or something like that
You will have to check the "On Red Team" checkbox, since it loads it as blue team by default
 
(flawr is blue, since his PPCG ID is odd, even though his chat ID is even.)
 
Sorry, I confused him with Jeff
 
0
A: Sandbox for Proposed Challenges

randomraSliced up circle code-golf geometry You should write a program or function that given an N by N equally spaced square grid and a solid inscribed circle outputs or returns the number of slices the grid cuts up the solid circle. 0-sized slices (i.e. when the circle only touches a line) are not c...

 
^ a simple golf, if it seems ok, I will post it
 
"number of squares which are overlapped partially or fully by the circle"?
Not sure if that's clearer
In any case, you might want a test for N = 5 where (3, 4) is a lattice point intersected by the circle
 
2:21 PM
Tips for golfing in Whitespace, anyone? codegolf.stackexchange.com/questions/48442/…
 
"Use an IDE with syntax highlighting"
 
2:32 PM
@Sp3000 Edited. N=10 was already an example, but added once more separately. (N=5 is half as small)
 
I meant a picture, but okay :P
 
I'm lazier than that. :/
 
:P k
 
I should make my bot attack bots with id -1 :)
 
2:52 PM
does anyone know how to fill an array with random numbers in javascript?
(new Array(10)).fill(Math.random()) just produces a list of the same number repeated
 
apart from looping over and stuff ?
 
that is too pedestrian^^
there are tons of functions of array objects, is there no more elegant way?
 
Array(10).fill(0).map(Math.random)
 
ah thanks that was what i was looking for!
is there some way of debugging?
alert() does not work=/
 
There is a debug button in the very bottom left. You can use setMsg() and any messages will be displayed, aloing with allo fhte move information of all the other bots too.
 
3:00 PM
Just console.log it?
 
in the console there is total overflow of information, but i cannot find my console.log outputs
is there a way to just show my logs or my outputs?
 
* along with the
 
There should be a button titled "Logs" or "Info" in your console; click that to show only console.log output.
 
where can i find those? i can only find a checkbox "preserve log" right now.
ah via filter
 
f12, then navigate to console tab.
 
3:13 PM
what is the best-practice in python for calling functions with mutable objects (eg. lists)? do the caller copies it before call, or the called function makes a (deep) copy, or the caller creates an immutable version or something else?
 
Depends what the function does?
I mean, .sort() is inplace so it doesn't copy, but sorted returns a copy
 
I don't want to modify the parameters
(i.e. the sorted case )
 
I'd imagine if you want it to be like sorted then the function should copy, so you don't get bugs from people forgetting to copy
If you're worried that deep copying all the time is bad for performance, I guess you could use a flag?
 
@Sp3000 right, thanks, now it seems obvious :)
how would the flag thing work though?
 
Keyword argument? Like itertools.product(..., repeat=5) or print(..., flush=True)?
 
3:21 PM
again a question to this blue&red challenge: why doesnt console.log("TEST TEST TEST TEST TEST");return 1; work?
 
@Sp3000 I see, and learned about flush=True
 
@flawr It works for me.
You can turn debug messages off to remove all the clutter.
 
I'll ask you a question. If you were asked to, would you run this on your computer? pastebin.com/20vaC7SY
 
Ehh.... probably not.
 
@Pietu1998 It looks like some code I submitted for a golf challenge once.
 
3:32 PM
Funnily enough, even though it isn't malicious, Pastebin did not require a captcha. I could've easily hidden anything there. Every time I submit a legit UserScript etc. I'm presented with the friendly "spam prevention"
 
Python is nice, isn't it?
^ That's what I got
 
Yup
That's 100 layers of Zlib + base64
 
> Ehh.... probably not.
...
> That's what I got
Wow, did you do it in mind? :)
 
Yeah, I'm really good at reading multi-layered Base64 encoding.
 
3:47 PM
The thing is one could just put "os.system('del C:\Users')" there and watch. You'd never know.
 
I golfed your code: cjam.aditsu.net/…
 
Nice, thanks, though the obfuscation could be less obvious :D
 
@PhiNotPi its one char less in pyth
3
 
@PhiNotPi damn, CJam always much shorter
 
Someone needs to do it in Java
 
3:57 PM
@Pietu1998 30287904610620644098254837926916722400342501016369727 128b:c obfuscated enough?
 
sure enough
CJam is just the reason nobody does atomic-code-golf :D
 
4:19 PM
What can't you find in Stack Exchange? I just came across the Linguistics SE.
 
Fair enough.
 
5:03 PM
18
Q: Paralell projected voxel terrain generator

SztupYYour job is to generate a heightmap and show it as a paralell projected, voxel landscape. The rules are the following: The (heightmap of the) landscape has to be randomly generated You also have to describe how the algorithm you are using works, so everyone can learn something new here You have...

 
"paralell"?
 
"magic"
 
I'm fixing that misspelling.
 
You're fixing fun.
 
5:34 PM
Today I checked out "moderators.SE" for the first time since it was in Private Beta.
It's so empty.
First off, it changed it's name to "communitybuilding.SE"
Second, it's been over two weeks since a new question was asked.
 
5:47 PM
So apparently regex groups are numbered in order of left parens. Oh boy...
 
@Sp3000 what did you think? :)
 
It's easier for my parser to do it depth first :(
So I've had it wrong this whole time
 
isn't that depth first?
 
*deepest first
 
oh, right
 
5:51 PM
btw would you happen to know whether recursive regexes capture? e.g. does (?2) capture into group 2?
 
@MartinBüttner Thanks Martin! Well, I'll post it soon in the sandbox and see if it's too close or not
 
@Sp3000 I don't think so.
capturing with recursion is weird anyway
 
Hm k, well that makes things a bit easier... (I think)
 
k
 
 
3 hours later…
9:15 PM
Is is considered unhealthy to listen to the same music video 20 times?
 
just listening to a music video - yes
which one ?
 
Are you listening to the same video multiple times, or is it a /\d+ hours/ video?
In the second case you are technically only listening once, if even that much
 
I've been kinda alternating the original and a cover.
 
I think he clearly said "20 times"
 
Also repeating a 10-hour video 20 times in a row can probably be bad for your health.
 
9:20 PM
hi
2
long time no hang out :)
 
Hi
 
I had an idea for another challenge :) I hope more successful than some of my previous ones but who knows
 
But I've also been mixing in some miscellaneous other music.
 
you n me are totally incompatible
 
given a square matrix with only 1s and 0s in it, test to see if some permutation of the rows makes it en.wikipedia.org/wiki/Toeplitz_matrix
what do people think?
 
9:23 PM
@Optimizer were you talking to me?
 
yes
 
what music do you listen to?
 
is no one talking about programming challenges here :) ?
 
@PhiNotPi mostly pop / billboard hits
 
@Lembik No
 
10:19 PM
Hello Calvin
 
10:31 PM
Hello Melons
Hello Jakube
 
Hello Alex
 
How's it going?
 
I can't say I'm convinced by this notion of dividing the score by the number of mirrors handled
 
If you're talking to me, I have no idea what that means.
 
oh, sorry
I get you can Carpet Python the wrong way round
ignore me
 
10:35 PM
Haha
No one has ever told me that they confuse me with Carpet Python. He's much, much better at Python than I am, so I should be honored!
I also assume that he has some expertise in the area of carpets...
 
Or maybe he keeps a python in his car as a pet
5
 
Haha
I really hope that's true
 
nah, it's just because you edited his challenge, and I get distracted by the goose, and get way of Piste
 
I edited his challenge?
 
Star so CarPetPython will see.
 
10:41 PM
11
Q: Find a mirror configuration to match laser destinations

CarpetPythonUPDATED SCORING: As this challenge is more difficult than I anticipated, I have adjusted the scoring. A program that can solve a single mirror input is a valid answer. More sophisticated programs get a bonus to their score. There have been several puzzles on PPCG to find a laser path in a box of...

 
CarPetPython*
 
Oh right, he spelled "configuration" wrong in the title.
 
aye
 
So my goose swept in and distracted you
 
I'm autorunning 100 battles.
To see what the new stats are.
 
10:45 PM
y bother ?
 
y not?
 
I was literally about to write the same thing
@Optimizer: Are you participating in the red vs. blue chaos?
 
not yet
 
You know what they say: great minds think similar things
 
Hah
@Optimizer: What team would you be on?
 
10:47 PM
red
 
O__O
He is the enemy
 
What if we are the enemy??
 
Mind = blown
 
Okay, no more GIFs in chat.
 
Oh I missed it. What was it?
Hahaha what the hell
 
10:53 PM
Wait, I missed it twice now :D
 
Should I post it again?
 
@PhiNotPi: Maybe just post a URL instead if you don't want GIFs in chat
 
yes
 
user image
5
 
10:54 PM
OK what am I looking at :D
 
@Pietu1998: His mind has been blown
@Calvin'sHobbies: All glory to the blue team!
 
Now that it has 4 stars, I'm not deleting it. :)
 
That's what happens to my mind every time I think about how young everyone is here.
Well, most.
 
@AlexA. I find this demographic interactive interesting.
It allows you to see what percentage of the world's population is younger than you.
 
Whoa. That's really cool.
5,421,490,000 in the world when I was born.
 
11:01 PM
There's the "My place in the population tab" which is neat.
 
41% younger. This is really cool!
 
It allows allows you to change the year to predict what that percentage will be in, say, 2020.
 
Not a huge change in 2020. I'll be 30, 48% younger.
Now 2070 is a different story
94% younger
Oh god, 10% of my birth cohort is dead
 
Only 50% of people around the world make it to retirement age. :)
 
o_o
On a very different note, I wonder if @Optimizer's icon is actually a pet llama.
 
11:08 PM
llamas cannot be petted
they are badass
 
Is that the llama from your icon??
 
that is not the source. they also used from where i used
but that pic pretty much explains llamas
 
Haha
Do you have a lot of experience with llamas?
 
Incredible
@Optimizer: Are you also young? So far the only person I've come across here older than me is rolfl, which is weird because I'm not that old.
 
11:13 PM
llamas don't get old
 
The immortal llama
Your llama, my goose, and rolfl's monkey should team up to eat VisualMelon's lemons.
 
he has melons
not lemons
 
You sure? Those sure look like lemons in his icon
 
@Optimizer the CJam link can't deal with the %1b in your code
 
works fine for me
 
11:23 PM
I get unicode 001b at the end
 
oh.
try now
 
hmm, Chrome is fine though
 
Pixel results: 12/87/1
 
now Firefox doesn't load any code at all
not that important, just noted
 
Y'all ready for some answer chaining?
 
11:32 PM
right now ?
 
What does that mean?
 
Well in a few hours, I still need to write it...
 
What is answer chaining?
 
@Calvin'sHobbies going to sleep now. hopefully it will be answered a lot by the time i wake up
 
@Optimizer: Good night!
 
Oh I had forgotten about that challenge!
 
I think we (I) forgot to actually tag them correctly
 
What challenge is this, one that doesn't exist yet?
 
Apparently <del>44</del> just doesn't work.
 
Yes, I think I've got a good idea for one
 
11:37 PM
I'm looking forward to it!
@Pietu1998: Use <s>
 
@AlexA. No effect. The lines on the 4's blend smoothly with the overline
 
striked out 44 is still normal 44 :( — Optimizer Mar 24 at 8:22
 
Here's a potentially bad idea for another red/blue challenge: each team has a single bot, and each participant can only add code to the bot.
 
how about each participant vote to do some action and the majority vote gets done
 
@Optimizer &nbsp; to the rescue
 
11:40 PM
~
 
~~~~~~~~~~~~
 
how do you do overline in chat?
 
do you mean <s>?
three hyphens
 
<><
all right
 
Apparently someone's still making Llamas with Hats videos.
 
11:54 PM
Hey, everyone. I'm working on adding multiprecision integers and rationals and stuff to inca. Do any of the other golfing languages do that ????!
 
what are multiprecision integers?
 
The scheme I've come up with is borrowed from integer encodings in lisp. We steal a few bits from the top of the integers used to represent the basic "number type". With a tag of zero, the remaining value is the integer value. With a non-zero tag, the tag represents a table-selector, and the remaining value is an index into that table. The various tables will store full-width integers, floating-point values, what-have-you.
Multiprecision integers are integer values that can be larger than the machine word (32 or 64 bit usually).
So you have to store a sort of string-of-digits of integers. It's also called a Bignum.
 
@luserdroog oh right, I've only heard the term "arbitrary precision integers"
yes CJam has it
Pyth probably too, since it's built on Python
 
To my knowledge, it does
Not the "I can do any program in 3 tokens" functions though
 

« first day (1526 days earlier)      last day (3324 days later) »