@bedard/hexchess-engine
Version:
A game engine for Gliński's hexagonal chess
73 lines (53 loc) • 2.84 kB
Markdown
# [`hexchess`](https://docs.hexchess.club)
[](https://github.com/scottbedard/hexchess/actions/workflows/build.yml)
[](https://codecov.io/gh/scottbedard/hexchess)
[](https://crates.io/crates/hexchess)
[](https://packagist.org/packages/bedard/hexchess)
[](https://www.npmjs.com/package/@bedard/hexchess)
[](https://www.npmjs.com/package/@bedard/hexchess-engine)
[](https://github.com/scottbedard/hexchess/blob/main/LICENSE)
A cross-language library for [Gliński's hexagonal chess](https://en.wikipedia.org/wiki/Hexagonal_chess#Gli%C5%84ski's_hexagonal_chess), and the brain of [hexchess.club](https://hexchess.club).
[View documentation →](https://docs.hexchess.club)
<p align="center">
<a href="https://docs.hexchess.club">
<img src="docs/public/hexchess.svg" width="350" />
</a>
</p>
## Development
Depending on which library you're working on, you'll need to install a few dependencies.
- [Rust](https://www.rust-lang.org/tools/install)
- [PHP](https://www.php.net/)
- [Node.js](https://nodejs.org/) and [pnpm](https://pnpm.io/installation)
First, clone the repository, and setup the CLI.
```
git clone git@github.com:scottbedard/hexchess.git
cd hexchess
pnpm install
```
Next run `node hexchess` to see the following commands.
```
Usage: hexchess [options] [command]
Options:
-h, --help display help for command
Commands:
build Build all projects
build:engine Build engine package
build:js Build NPM package
build:rs Build Rust crate
docs:dev Develop docs
docs:build Build docs
docs:preview Preview docs
lint:php Run linting
test Run all tests
test:engine [options] Run engine tests
test:js [options] Run JavaScript tests
test:php [options] Run PHP tests
test:rs [options] Run Rust tests
version [options] [version] Set the version of the project
version:check [options] Check the versions of the dependencies
help [command] display help for command
```
## License
[MIT](https://github.com/scottbedard/hexchess/blob/main/LICENSE)
Copyright (c) 2024-present, Scott Bedard