uestla / oxer
Gomoku in PHP
dev-master
2024-10-06 20:44 UTC
Requires (Dev)
- nette/tester: ^2.5
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^1.12
- phpstan/phpstan-strict-rules: ^1.6
This package is auto-updated.
Last update: 2024-12-06 21:23:52 UTC
README
Installation
composer require uestla/oxer
Usage
use OXer\Board; use OXer\Coord; use OXer\Player; $board = new Board; $board->play(9, 9); // O $board->play(8, 8); // X // ... $board->isGameOver(); // boolean $board->getWinner(); // Player::O / Player::X / null $board->getWinningLines(); // array of Coord[]