calcitem / Sanmill

Sanmill is an open-source, UCI-like Mill/Morris/Merrills/Mühle/Malom (and its variants) program with CUI, Flutter GUI and Qt GUI, sharing and freely distributing the code, tools and data needed to deliver this mill game. We do this because we are convinced that open software and open data are key ingredients to make rapid progress.
https://play.google.com/store/apps/details?id=com.calcitem.sanmill
GNU General Public License v3.0
143 stars 21 forks source link

paste and move now -- no move #818

Closed calcitem closed 2 months ago

calcitem commented 4 months ago
[FEN "****OO@@/OO@OOOOO/******** b m s 9 0 3 0 0 0 0 0 0 0 0 0 1"]
[SetUp "1"]

 1.    c5-d5    d2-d1
 2.    c4-d2    d6-d7
 3.    d5-d6    b4-a4
 4.    f4-b4    c3-c4
 5.    d2-f4    b2-d2
[uci] input: position fen ****OO@@/OO@OOOOO/******** b m r 9 0 3 0 0 0 0 0 0 0 0 0 1 moves (1,8)->(1,1) (2,5)->(3,5) (1,7)->(2,5) (2,1)->(3,1) (1,1)->(2,1) (2,7)->(3,7) (2,3)->(2,7) (1,6)->(1,7) (2,5)->(2,3) (2,6)->(2,5) 

not same, bms and bmr

    // WAR
    if (GameController().gameRecorder.lastPositionWithRemove ==
        GameController().gameRecorder.setupPosition) {
      if (GameController().position.action == Act.remove) {
        ret = ret.replaceFirst(" s ", " r ");
      }
    }
Fix fen to remove status if piece to remove count is more than 0

Change-Id: Ic4c1d9e3ed31a18830972f16ff108777f81eac97
calcitem commented 2 months ago

Import

[FEN "****OO@@/OO@OOOOO/******** b m s 9 0 3 0 0 0 0 0 0 0 0 0 1"]
[SetUp "1"]

 1.    c5-d5    d2-d1
 2.    c4-d2

Cannot import c4-d2.