Sign in

David Pattinson

@davipatti.bsky.social
8 followers 31 following 6 posts
PostsRepliesMedia
David Pattinson @davipatti.bsky.social · 12/01/2025
Chess engine implemented as 84688 regexes: nicholas.carlini.com/writing/2025...
nicholas.carlini.com
Regex Chess: A 2-ply minimax chess engine in 84,688 regular expressions
I wrote a (list of) regular expressions that will play a (not very good) chess game by running a 2-ply minimax search.
000
David Pattinson @davipatti.bsky.social · 10/01/2025
TIL about psub. E.g. a one liner to sort the contents of two files and diff them: > diff (sort a.txt | psub) (sort b.txt | psub) 🤯
000