2.2.1 • Published 7 months ago

@nodots-llc/backgammon-ai v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Nodots Backgammon AI

A TypeScript library that provides AI capabilities for backgammon games using GNU Backgammon (gnubg) as the backend engine. This package is part of the Nodots Backgammon ecosystem.

Features

  • Integration with GNU Backgammon (gnubg) engine
  • TypeScript support with full type definitions
  • Comprehensive test coverage
  • Built on top of @nodots-llc/backgammon-core

Installation

npm install @nodots-llc/backgammon-ai

Prerequisites

This package requires GNU Backgammon (gnubg) to be installed on your system. Please refer to the GNU Backgammon documentation for installation instructions.

Usage

import { BackgammonAI } from '@nodots-llc/backgammon-ai'

// Initialize the AI
const ai = new BackgammonAI()

// Get AI move suggestions
const move = await ai.getBestMove(gameState)

Development

Setup

  1. Clone the repository:
git clone https://github.com/nodots/nodots-backgammon-ai.git
cd nodots-backgammon-ai
  1. Install dependencies:
npm install

Available Scripts

  • npm run build - Build the project
  • npm run test - Run tests
  • npm run test:watch - Run tests in watch mode
  • npm run test:coverage - Run tests with coverage report
  • npm run lint - Run ESLint
  • npm run lint:fix - Fix ESLint issues
  • npm run clean - Clean build artifacts

License

MIT © Nodots LLC

Author

Ken Riley kenr@nodots.com

2.2.1

7 months ago

2.1.0

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago