@RikerW A "strange mood" is a situation in which one of your dwarves becomes compelled ("taken by a strange mood"/"possessed" ) to construct a legendary object (an "artifact"). The good thing is that you end up with some really nice stuff, and occasionally the dwarf acquires legendary skill. The bad thing is that the dwarf must create said object and will refuse to do anything else / will become destructive if the supplies are unavailable.
Is there a way I can make this code more economical
It's currently reading off a txt file which I linked with a pastebin. The only bit which I really need to be more economical about is reading off the txt file, at the moment it is asking for the code then it'll link that code to a line and that ...
In one major release, everyone would mysteriously die when it started to rain. It turned out the rain temperature code had a misplaced decimal point, and rain caused the dwarves' skin to boil off.
Language-creation has become a popular activity on PPCG. A decent portion of answers, especially code-golf answers, are written in languages invented by the community. These are also languages that might be unfamiliar to this site's wider viewing audience.
What languages (esoteric, golfing, or...
Jolf
Jolf is yet another JavaScript variant; is procedural, like Pyth. It's GitHub repo was made around Nov. 15. It transpiles to JavaScript.
It's a really handy tool, and I use it all the time when coding in JavaScript. Here is the interpreter! And some documentation, because you're such a nic...
Introduction to Bézout's identity
The GCD of two integers A, B is the largest positive integer that divides both of them leaving no remainder. Now because of Euclid's property that each integer N can be divided by another integer M as follows:
there ...
Screenshots
How the button looks:
The Viewer:
About
This is a userscript for the Programming Puzzles & Code Golf sandbox. It shows you your currently sandboxed posts. It's score. Comments on your posts. This also allows you review posts, vote, and comment on sandbox posts.
The goal...
The Original
In Venice, the streets are made of water; gondolas carry people from point to point, and walkways stretching over the water allow foot traffic. The buildings in Venice are set on a wooden foundation, sunk in sandy islands; without access to oxygen, the submerged wood is kept fresh, ...
PCRE flavor, 261 289 210 184 127 109 71 53 51 44 40 bytes
Yes, it is possible!
<^<()(?R){2}>\z|\1\Q^<()(?R){2}>\z|\1\Q>
Try it here. (But / is shown to be the delimiter on Regex101.)
The version works more correctly on Regex101 (44 bytes):
/^\/()(?R){2}\/\z|\1\Q^\/()(?R){2}\/\z|\1\Q/
Try ...
For some reason, I often scroll down to the Hot Network Questions list, click on one that interests me, then immediately scroll down to the HNQ list on that page and repeat the process.
I end up visiting most of the hot questions' pages without ever reading one.
Matlab 26 bytes
@(n)exp(i*2*pi/n.*(0:n-1))
Divides power of 2*pi by n and multiplies by vector 0:n-1. Outputs as follows:
ans(5)
ans =
1.0000 + 0.0000i 0.3090 + 0.9511i -0.8090 + 0.5878i -0.8090 - 0.5878i 0.3090 - 0.9511i
Given an input of a string consisting of any message from our site
chatroom taken
from the list described and linked below, output either a truthy or a falsy
value attempting to predict whether that message was starred or not in 50 bytes
or less.
You may use any truthy or falsy
values, but they ...