$b = new Bludiste(10, 20);
echo $b->toTable();

$b->pridejSteny();
echo $b->toTable();
# # # # #
# # # #
# #
# # # # # # #
# # # # # # #
# # # #
# # # # #
# # # # # # #
# # # # # # #
# # #

$b->pridejOploceni();
echo $b->toTable();
# # # # # # # # # # # # # # # # # # # # # #
# # # # # # #
# # # # # #
# # # #
# # # # # # # # #
# # # # # # # # #
# # # # # #
# # # # # # #
# # # # # # # # #
# # # # # # # # #
# # # # #
# # # # # # # # # # # # # # # # # # # # # #

$b->udelejVychod();
echo $b->toTable();
# # # # # # # # # # # # # # # # # # # # #
# # # # # # #
# # # # # #
# # # #
# # # # # # # # #
# # # # # # # # #
# # # # # #
# # # # # # #
# # # # # # # # #
# # # # # # # # #
# # # # #
# # # # # # # # # # # # # # # # # # # # # #

$b->setRandomStart();
echo $b->toTable();
# # # # # # # # # # # # # # # # # # # # #
# # # # # # #
# # # # # #
# # # #
# # # # # # # # #
# # # # # # # # #
# # # # # #
# # # # # # #
# # # # # # # # #
# # # # # # # # #
# # # # #
# # # # # # # # # # # # # # # # # # # # # #

$b->go();
echo $b->getMuzuUtect();

Muzu utect: NE


Misto textu obrazky...