Skip to content

Commit

Permalink
Optionally skip the shuffle array
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Feb 21, 2025
1 parent cb578ec commit a015be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Variant/Chess960/CastlingRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CastlingRule extends ClassicalCastlingRule
{
use RandomCastlingRuleTrait;

public function __construct(array $shuffle)
public function __construct(array $shuffle = [])
{
$this->shuffle = $shuffle;

Expand Down

0 comments on commit a015be5

Please sign in to comment.