From 16f3d174ebf5aff8178608a32e20f4e16ffe964f Mon Sep 17 00:00:00 2001 From: Roy Date: Sat, 29 Apr 2023 15:51:04 +0200 Subject: [PATCH] Modify the order of state reproduction to represent black moves after white. --- chess_gui/lib/chess_gui.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess_gui/lib/chess_gui.pm b/chess_gui/lib/chess_gui.pm index 3168cb6..a1c27ba 100644 --- a/chess_gui/lib/chess_gui.pm +++ b/chess_gui/lib/chess_gui.pm @@ -158,7 +158,7 @@ if ($#_ != -1) { if (exists($prop{$_})) {$default_iboard[$y][$x] = join '', @{$prop{$_}}} } else { # Restore a previous state (from a session). - $session_iboard[$y][$x] = $h0{$_} // $h1{$_} // $_; + $session_iboard[$y][$x] = $h1{$_} // $h0{$_} // $_; } } $players = 1; # Could do something with this if it weren't for @not_player...