27 votes
Accepted

Will I make it out in time?

Snails, 15 bytes \Oo!{.,fee7.,\F Try it online! 1 means survival while 0 means death. Since ...
feersum's user avatar
  • 31.3k
17 votes

Gravity simulator

Marbelous, 19561 bytes (Not that I tried to optimize the size.) This claims the final bounty here. This expects a trailing newline in the input. It works for boards up to 15x15 (including the edges) ...
user197974's user avatar
  • 1,161
17 votes
Accepted

Code (Mini) Golf

Pyth, 27 bytes .Am<sXsd"_\ /"[1_4Z5)Q._C.z Demonstration This code does something very clever and not at all type-safe with ...
isaacg's user avatar
  • 41.9k
15 votes

Kill it With Fire

Python 3, 232 bytes ...
hyper-neutrino's user avatar
  • 41.4k
14 votes

Code (Mini) Golf

Haskell, 111 109 bytes import Data.List g"_"=1 g"/"=5 g _= -4 f n=all(>0).scanl(-)n.map g.fst.span(/="U").(>>=words).transpose.lines Usage example: <...
nimi's user avatar
  • 35.8k
12 votes

Fire propagation simulator

Matlab, 235 257 190 182 178 bytes Input: Matrix A, 1x2 vector p containing the starting coordinates. ...
Leander Moesinger's user avatar
12 votes

Will I make it out in time?

Python 2, 283 218 209 208 bytes ...
TFeld's user avatar
  • 19.8k
11 votes

Simulate the Universe!

Perl 6, (707 bytes -10%) Score 636.3 With some unneeded line breaks for a bit more readability: ...
Phil H's user avatar
  • 1,432
11 votes

Climbing the Bookshelf

Wolfram Language (Mathematica), 33 bytes dIf[Abs[#2-#]>d,0,1+#0@##2,0]& Try it online! Input [durability][heights...]. ...
att's user avatar
  • 20.1k
10 votes

Kill it With Fire

JavaScript (ES6), 217 210 207 204 193 192 190 bytes Saved 2 bytes thanks to @Shaggy's suggestion of using 9 as A. ...
PurkkaKoodari's user avatar
9 votes

Fire propagation simulator

JavaScript (ES6), 156 152 146 144 143 bytes Saved 1 byte thanks to Kevin Cruijssen A rather naive implementation. Takes input in currying syntax (a)(s), where a ...
Arnauld's user avatar
  • 191k
9 votes

Produce an image based on an elementary cellular automata ruleset

Python 2, 178 167 ... 128 bytes -13 bytes thanks to @Surculose Sputum! -2 bytes thanks to @dingledooper! thanks @Surculose Sputum again for saving some bytes and fixing the boundary bug!!!! ...
newbie's user avatar
  • 1,150
8 votes

9 Deaths of the Ninja

Jelly, 30 28 26 bytes »0o⁴+ ;@ñ\<1S_9«0N“dead”×? Try it online! How it works ...
Dennis's user avatar
  • 210k
8 votes

Fire propagation simulator

Octave, 67 bytes function n=F(s,a)n=0;do++n;until~(s-=a|=imdilate(~s,~(z=-1:1)|~z') Try it online! To visualize intermediate results you can Try this! A function ...
rahnema1's user avatar
  • 5,665
8 votes
Accepted

Implement the Boids algorithm

Processing 3.3.6 (Java), 932 931 940 928 957 917 904 bytes -1 byte from Jonathan Frech +11 bytes to better match the spec -2 bytes from Kevin Cruijssen -12 bytes for changing args to t() +29 bytes ...
Phlarx's user avatar
  • 1,566
8 votes

Produce an image based on an elementary cellular automata ruleset

Wolfram Language (Mathematica), 42 bytes ¯\_(ツ)_/¯ Image@CellularAutomaton[#,{{1},0},15]& n=30 n=26 Since this ...
ZaMoC's user avatar
  • 24.8k
8 votes

Pass The ⚽️ Around The Circle

Python 3, 67 55 bytes f=lambda x,*l:x and-~f(*l[x%3-1::1-x//3*2],0,*l[x%2:1]) Try it online! Use @Leo's idea of keeping the current player at a fixed index and ...
Surculose Sputum's user avatar
7 votes

Simulate the Universe!

PHP, 989 - 10% = 890.1 bytes Sub 1K baby! Thanks vsz, this was a really fun challenge. So many ways to go about it and very hard to verify your output is correct. The program can take a command line ...
Alex Howansky's user avatar
7 votes

Gravity simulator

JavaScript (ES6), 157 196 Edit char by char instead of row by row, much better result ...
edc65's user avatar
  • 32.1k
7 votes

9 Deaths of the Ninja

Japt, 40 39 32 bytes U¬©(9-Vf@T=X+(T¬²ªU)<1} l)¬²ª`Ü% Try it online! How it works While trying to golf this last night (away from a computer, no less), I ran ...
ETHproductions's user avatar
7 votes

Code (Mini) Golf

Ruby, 104 87 characters ->s,t{t.lines.map(&:bytes).transpose.map{|o|(c=o.max)==85||s<0?break: s+=c*3%14-6} s>0} Sample run: ...
manatwork's user avatar
  • 20.1k
7 votes

Fire propagation simulator

MATL, 26 25 bytes I really wanted to see some more answers using the golfiest languages around here `yy)qw(8My~1Y6Z+fhy0>z}@& Input format is: First ...
Luis Mendo's user avatar
  • 104k
7 votes

Kill it With Fire

Simulating the World (in Emoji), 1407 bytes? Don't you love using an explorable explanation as a programming language? The downside to this is there's usually not a very well defined program, so in ...
DanTheMan's user avatar
  • 4,105
7 votes

Climbing the Bookshelf

Octave / MATLAB, 37 35 bytes 2 bytes saved thanks to @Giuseppe! @(x,d)sum(cumprod(abs(diff(x))<=d)) Output is 0-based. Try it online!
Luis Mendo's user avatar
  • 104k
6 votes

9 Deaths of the Ninja

JavaScript ES6, 62 60 58 bytes Saved 4 bytes thanks to @ETHproductions (a,b,d=9,l=a)=>b.map(i=>l=l+i<1?d--&&a:l+i,a)|d<1?"dead":d Try it ...
Downgoat's user avatar
  • 28.9k
6 votes

Gravity simulator

Javascript (ES6), 453 426 409 306 290 286 bytes The first and most obvious solution that came to my mind is one that looks around the slides and then merges or replaces. ...
rgajrawala's user avatar
6 votes

Simulate the Universe!

C#6, 3619 3617 3611 3586 - 10% = 3227.4 bytes Program takes two optional arguments for the number of starting Higgs Bosons and the seed to use for the Random class. ...
Yodle's user avatar
  • 2,408
6 votes

Code (Mini) Golf

Japt, 38 bytes Vz r"%s|U[^]*" ¬e@UµX¥'_?1:X¥'/?5:-4 ¬ Try it here! Beating CJam! Explanation Basically takes the string input, rotates it 90deg clockwise,...
Mama Fun Roll's user avatar
6 votes

Code (Mini) Golf

CJam, 40 39 bytes liqN/:.e>'U/0="\_/"[4W-5]er{1$+}/]:e<0> Input has the power on the first line and the course starting on the second line. Output is <...
Martin Ender's user avatar
6 votes
Accepted

Solve this uHerbert challenge

H, 13 bytes a:ssr b:sasaaab b Demo
Anders Kaseorg's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible