Created
July 29, 2022 16:23
-
-
Save programarivm/a541a7f9e8bb86fe9993dfb56b988acc to your computer and use it in GitHub Desktop.
Chess\Tests\Unit\Randomizer\Checkmate\TwoBishopsRandomizerTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Chess\Tests\Unit\Randomizer\Checkmate; | |
use Chess\Randomizer\Checkmate\TwoBishopsRandomizer; | |
use Chess\FEN\BoardToStr; | |
use Chess\PGN\AN\Color; | |
use Chess\Tests\AbstractUnitTestCase; | |
class TwoBishopsRandomizerTest extends AbstractUnitTestCase | |
{ | |
/** | |
* @test | |
*/ | |
public function w_get_board() | |
{ | |
$board = (new TwoBishopsRandomizer($turn = Color::W))->getBoard(); | |
$fen = (new BoardToStr($board))->create(); | |
$this->assertNotEmpty($fen); | |
} | |
/** | |
* @test | |
*/ | |
public function b_get_board() | |
{ | |
$board = (new TwoBishopsRandomizer($turn = Color::B))->getBoard(); | |
$fen = (new BoardToStr($board))->create(); | |
$this->assertNotEmpty($fen); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment