use Test::More tests => 10; use Games::Goban; use strict; my $board = Games::Goban->new(skip_i => 0); $board->move("pp"); $board->pass; $board->move("pd"); $board->move("dp"); $board->pass; $board->move("jj"); isa_ok($board, 'Games::Goban'); is($board->get('aa'),undef, "nothing at 'aa'"); is($board->get('ap'),undef, "nothing at 'ap'"); is($board->get('pa'),undef, "nothing at 'pa'"); isa_ok($board->get('pp'),'Games::Goban::Piece'); isa_ok($board->get('dp'),'Games::Goban::Piece'); is($board->as_sgf, <as_text, <9); eval { $small_board->move("pp"); }; like($@,qr/position '..' not on board/,"invalid move attempt"); $small_board->move("ab"); ok($small_board->as_text eq <