SENUnfairGameUtilityMethodsTrait

trait BGAHS\SenseiBGA\Utility\SENUnfairGameUtilityMethodsTrait
Source

modules/php/Utility/SENUnfairGameUtilityMethodsTrait.php#18

Methods

private BGAHS\SenseiBGA\Utility\SENUnfairGameUtilityMethodsTrait::checkUnfair()
Checks whether the current situation corresponds to an unfair game position using helper methods depending on the
game mode
Source

modules/php/Utility/SENUnfairGameUtilityMethodsTrait.php#27

Returns

bool

private BGAHS\SenseiBGA\Utility\SENUnfairGameUtilityMethodsTrait::arashiExpertCheckUnfair($player_id, $opponent_id)
Checks if the current positions correspond to an unfair game situation in an arachi expert game (with pits)
Source

modules/php/Utility/SENUnfairGameUtilityMethodsTrait.php#57

Parameters
  • $player_id (int)

  • $opponent_id (int)

Returns

bool

private BGAHS\SenseiBGA\Utility\SENUnfairGameUtilityMethodsTrait::regularCheckUnfairGame($player_id, $opponent_id)
Check if the current positions corresponds to an unfair game situation in a regular game
Source

modules/php/Utility/SENUnfairGameUtilityMethodsTrait.php#175

Parameters
  • $player_id (int)

  • $opponent_id (int)

Returns

bool

private BGAHS\SenseiBGA\Utility\SENUnfairGameUtilityMethodsTrait::getAdjacentBricks($square, $player_id)
Returns an array with the stones belonging to player_id that are adjacent to the given square coordinates
Source

modules/php/Utility/SENUnfairGameUtilityMethodsTrait.php#220

Parameters
  • $square

  • $player_id

Returns

array