36 votes

Take a ride on the Reading, If you pass Go, collect $200

Retina, 74 bytes FKCIIBAVWMGN_PT_NC_CS_PP_SV_CS_PE_LS_BJCVCORIBCMG S_`(._.) _ 9$* \B 1 The third to last and last lines should contain a single space. Try it ...
user avatar
25 votes

Take a ride on the Reading, If you pass Go, collect $200

Jelly, 44 bytes “£ċ9NɲT⁴MỵƇñdMỊḞ*µ7Sʂɓ¢Ż}ạ¥ċwÞ’ḃ23ṣ4ịØAz⁶ṙ1G Try it online! Idea If we remove every second column and transpose rows with columns, we get the ...
user avatar
  • 206k
19 votes

Simulate a Game of Quagmire

Ruby 2.7, 695...618 610 bytes ...
user avatar
  • 10.3k
19 votes

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

JavaScript (Node.js), 144 138 125 74 73 70 bytes f=(x,n=2,c=0)=>x%n?x-!c?f(x,n+1)/(n%4>2?n/=~c&1:n%4)**c:1:f(x/n,n,c+1) Try it online! -4 byte thanks @...
user avatar
18 votes

Determine winner of Connect 4

Perl, 119 118 117 bytes Includes +4 for -0p Give rotated board padded with spaces on STDIN (gravity pulls stones to the right) ...
user avatar
  • 14.6k
17 votes
Accepted

Shortest 2-Player Game of Halma

The shortest game of halma is 49 moves 49 move solution Proof there is no 48-move solution Code used for this solution The code now supports pass Notice that the 47 move solution in the paper is ...
user avatar
  • 14.6k
17 votes
Accepted

Leonhard loves labyrinths

JavaScript Work in progress. Unfortunately the maze is not always solvable - the limit on back-forward is the real hurdle. Edit 1 Cosmetic Edit 2 Better gameplay, but the big problem is still there ...
user avatar
  • 31.8k
16 votes
Accepted

Rotate a Chinese checkerboard

CJam, 61 59 43 40 38 36 bytes {{_N/eeSf.*:sW%zsS-\{_' >{;(}&+}/}*} This is an anonymous function that expects a string and an integer on the stack. ...
user avatar
  • 206k
16 votes

Draw an Empty Scrabble Board

MATL, 59 54 52 bytes 4t:g2I5vXdK8(3K23h32h(H14(t!XR+8: 7:Pht3$)'DtdTX.'w) Try it online! Explanation The code follows three main steps: Generate the 8x8 ...
user avatar
  • 99.4k
16 votes

Take a ride on the Reading, If you pass Go, collect $200

05AB1E, 48 47 bytes Thanks to Emigna for saving a byte! •(K·;“…¬È¦z"9äuŸé;TÞîÕs‡ÓÐV9XÒt\<•33B¾9ð×:S11ô» Explanation: First some compression. ...
user avatar
  • 43.4k
16 votes
Accepted

Is it a good 2048 board?

Haskell, 21 bytes all$scanr1 max>>=(==) Try it online! Takes a list of columns, with empty spaces as 0.
user avatar
  • 137k
16 votes

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 ...
user avatar
  • 65.8k
16 votes

Scrabble scorer

sed 4.2.2, 81 s/[QZ]/JD/g s/[JX]/KB/g s/K/FE/g s/[FHVWY]/BE/g s/[BCMP]/DE/g s/[DG]/EE/g s/./1/g Output is in unary. Reduces each letter to a combination of ...
user avatar
15 votes
Accepted

Determine a string's Scrabble score and validity

Perl 5 228 205 186 184 178 177 153 150 149 142 137 135 Run with perl -E. Golfed: ...
user avatar
  • 9,165
14 votes

Score a 1 player game of Carcassonne

Charcoal, 306 246 bytes ...
user avatar
  • 144k
13 votes

Determine a string's Scrabble score and validity

C, Rev 2, 151 145 138 Inspired by the 159-byte code in @bebe's comment, I squeezed another 8 14 21 characters out: 4 bytes saved by rearranging the length counter ...
user avatar
13 votes

Number of pieces on a checkers board

Hexagony, 19 bytes ?({{&2'2':{):!/)'*/ Try it online. Explanation This is still the same computation as I've used in my CJam and Labyrinth answers, but due ...
user avatar
12 votes

Take a ride on the Reading, If you pass Go, collect $200

Python 2, 89 bytes l='%s '*11+'\n' print(l+'%s%20s\n'*9+l)%tuple("FKCIIBAVWMGNPTNCCSPPSVCSPELSBJCVCORIBCMG") Creates the template ...
user avatar
  • 137k
12 votes

Where can the knight be in N moves?

Wolfram Language (Mathematica), 45 bytes Because the other solution is incorrect (see Martin's comment below), so I decide to post my solution: ...
user avatar
  • 16.9k
11 votes

Rotate a Chinese checkerboard

Python 2, 171 bytes ...
user avatar
  • 60.9k
11 votes

Number of pieces on a checkers board

LabVIEW, 28 20 LabVIEW Primitives
user avatar
  • 2,565
11 votes
Accepted

Connect-n time!

MaxGayne This bot assigns a score to each position, based mainly on the length of connected parts. It looks 3 moves deep inspecting 3 best looking moves at each stage, and chooses the one with the ...
user avatar
  • 2,872
11 votes

Connect 4: Spot the Fake!

JavaScript (ES6),  202 194 187  183 bytes Takes input as a matrix with \$2\$ for red, \$4\$ for yellow and \$0\$ for empty. Returns a string of 0-indexed moves (or an empty string if there's no ...
user avatar
  • 167k
11 votes

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

Clean, 189 185 172 171 bytes ...
user avatar
  • 8,066
11 votes

Universal Command Sequence

Pyth, 7 bytes s^S4^5* We could construct a universal sequence of length \$2^{2n(n-1)} ⋅ n^2 ⋅ (2n^2 - 2) < 5^{n^2}\$. Start with the empty sequence; then for ...
user avatar
10 votes

Printing the Cracker Barrel Game

Ruby -pa, 181 bytes ...
user avatar
  • 10.3k
10 votes

Is it a good 2048 board?

05AB1E, 4 bytes €{íQ Try it online! Same as my other two answers. I promise this is my last one until others have answered :)
user avatar
  • 40.2k
10 votes

Scrabble scorer

Haskell, 86 84 bytes f s=length s+sum[n|x<-s,(n,y)<-zip(9:7:[1..])$words"QZ JX DG BCMP FHVWY K",x`elem`y] Try it online! Explanation Most letters give a ...
user avatar
  • 16.4k
10 votes

Scrabble scorer

Octave, 50 bytes @(t)'       '/3*sum(65:90==t')' Try ...
user avatar
  • 9,336
10 votes

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?) ...
user avatar
  • 12.1k

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