Skip to content

uestla/OXer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OXer - Gomoku in PHP

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[]

About

Gomoku in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages