Array 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 ...
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.
So 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...
@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)
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.
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
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
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
PCG 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...