1 unstable release
0.1.0 | Apr 2, 2021 |
---|
#1316 in Game dev
39KB
942 lines
reason-othello is a full-featured Othello library backed by a blazing fast bitboard.
Key features include:
- The fastest bitboard in the West, written with explicit SIMD to use vector instructions.
- Three level of abstraction trading off speed and convenience: raw bitboard functions, a fast and unchecked
Board
type for engines, and a safe high-levelGame
type. - A C-style FFI for using bitboard functions outside of Rust.
This package was developed as part of the reason engine.
lib.rs
:
reason-othello
is a fast, full-featured Othello library for engines and UIs.
This package implements three levels of abstraction:
bitboard
contains the raw, unchecked operations for working with Othello boards. These are fast, but may result in inconsistent state if their contracts are not manually checked. Bitboard operations are also provided through a C FFI.Board
implements the core game logic in the same fast, unchecked way asbitboard
. This is suitable for use with engines.Game
is a high-level, safe interface to all of the Othello game logic. It is slower but safer and more complete thanBoard
.
Dependencies
~1.3–1.8MB
~40K SLoC