changed chess960 to use only goodie name in header

master
Dylan Lloyd 2013-05-03 16:44:44 -04:00
parent 8cbfdb7320
commit 2b59fea5bd
2 changed files with 3 additions and 2 deletions

View File

@ -134,7 +134,8 @@ RKBRNBNQ RKBRNNQB RBKRBNNQ RKRBBNNQ RKRNBBNQ RKRNBNQB RBKRNNBQ RKRBNNBQ RKRNNBBQ
my $position_lc = lc $position;
my $html = "<img src='/iu/?u=http://www.apronus.com/chess/stilldiagram.php?d=P${position}PPPPPPPP________________________________pppppppp${position_lc}0&w=8&h=8'/>";
return $output, html => $html, heading => "$query (Chess960 Starting Position)";
$query =~ s/^ chess960|chess960 $|chess960 //i;
return $output, html => $html, heading => "$query (Chess960)";
};
1;

View File

@ -26,7 +26,7 @@ Black: ([BKNQRP] ?){1,8}
html => qr|<img src='/iu/\?u=http://www\.apronus\.com/chess/stilldiagram\.php\?d=[BKNQRPbknqrp]{0,16}PPPPPPPP________________________________pppppppp[bknqrpBKNQRP]{0,16}0&w=8&h=8'/>|,
heading => 'random chess960 position (Chess960 Starting Position)'
heading => 'random position (Chess960)'
)
);