Skip to content

Instantly share code, notes, and snippets.

@programarivm
Created July 29, 2022 16:23
Show Gist options
  • Save programarivm/a541a7f9e8bb86fe9993dfb56b988acc to your computer and use it in GitHub Desktop.
Save programarivm/a541a7f9e8bb86fe9993dfb56b988acc to your computer and use it in GitHub Desktop.
Chess\Tests\Unit\Randomizer\Checkmate\TwoBishopsRandomizerTest
<?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