# aima-checkers

> Checkers game for aima.js.

Latest version **0.1.13** (published 2020-02-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install aima-checkers
pnpm add aima-checkers
yarn add aima-checkers
bun add aima-checkers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.13 |
| Published | 2020-02-04 |
| First published | 2019-11-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Pomerenke |
| Maintainers | davidpomerenke |
| Keywords | Checkers, Draughts, Game, Problem-Solving, Artificial Intelligence |

## Links

- npm: https://www.npmjs.com/package/aima-checkers
- Repository: https://github.com/davidpomerenke/aima-checkers
- Homepage: https://github.com/davidpomerenke/aima-checkers#readme
- Issues: https://github.com/davidpomerenke/aima-checkers/issues
- npm.io page: https://npm.io/package/aima-checkers

## Dependencies (1)

- [aima](https://npm.io/package/aima.md) ^0.6.6

## Recent versions

- 0.1.13 (latest) — 2020-02-04
- 0.1.12 — 2020-02-02
- 0.1.11 — 2019-11-22
- 0.1.10 — 2019-11-22
- 0.1.9 — 2019-11-22
- 0.1.8 — 2019-11-21
- 0.1.7 — 2019-11-21
- 0.1.6 — 2019-11-21
- 0.1.5 — 2019-11-21
- 0.1.4 — 2019-11-21
- 0.1.3 — 2019-11-21
- 0.1.2 — 2019-11-20
- 0.1.0 — 2019-11-19

## README

# aima-checkers

[![NPM version](https://img.shields.io/npm/v/aima-checkers.svg)](https://www.npmjs.com/package/aima-checkers)
![GitHub Actions status](https://github.com/davidpomerenke/aima-checkers/workflows/Node%20CI/badge.svg)

This is a formulation of the checkers game in the formal paradigm presented in [*Artificial Intelligence - A Modern Approach*](http://aima.cs.berkeley.edu/) (*AIMA*) by Stuart Russell and Peter Norvig. This module can be used in combination with the search algorithms from [aima-coffee](https://github.com/davidpomerenke/aima-coffee), specifically the `minimaxDecision` and the `alphaBetaSearch` algorithms. 

## Rules

There are several versions of checkers out there and I have not attempted to systematize them. 

These are the rules of this implementation:

You win the game if your opponent cannot do any moves and you have more pieces than them. In each round, you can move one of your checkers forward to a neighbouring empty black square. If this square is occupied by your opponent but the next square in this direction is free, then you can jump to the free square whilst your opponent will lose their checker. After a jump, you can perform another jump in the same round. If you reach the last row with a checker, it will be crowned and from the next round you can also move and jump backwards with it. When a checker jumps over a crowned checker, it will take over the crown. The same rules apply to both players. The player with the brown checkers starts.

## Graphical implementation

- [aima-checkers-gui](https://github.com/davidpomerenke/checkers)

---
_Source: https://npm.io/package/aima-checkers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
