I may be slow to respond.
Chess expert, shogi 2-Dan (81Dojo), mahjong expert, OMGWords amateur, and Lichess/Lishogi developer. I stream using free software OBS and Chatty, thanks to FSF.
-
11:47
(UTC -05:00) - toadofsky
- https://dugovic.substack.com/
- @toadofsky@mastodon.social
Block or Report
Block or report ddugovic
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
lishogi
lishogi PublicForked from WandererXII/lishogi
lishogi.org: the forever free, adless and open source shogi server forked from lichess.org
Scala
-
-
-
Encodes pawns as a bitwise-AND-compa...
Encodes pawns as a bitwise-AND-comparable index (from a SFEN) 1# Encodes pawns as a bitwise-AND-comparable index (from a SFEN)
2# Usage: ruby pawn_encoder.rb "lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL"
3def encode(fen)
4board = fen.gsub("9"," 8").gsub("8"," 7").gsub("7"," 6").gsub("6"," 5").gsub("5"," 4").gsub("4"," 3").gsub("3"," 2").gsub("2"," 1").gsub("1"," ")
5# replace 'P' with '1' and replace 'p' with '1'
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.