Modify the order of state reproduction to represent black moves after white.

main
Roy 2 years ago
parent 0ef22719c4
commit 16f3d174eb
  1. 2
      chess_gui/lib/chess_gui.pm

@ -158,7 +158,7 @@ if ($#_ != -1) {
if (exists($prop{$_})) {$default_iboard[$y][$x] = join '', @{$prop{$_}}} if (exists($prop{$_})) {$default_iboard[$y][$x] = join '', @{$prop{$_}}}
} else { # Restore a previous state (from a session). } 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... $players = 1; # Could do something with this if it weren't for @not_player...

Loading…
Cancel
Save