You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I simply did some change on your sample code like this:
//require 'vendor/autoload.php';
include "./src/Piece.php";
include "./src/Board.php";
include "./src/Move.php";
include "./src/Validation.php";
include "./src/History.php";
include "./src/Entry.php";
//include "./src/
include "./src/Chess.php";
include "./src/Output/BasicOutput.php";
//include "./src/Output/UnicodeOutput.php";
//include "./src/Output/OutputInterface.php";
use \PChess\Chess\Chess;
use \PChess\Chess\Output\UnicodeOutput;
The problem is that "fen" method always the same result without any errors or exceptions.
it seems that the board is not changing. What is going wrong ? Did I miss something
( PHP Version is 8.3.14 )
Thanks
The text was updated successfully, but these errors were encountered:
Hello
I simply did some change on your sample code like this:
//require 'vendor/autoload.php';
include "./src/Piece.php";
include "./src/Board.php";
include "./src/Move.php";
include "./src/Validation.php";
include "./src/History.php";
include "./src/Entry.php";
//include "./src/
include "./src/Chess.php";
include "./src/Output/BasicOutput.php";
//include "./src/Output/UnicodeOutput.php";
//include "./src/Output/OutputInterface.php";
use \PChess\Chess\Chess;
use \PChess\Chess\Output\UnicodeOutput;
$cnt=0;
$chess = new Chess();
while (!$chess->gameOver() && (++$cnt<=100) ) {
$moves = $chess->moves();
$move = $moves[random_int(0, count($moves) - 1)];
echo $move."
";
$chess->move($move);
echo $chess->fen()."
";
}
The problem is that "fen" method always the same result without any errors or exceptions.
it seems that the board is not changing. What is going wrong ? Did I miss something
( PHP Version is 8.3.14 )
Thanks
The text was updated successfully, but these errors were encountered: