--- Games-Go-SimpleBoard/SimpleBoard.pm 2008/06/25 20:49:38 1.10 +++ Games-Go-SimpleBoard/SimpleBoard.pm 2008/06/27 12:40:29 1.11 @@ -102,6 +102,10 @@ my $class = shift; my $size = shift; + unless ($size > 0) { + Carp::croak ("no board size given!"); + } + bless { max => $size - 1, size => $size,