« first day (1219 days earlier)      last day (3919 days later) » 

07:57
hi @m.buettner
08:43
hi @dorothy
I do believe in sandboxes.
0
A: Proposed Question Sandbox - Mark XIII

luser droogArray Calculator Implement a 4-function calculator +-*/ that operates on space-delimited arrays of floating-point numbers. 1 2 3 4+5 6 7 8 6.0 8.0 10.0 12.0 It should evaluate the functions right-to-left, in the manner of APL. In other words, among the functions there is no precedence of any ...

hi
@m.buettner I saw your comments about the latest math question
@m.buettner about roots of polynomials
do you have any idea how to solve it? :)
08:59
@dorothy Yes, I'm almost done with mine, but I was just told that Mathematica is not allowed, so I stopped.
afk for now, let me know if you're still stuck
@m.buettner oh you had a mathematica solution?!
@m.buettner maybe you should post it anyway. Someone else might be inspired by it
what does afk mean?
"Away From Keyboard" :)
09:35
@ace Yep, done.
 
6 hours later…
15:59
Hey, I'm back :D
Hey @Trimsty!
yo ;3
what's up? did i miss anything?
@Trimsty The creative obscenity question is removed, that's probably all you missed.
The meta post about it is here.
16:02
ty
so I was writing a cellular automata editor/simulator over the weekend
I'd push it to GitHub but i'm too embarrassed
i'll have to fix up my code first
my code is intimidating, to /r/nosleep!
16:20
hi @Trimsty
funny that you are back, I was just going to look if you were around to check on your terrain progress ;)
hehe
there's not much progress, but there is, however, and answer to my SO question
don't see how it'd work though, haven't tested
16:35
fair enough
I've got elevation and rivers now
mbuettner.github.io/midgard/public crank the number of polygons up to 5000 for some half-decent output... and check out a few Perlin Island and Perlin World terrains.
I'm almost done with generating the underlying data, so I can turn to rendering nicer graphics that actually look like maps or satellite images.
@Geobits @Rusher I made a few more changes to the solar system spec (mostly editing in what we discussed). Did we talk about including both regular spawning intervals and additional fighters when taking over bases (where the amount of the latter depends on the enemy's strength)? Could that maybe solve some of the problems?
Alternatively, I was considering to make the flagships even more important: when you lose your last flagship you lose and all your units and/or bases go over to the player who beat you. That would incentivise everyone going for the leading player. However, I think that the flagships as they are currently designed may be too weak to be appropriately defended for such a situation.
It could also add more depth to the game, because it opens at least two different valid approaches: the defensive one where you're just building your empire more or less passively and try to gather a sufficiently large force through that, or the aggressive one where you just try to go for the other players' flagships. For this to be balanced, there has to be a possibility though to defend flagships rather safely, if you want to, otherwise no one can take the first approach.
38
Q: I'm seeing stars! (I can see who starred a message and so can you)

DoorknobSo I was making a chatbot in Ruby for SE chat, and I discovered that I could find out the starrer of a message. I'm pretty sure stars, like votes, are supposed to be anonymous. Although this knowledge would help for cases of star trolls like this. Here's the specific slice of code that do...

cc @m.buettner
@hichris123 ah right, I've actually seen that post before... but that doesn't really "help" me as a human, does it? (not that I really care who stars things)
Nope.
You just have to run the chatbot. ;)
(sidenote: even mods can't see it)
16:50
that's reassuring ;)
Let's just say chat mod tools are... limited. :P
I'm formatting my code, dividing it into classes and functions, and adding a bunch of comments
i finished one of the two files, half of it is commenting :S
@m.buettner hi.. are you about?
@m.buettner you can try bpaste.net/show/21sM5Xj7zQ9MvUmN2MDa
@m.buettner then Count[Map[HasRootOfUnityAsRoot, PolysOfDegree[n]], True]
I am
@dorothy interesting
I've kinda given up on it though
your approach is way too different from mine to figure out where mine is wrong
17:47
@m.buettner oh.. what is your approach?
Length@Cases[
  Solve[# == 0,
     x] & /@ ((#~Join~{1} & /@ {-1, 0, 1}~
        Tuples~{n}).x^(Range[n + 1] - 1)), {___, {x -> s_}, ___} /;
    Abs@s == 1 :> s]
sorry, don't have an ungolfed version to hand
best read it from inside out
ah.. golfing doesn't make things easy :)
{-1, 0, 1}~Tuples~{n} generates all possible coefficient combinations (from lowest to highest power, omitting the leading one)
I've enumerated the polynomials of degree n, and enumerated the characteristic polynomials of roots of unity of degree up to 2n+2. Then it's just a matter of testing which are divisible by which.
then I join each of those combinations with a leading-order 1
then I take the dot-product with the array {1, x, x², x³, ...} to build the polynomial
17:50
how do you test if it has the right property?
then I chuck it into Solve, and fish out those that have a solution whose modulus 1 and count them
(I am not mathematica expert)
try mine and see where you get a different answer
just plug in n = 4
that should quickly tell you which polynomial is different
hm yeah, might do that later... currently working on something else
ok.. if it's not clear what the functions do just let me know
PolysOfDegree[n] just lists all the polynomials of degree n :)
HasRootOfUnityAsRoot also does what it says on the tin :)
got everything moved into a class, currently merging and updating to new variable names
17:54
it's harder to determine in my solution which polynomial is extraneous, because I simply replace all of them with the result... I'll let you know what I find if I find anything
@Trimsty refactoring is fun :)
@m.buettner That would be great. I am interested :)
@Trimsty I'm currently working on moisture. then biomes. then graphics. then tweaking, tweaking, tweaking.
@m.buettner Awesome, good luck ;D
17:56
thanks ;)
it doesn't help that my code is ugly as hell though
;_;
I've managed to get it cleaned up so that it looks nice until line 162
after that it's 40 super-long lines of incomprehensible expressions
make that another 160 lines and it should be fine ;)
which question is this for?
18:11
none
he's working on a KotH of his own, and I'm just trying to generate terrain for the fun of it
I am completely out of this :) What is KotH and terrain for what?
Koth of the Hammer ?
KotH is King of the Hill, a question in which submissions fight against one another tourney-style
oh.. that sounds fun
it's actually a browser-based MMORPG that I'm using as a KotH before releasing it-
yeah, it is ;D
though, the code that I'm currently working on is a side project for practice with real-time simulation, it's a cellular automata sim
so i guess it's sort-of justified for me to talk about it here, as it's vaguely related to a competition here :3
I am trying to work out how to set a KotH question now :)
18:17
@dorothy it's a lot of work. look at some of the existing ones (there's a tag for it)
I notice many of the KotH questions are more interesting than the small number of answers!
maybe the questioners care more than the answerers :)
the terrain is for nothing... I just like procedurally generated stuff and want more experience... so I gave it another try... really just rendering maps
@m.buettner indeed, hence i'm developing a fully-featured production quality game that i can actually sell
if your screen is "only" full HD resolution, you'll need to go full screen (f11)
i actually check codegolf.stackexchange.com/questions/tagged/king-of-the-hill daily, it's sad there aren't more, but it IS a lot of work to set one up as you've said ^^'
18:19
oh yeah and don't to put "Relaxation passes" to anything beyond 50 :D
i'm practically ungolfing my code; changing pos to self.scroll
but it eliminates reads of out-of-scope variables
okay, my namespace and logic fixing has made it's way to line 60
117 to go
what sucks is, my old code had 2 variables, named dragging and drawing
in the new version, i changed drawing to mode and dragging to drawing
18:45
89 lines to go
71
all of those 71 lines are a single function
so, it shouldn't be too hard
why is your code even golfed in the first place? :D
hehe
gonna push to github.com/cjfaure/cjc after completion and testing
19:12
50 lines to go!
19:28
20!
0 lines left
yay, now to test and find inexplicable horrific bugs
19:54
uuuhm
oh. dang
now i have to go through the old code and update my code for differences between cmpos and pos.cpos
20:15
Committed :D
i wonder how much i can golf it
it uses pyglet though :c
21:06
Should I feel upset if my question gets downvoted without motivation?
21:42
@gerrit no you shouldn't
the reason you got a downvote (and will possibly get more) is that your challenge is very close to what code trolling used to be. and this is what happened to code trolling
@m.buettner Ok, I see. I was new to the prohibition of code trolling. Not sure if my question is code trolling. We'll see how it goes.
Most of code trolling didn't ask for the flaws to be hidden, but that's really the only difference between your challenge and code trolling.
this is also relevant (and much more recent)
0
Q: What is the difference between underhanded and cote-trolling?

gerritPCG no longer permits code-trolling, but there is another category called underhanded, of which the tag wiki currently reads: An underhanded challenge is a challenge to write a program that looks as if it is doing one thing, but does something else. For example, a program that outputs the dig...

so much for that ^^
 
2 hours later…
user55340
23:50
Btw, 2 + 2 = 5 made it on to hacker news

« first day (1219 days earlier)      last day (3919 days later) »