From 7463b32c4c0a899e591a90d365761ee670c6eb0f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 6 Aug 2014 23:14:52 +0200 Subject: [PATCH] Fix the move prettyprinting on make_move(). --- Position.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Position.pm b/Position.pm index 5d63ae2..777571e 100644 --- a/Position.pm +++ b/Position.pm @@ -167,7 +167,8 @@ sub make_move { } $np->{'player_w'} = $pos->{'player_w'}; $np->{'player_b'} = $pos->{'player_b'}; - $np->{'last_move'} = '(move)'; # FIXME + my ($move, $nb) = $pos->{'board'}->prettyprint_move($from_row, $from_col, $to_row, $to_col, $promo); + $np->{'last_move'} = $move; return bless $np; } -- 2.39.2