| 1 | package Games::Chess::Position::Unicode; | ||
| 2 | |||
| 3 | 2 | our $VERSION = '0.01'; | |
| 4 | |||
| 5 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use Encode (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use Games::Chess (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | ▶ | use base 'Games::Chess::Position'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 2 | ▶ | sub to_text { |
|
Subroutine
to_text: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 2 | my $self = shift; | |
| 15 | |||
| 16 | 2 | my $pos = $self->SUPER::to_text; | |
| 17 | 2 | $pos =~ tr/pnbrqkPNBRQK/♟♞♝♜♛♚♙♘♗♖♕♔/; | |
| 18 | |||
| 19 | 2 | return Encode::encode_utf8($pos); | |
| 20 | } | ||
| 21 | |||
| 22 | 2 | 1 && q[Queens Of The Stone Age - Long Slow Goodbye]; | |
| 23 | |||
| 24 | __END__ | ||