my $g = Games::Grid->new (..., width => sub { $_[0]/4}, height => sub { $_[0] }, ...);