Share Your Experience: Take the 2024 Developer Survey

Tag Info

Hot answers tagged board-game

• 197k

• 105k

• 145k

Can I Settle Down?

Python 2, 54 bytes lambda s:sum((s+"BLSW"*3).count(n)/4for n in"BLSWO")>3 Try it online! For each of our resources, we count the number of “freedoms” given ...
• 68.7k

Score a 1 player game of Carcassonne

Charcoal, 306 246 bytes ...
• 171k

• 16.8k

Scrabble scorer

Beatnik, 733 bytes Since it really had to be done, here it is. It was a really nasty to debug and provided a few challenges. Input must be uppercase letters only. Output is unary (hope that is OK?) ...
• 12.2k

N-movers: How much of the infinite board can I reach?

Mathematica, 80 bytes d[n_]:=If[#=={},0,1/Det@LatticeReduce@#]&@Select[Tuples[Range[-n,n],2],#.#==n&]; This code is mostly reliant on a mathematical ...
• 271

Winnable Solitaire Mancala Boards

Python, 42 41 bytes m=lambda n,i=2:n*[1]and[n%i]+m(n-n%i,i+1)
• 39.1k

Draw an Empty Scrabble Board

JavaScript (ES6), 112 bytes ...
• 91

Take a ride on the Reading, If you pass Go, collect $200 PowerShell v2+, 131 123 114 110 99 bytes 'F K C I I B A V W M G N0P T0N C0C S0P P0S V0C S0P E0L S0B J C V C O R I B C M G'-replace0,(" "*19) This is just a ... • 43.4k 9 votes Take a ride on the Reading, If you pass Go, collect$200

Javascript ES6 REPL, 105 102 101 bytes Not much interesting happening here. Paste in the console to see the desired results Saved 3 bytes thanks to @Arnauld Saved 1 more byte thanks to @Neil ...

Is it a good 2048 board?

APL (Dyalog), 7 4 bytes Takes 4-by-4 matrix, using 0 for blanks, as argument. ⊢≡⌊⍀ Try it online! ⌊⍀ is the vertical ...
• 30.3k
Jelly, 57 bytes ŒṪŒ!µ0ịŒṬ¬a³ZU,Ɗ;ŒD$€Ẏṡ€4Ḅo1%15;Ḋ€ṢṚ$Ƒƙ$Ȧȧœị³$2R¤ṁ\$ƑµƇṪṪ€ Takes a matrix where 0 is unfilled, ...