Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package pentobi for openSUSE:Factory checked in at 2026-12-01 16:58:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pentobi (Old) and /work/SRC/openSUSE:Factory/.pentobi.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pentobi" Tue Dec 1 16:58:51 2026 rev:21 rq:1401716 version:31.1 Changes: -------- --- /work/SRC/openSUSE:Factory/pentobi/pentobi.changes 2026-10-12 22:08:48.610282529 +0200 +++ /work/SRC/openSUSE:Factory/.pentobi.new.1340718/pentobi.changes 2026-12-01 17:01:07.968523053 +0100 @@ -1,0 +2,14 @@ +Mon Nov 30 10:24:52 UTC 2026 - Martin Hauke <[email protected]> + +- Update to version 31.1 + * Fixed crash caused by search tree reuse when using board setup + (issue #30). + * Find Moves and GTP command all_legal in Callisto did not + restrict the second move to the 1x1 piece (issue #32). + * Reduced installation size by compressing images in the manual. + * GTP command save_tree did not include board setup (issue #30). + * Fixed debug assertion when generating moves in setup positions + where a first move could cover an opponent’s starting point. + * Fixed search tree reuse after aborted searches (issue #31). + +------------------------------------------------------------------- Old: ---- pentobi-31.0.tar.xz New: ---- pentobi-31.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pentobi.spec ++++++ --- /var/tmp/diff_new_pack.eP1coR/_old 2026-12-01 17:01:08.733555076 +0100 +++ /var/tmp/diff_new_pack.eP1coR/_new 2026-12-01 17:01:08.735555160 +0100 @@ -17,7 +17,7 @@ Name: pentobi -Version: 31.0 +Version: 31.1 Release: 0 Summary: Program to play the board game Blokus License: GPL-3.0-only ++++++ pentobi-31.0.tar.xz -> pentobi-31.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/CMakeLists.txt new/pentobi-31.1/CMakeLists.txt --- old/pentobi-31.0/CMakeLists.txt 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/CMakeLists.txt 2026-11-29 09:52:55.000000000 +0100 @@ -2,7 +2,7 @@ project(pentobi CXX) set(PENTOBI_VERSION_MAJOR 31) -set(PENTOBI_VERSION_MINOR 0) +set(PENTOBI_VERSION_MINOR 1) set(PENTOBI_IS_RELEASE TRUE) set(PENTOBI_VERSION ${PENTOBI_VERSION_MAJOR}.${PENTOBI_VERSION_MINOR}) if(NOT PENTOBI_IS_RELEASE) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/INSTALL.md new/pentobi-31.1/INSTALL.md --- old/pentobi-31.0/INSTALL.md 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/INSTALL.md 2026-11-29 09:52:55.000000000 +0100 @@ -7,9 +7,10 @@ Building Pentobi requires the following tools and libraries: * C++ compiler with C++20 support -* [Qt libraries](https://www.qt.io/) (>=6.11) -* [CMake](https://cmake.org/) (>=3.22) -* [GNU gettext](https://www.gnu.org/software/gettext/) (>=0.23) +* [Qt libraries](https://www.qt.io/) + (>= 6.11; QtSvg is only needed at runtime for the icon plugin) +* [CMake](https://cmake.org/) (>= 3.22) +* [GNU gettext](https://www.gnu.org/software/gettext/) (>= 0.23) * [LibRsvg](https://wiki.gnome.org/Projects/LibRsvg) In Debian (Forky), they can be installed with the command diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/NEWS.md new/pentobi-31.1/NEWS.md --- old/pentobi-31.0/NEWS.md 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/NEWS.md 2026-11-29 09:52:55.000000000 +0100 @@ -1,6 +1,18 @@ Pentobi Release Notes ===================== +Version 31.1 (29 Nov 2026) +-------------------------- + +* Fixed crash caused by search tree reuse when using board setup (issue #30) +* Find Moves and GTP command all_legal in Callisto did not restrict the + second move to the 1x1 piece (issue #32) +* Reduced installation size by compressing images in the manual +* GTP command save_tree did not include board setup (issue #30) +* Fixed debug assertion when generating moves in setup positions where a + first move could cover an opponent’s starting point +* Fixed search tree reuse after aborted searches (issue #31) + Version 31.0 (01 Oct 2026) -------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/libboardgame_mcts/SearchBase.h new/pentobi-31.1/libboardgame_mcts/SearchBase.h --- old/pentobi-31.0/libboardgame_mcts/SearchBase.h 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/libboardgame_mcts/SearchBase.h 2026-11-29 09:52:55.000000000 +0100 @@ -1076,15 +1076,18 @@ else for (PlayerInt i = 0; i < m_nu_players; ++i) m_root_val[i].init(SearchParamConst::tie_value, 1); - if ((m_reuse_subtree && (is_followup || m_abort.test())) + if ((m_reuse_subtree && (is_followup || (is_same && m_abort.test()))) || (m_reuse_tree && is_same)) { size_t tree_nodes = m_tree.get_nu_nodes(); if (m_followup_sequence.empty()) { if (tree_nodes > 1) + { LIBBOARDGAME_LOG("Reusing all ", tree_nodes, " nodes (count=", m_tree.get_root().get_visit_count(), ")"); + clear_tree = false; + } } else { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/libpentobi_base/Board.cpp new/pentobi-31.1/libpentobi_base/Board.cpp --- old/pentobi-31.0/libpentobi_base/Board.cpp 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/libpentobi_base/Board.cpp 2026-11-29 09:52:55.000000000 +0100 @@ -122,11 +122,17 @@ } return; } - if (m_is_callisto && is_piece_left(c, m_one_piece)) - for (auto p : *m_geo) - if (! is_forbidden(p, c) && ! m_is_center_section[p]) - gen_moves(c, p, m_one_piece, get_adj_status(p, c), marker, - moves); + if (m_is_callisto) + { + auto nu_left_one_piece = get_nu_left_piece(c, m_one_piece); + if (nu_left_one_piece > 0) + for (auto p : *m_geo) + if (! is_forbidden(p, c) && ! m_is_center_section[p]) + gen_moves(c, p, m_one_piece, get_adj_status(p, c), marker, + moves); + if (nu_left_one_piece > 1) + return; + } for (Point p : get_attach_points(c)) if (! m_state_color[c].forbidden[p]) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/libpentobi_mcts/History.cpp new/pentobi-31.1/libpentobi_mcts/History.cpp --- old/pentobi-31.0/libpentobi_mcts/History.cpp 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/libpentobi_mcts/History.cpp 2026-11-29 09:52:55.000000000 +0100 @@ -20,6 +20,7 @@ LIBBOARDGAME_ASSERT(is_valid()); variant = m_variant; auto bd = make_unique<Board>(variant); + bd->init(&m_setup); for (ColorMove mv : m_moves) bd->play(mv); get_current_position_as_setup(*bd, setup); @@ -30,6 +31,7 @@ m_is_valid = true; m_variant = bd.get_variant(); m_nu_colors = bd.get_nu_colors(); + m_setup = bd.get_setup(); m_moves.clear(); for (unsigned i = 0; i < bd.get_nu_moves(); ++i) m_moves.push_back(bd.get_move(i)); @@ -43,6 +45,9 @@ if (! m_is_valid || ! other.m_is_valid || m_variant != other.m_variant || m_moves.size() < other.m_moves.size()) return false; + for (Color::IntType c = 0; c < m_nu_colors; ++c) + if (m_setup.placements[Color(c)] != other.m_setup.placements[Color(c)]) + return false; unsigned i = 0; for ( ; i < other.m_moves.size(); ++i) if (m_moves[i] != other.m_moves[i]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/libpentobi_mcts/History.h new/pentobi-31.1/libpentobi_mcts/History.h --- old/pentobi-31.0/libpentobi_mcts/History.h 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/libpentobi_mcts/History.h 2026-11-29 09:52:55.000000000 +0100 @@ -23,6 +23,7 @@ This class can be used, for instance, to uniquely remember a board position for reusing parts of previous computations. The state includes: - the game variant + - the setup - the history of moves - the color to play */ class History @@ -72,6 +73,8 @@ ArrayList<ColorMove, Board::max_moves> m_moves; Color m_to_play; + + Setup m_setup; }; inline History::History() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/libpentobi_mcts/State.cpp new/pentobi-31.1/libpentobi_mcts/State.cpp --- old/pentobi-31.0/libpentobi_mcts/State.cpp 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/libpentobi_mcts/State.cpp 2026-11-29 09:52:55.000000000 +0100 @@ -101,7 +101,10 @@ // status for all of its points does not change. Point p = find_best_starting_point(c); if (p.is_null()) + { + moves.clear(); return; + } unsigned nu_moves = 0; auto& marker = m_marker[c]; auto& is_forbidden = m_bd.is_forbidden(c); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/libpentobi_mcts/tests/CMakeLists.txt new/pentobi-31.1/libpentobi_mcts/tests/CMakeLists.txt --- old/pentobi-31.0/libpentobi_mcts/tests/CMakeLists.txt 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/libpentobi_mcts/tests/CMakeLists.txt 2026-11-29 09:52:55.000000000 +0100 @@ -1,4 +1,5 @@ add_executable(test_libpentobi_mcts + HistoryTest.cpp SearchTest.cpp StateUtilTest.cpp ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/libpentobi_mcts/tests/HistoryTest.cpp new/pentobi-31.1/libpentobi_mcts/tests/HistoryTest.cpp --- old/pentobi-31.0/libpentobi_mcts/tests/HistoryTest.cpp 1970-01-01 01:00:00.000000000 +0100 +++ new/pentobi-31.1/libpentobi_mcts/tests/HistoryTest.cpp 2026-11-29 09:52:55.000000000 +0100 @@ -0,0 +1,59 @@ +//----------------------------------------------------------------------------- +/** @file libpentobi_mcts/tests/HistoryTest.cpp + @author Markus Enzenberger + @copyright GNU General Public License version 3 or later */ +//----------------------------------------------------------------------------- + +#include "libpentobi_mcts/History.h" + +#include "libboardgame_test/Test.h" + +using namespace libpentobi_base; +using namespace libpentobi_mcts; + +//----------------------------------------------------------------------------- + +LIBBOARDGAME_TEST_CASE(pentobi_mcts_history_get_as_setup_with_setup) +{ + auto bd = make_unique<Board>(Variant::duo); + Setup setup; + setup.to_play = Color(0); + Move mv1; + LIBBOARDGAME_CHECK(bd->from_string(mv1, "a1,a2")); + setup.placements[Color(0)].push_back(mv1); + bd->init(&setup); + Move mv2; + LIBBOARDGAME_CHECK(bd->from_string(mv2, "e10")); + bd->play(Color(0), mv2); + History history; + history.init(*bd, Color(0)); + Setup merged_setup; + Variant variant; + history.get_as_setup(variant, merged_setup); + auto& placements = merged_setup.placements[Color(0)]; + LIBBOARDGAME_CHECK(placements.size() == 2); + LIBBOARDGAME_CHECK(placements.contains(mv1)); + LIBBOARDGAME_CHECK(placements.contains(mv2)); +} + +LIBBOARDGAME_TEST_CASE(pentobi_mcts_history_is_followup_different_setup) +{ + auto bd = make_unique<Board>(Variant::duo); + Setup setup; + setup.to_play = Color(0); + Move mv; + LIBBOARDGAME_CHECK(bd->from_string(mv, "a1,a2")); + setup.placements[Color(0)].push_back(mv); + bd->init(&setup); + History hist_1; + hist_1.init(*bd, Color(0)); + LIBBOARDGAME_CHECK(bd->from_string(mv, "b1,b2")); + setup.placements[Color(1)].push_back(mv); + bd->init(&setup); + History hist_2; + hist_2.init(*bd, Color(0)); + ArrayList<Move, SearchParamConst::max_moves> sequence; + LIBBOARDGAME_CHECK(! hist_2.is_followup(hist_1, sequence)); +} + +//----------------------------------------------------------------------------- Binary files old/pentobi-31.0/pentobi/help/docbook/analysis.png and new/pentobi-31.1/pentobi/help/docbook/analysis.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/analysis_dark.png and new/pentobi-31.1/pentobi/help/docbook/analysis_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_callisto.png and new/pentobi-31.1/pentobi/help/docbook/board_callisto.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_callisto_dark.png and new/pentobi-31.1/pentobi/help/docbook/board_callisto_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_classic.png and new/pentobi-31.1/pentobi/help/docbook/board_classic.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_classic_dark.png and new/pentobi-31.1/pentobi/help/docbook/board_classic_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_duo.png and new/pentobi-31.1/pentobi/help/docbook/board_duo.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_duo_dark.png and new/pentobi-31.1/pentobi/help/docbook/board_duo_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_gembloq.png and new/pentobi-31.1/pentobi/help/docbook/board_gembloq.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_gembloq_dark.png and new/pentobi-31.1/pentobi/help/docbook/board_gembloq_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_nexos.png and new/pentobi-31.1/pentobi/help/docbook/board_nexos.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_nexos_dark.png and new/pentobi-31.1/pentobi/help/docbook/board_nexos_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_trigon.png and new/pentobi-31.1/pentobi/help/docbook/board_trigon.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/board_trigon_dark.png and new/pentobi-31.1/pentobi/help/docbook/board_trigon_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/pieces.png and new/pentobi-31.1/pentobi/help/docbook/pieces.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/pieces_callisto.png and new/pentobi-31.1/pentobi/help/docbook/pieces_callisto.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/pieces_gembloq.png and new/pentobi-31.1/pentobi/help/docbook/pieces_gembloq.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/pieces_junior.png and new/pentobi-31.1/pentobi/help/docbook/pieces_junior.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/pieces_nexos.png and new/pentobi-31.1/pentobi/help/docbook/pieces_nexos.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/pieces_trigon.png and new/pentobi-31.1/pentobi/help/docbook/pieces_trigon.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_callisto.png and new/pentobi-31.1/pentobi/help/docbook/position_callisto.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_callisto_dark.png and new/pentobi-31.1/pentobi/help/docbook/position_callisto_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_classic.png and new/pentobi-31.1/pentobi/help/docbook/position_classic.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_classic_dark.png and new/pentobi-31.1/pentobi/help/docbook/position_classic_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_duo.png and new/pentobi-31.1/pentobi/help/docbook/position_duo.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_duo_dark.png and new/pentobi-31.1/pentobi/help/docbook/position_duo_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_gembloq.png and new/pentobi-31.1/pentobi/help/docbook/position_gembloq.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_gembloq_dark.png and new/pentobi-31.1/pentobi/help/docbook/position_gembloq_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_nexos.png and new/pentobi-31.1/pentobi/help/docbook/position_nexos.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_nexos_dark.png and new/pentobi-31.1/pentobi/help/docbook/position_nexos_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_trigon.png and new/pentobi-31.1/pentobi/help/docbook/position_trigon.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/position_trigon_dark.png and new/pentobi-31.1/pentobi/help/docbook/position_trigon_dark.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/rating.png and new/pentobi-31.1/pentobi/help/docbook/rating.png differ Binary files old/pentobi-31.0/pentobi/help/docbook/rating_dark.png and new/pentobi-31.1/pentobi/help/docbook/rating_dark.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/pentobi/unix/io.sourceforge.pentobi.appdata.xml.in new/pentobi-31.1/pentobi/unix/io.sourceforge.pentobi.appdata.xml.in --- old/pentobi-31.0/pentobi/unix/io.sourceforge.pentobi.appdata.xml.in 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/pentobi/unix/io.sourceforge.pentobi.appdata.xml.in 2026-11-29 09:52:55.000000000 +0100 @@ -83,14 +83,12 @@ </provides> <content_rating type="oars-1.1"/> <releases> -<release version="31.0" date="2026-10-01"> +<release version="31.1" date="2026-11-29"> <description> <ul> -<li>Partial workaround for broken dark mode on some platforms</li> -<li>Improved usability on Linux phones (postmarketOS/Nura)</li> -<li>Removed menu item View/Toolbar</li> -<li>Remember analysis speed for the current session</li> -<li>Comment mode setting was not persistent in mobile view</li> +<li>Fixed crash caused by search tree reuse when using board setup (issue #30)</li> +<li>Find Moves in Callisto did not restrict the second move to the 1x1 piece (issue #32)</li> +<li>Reduced installation size by compressing images in the manual</li> </ul> </description> </release> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pentobi-31.0/pentobi_gtp/Pentobi-GTP.md new/pentobi-31.1/pentobi_gtp/Pentobi-GTP.md --- old/pentobi-31.0/pentobi_gtp/Pentobi-GTP.md 2026-10-01 09:08:27.000000000 +0200 +++ new/pentobi-31.1/pentobi_gtp/Pentobi-GTP.md 2026-11-29 09:52:55.000000000 +0100 @@ -4,7 +4,7 @@ This document describes the text-based interface to the engine of the Blokus program [Pentobi](https://pentobi.sourceforge.io). The interface is an adaptation of the -[Go Text Protocol](https://www.lysator.liu.se/~gunnar/gtp/) (GTP) and +[Go Text Protocol](https://web.archive.org/web/20260221033138/https://www.lysator.liu.se/~gunnar/gtp/) (GTP) and allows controller programs to use the engine in an automated way without the GUI. The most recent version of this document can be found in the source code distribution of Pentobi.
