.
This commit is contained in:
parent
bd400745dd
commit
d0470ecc4b
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$discCount = 6;
|
$discCount = 3;
|
||||||
//load the class
|
//load the class
|
||||||
include("class.towers.php");
|
include("class.towers.php");
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ function resolveHanoi(Tower $tower, Steps $steps){
|
||||||
$result = false;
|
$result = false;
|
||||||
|
|
||||||
if($tower->is_won()){
|
if($tower->is_won()){
|
||||||
echo "\nSolution founded. Reverse this steps:\n".$tower;
|
echo "\nSolution founded. Reverse these steps:\n".$tower;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$availablesMoves = $tower->list_moves_availables();
|
$availablesMoves = $tower->list_moves_availables();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user