Skip to content

Instantly share code, notes, and snippets.

@rikur
rikur / four in a row.rb
Last active December 24, 2024 06:02
I won the four-in-a-row code golf challenge 🥳
s='+---+---+---+---+---+---+---+
| | | | | | | |
+---+---+---+---+---+---+---+
| | | R | | | | |
+---+---+---+---+---+---+---+
| R | | R | W | | | R |
+---+---+---+---+---+---+---+
| R | | W | W | | | W |
+---+---+---+---+---+---+---+
| W | W | R | R | | | R |