Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Setting fenstring doesn't update internal board representation #3

@atduskgreg

Description

@atduskgreg

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions