uci
uci copied to clipboard
Setting fenstring doesn't update internal board representation
It looks like the set_board function sets @board https://github.com/xunker/uci/blob/master/lib/uci.rb#L275 but I'm not seeing the result after having sent in a fenstring
require 'uci'
uci = Uci.new( :engine_path => '/usr/local/bin/stockfish')
uci.ready?
uci.set_board "5k2/5pb1/1pp2qp1/p1nr3p/5P2/1P2P1R1/P3NP1P/1B4QK w - - 1 20"
uci.board
=> " ABCDEFGH\n8 rnbqkbnr\n7 pppppppp\n6 ........\n5 ........\n4 ........\n3 ........\n2 PPPPPPPP\n1 RNBQKBNR\n"
For references, that board should look like this: