Thanks for the upvotes on the sandbox post! Just to let you all know, the Ant KotH will probably need to wait for a response to this, unless I can golf it down enough to fit into 30000 characters or find a work around:
Thanks very much for doing this! Since we encourage people to "sandbox" challenges on meta before posting to main, would you be happy to also increase the post limit on meta (which is currently still 30000), or should this be a new feature request? — trichoplax6 mins ago
Join the Resistance
code-golf arithmetic
In electronics, resistors are a common component generally used for dropping voltages. All resistors have a given resistance, specified in ohms. When resistors are connected in series, all their resistances intuitively add up:
However, when connected...
Ant Queen of the Hill Contest
king-of-the-hill javascript grid game
Each player starts with one ant - a queen, who collects food. Each piece of food can be held or used to produce a worker. Workers also collect food to be brought back to the queen.
All players compete in one arena. The winne...
That is true. Normally I'm not inclined to post KoTHs because they're one of the most time-consuming code-golf question types to make, so that makes perfect sense.
The nice thing about Python over Java is that in Java, you can't import something from a string so you need to use the classloader which is a pain (unless you actually hard-code it in and modify it each time), but in Python you can just do __import__('module')
There's the idea of a continuous-time turn-based KOTH, wherein the amount of time you must wait before your next turn depends on the "duration" of your current action, and can be a real number. You would basically use a queue to keep track of whose turn is next.
my idea was pretty much you stand there and you can crouch (note: this idea is inspired by a minecraft minigame within a minigame within a game within hypixel) to halve your moving speed and also your knocked-back amount, and you can move around and you should try to punch other people out of the centre
Is this graph bipartite?
An undirected graph is defined to be bipartite, if there are two disjoint sets whose union is the set of the graph's vertices and no two vertices from the same set are adjacent.
The three graphs in the image below are all bipartite and the colors indicate a possible par...
Fighting a Land War
In this KoTH, you need to earn as much money as you can while fighting over tiles to take over.
The board is a large hexagon made up of 91 smaller hexagonal tiles (A 6x6 hexagon). Each tile is either:
An impassable mountain
Hills generate production. They start out with...
I think different people in the community have different ideas of what it means to be observable. It either means 1) program verifiable 2) provable, order notation is 2) but not 1). Most properties are 2) but not 1)
Non-observable program requirements
The validity of a program should depend on things that can be observed when the program is treated as a black box. Examples are data written to standard output or error streams, drawing on the screen, file operations, memory usage, and runtime. Non-observable ...
I think I have an approach to my language that I'm making - I'll first build a prototype in PegJS and JS, and then move everything to Dart. Is that a good idea?
The graph of the modulo operation (y = x % k) looks like this:
This is a very useful function, as it allows us to create "wrapping" behavior. However, it is very cumbersome when I want to use it to create an appearance of "bouncing" between two walls. The graph of the "bounce" function (y = bo...
BackStory
The king in chess can move to any neighboring square horizontally,
vertically, or diagonally. Assuming that the king starts on some square
of an infinite chessboard, in how many different squares can it be after
n moves?
input
Input Format
Your function will have one integer(n) depi...