# aima

> Implementation of Russell & Norvig, "Artificial Intelligence - A Modern Approach".

Latest version **0.7.4** (published 2021-11-29) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.4 |
| Published | 2021-11-29 |
| First published | 2018-12-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 13.0 |
| Dependencies | 1 |
| Unpacked size | 121.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Pomerenke |
| Maintainers | davidpomerenke |
| Keywords | Artificial Intelligence, Stuart Russell, Peter Norvig, Intelligent Agents, Problem-Solving, Search, Optimization, Games, AIMA, Constraints, Logics, CoffeeScript |

## Links

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

## Dependencies (1)

- [deep-equal](https://npm.io/package/deep-equal.md) ^2.0.5

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.7.4 (latest) — 2021-11-29
- 0.7.2 — 2021-03-31
- 0.7.1 — 2020-08-13
- 0.7.0 — 2020-03-24
- 0.6.16 — 2020-03-09
- 0.6.15 — 2020-02-24
- 0.6.14 — 2020-02-24
- 0.6.13 — 2020-02-24
- 0.6.12 — 2020-02-24
- 0.6.11 — 2020-02-23
- 0.6.10 — 2020-02-23
- 0.6.9 — 2020-02-21
- 0.6.8 — 2020-02-15
- 0.6.7 — 2020-02-08
- 0.6.6 — 2020-02-04
- … 20 more at https://npm.io/package/aima/versions

## README

# aima-coffee

[![NPM Package](https://img.shields.io/npm/v/aima.svg)]("https://www.npmjs.com/package/aima")
[![Tests](https://github.com/davidpomerenke/aima-coffee/workflows/Node%20CI/badge.svg)](https://github.com/davidpomerenke/aima-coffee/actions?query=workflow%3A%22Node+CI%22)
[![Coverage](https://codecov.io/gh/davidpomerenke/aima-coffee/branch/master/graph/badge.svg)](https://codecov.io/gh/davidpomerenke/aima-coffee)

[*Artificial Intelligence - A Modern Approach*](http://aima.cs.berkeley.edu/) (*AIMA*) by Stuart Russell and Peter Norvig is the reference textbook on artificial intelligence. 

This package implements some of the algorithms and data structures from the *AIMA* book in function-oriented [CoffeeScript](https://coffeescript.org/), which is compatible with JavaScript.
The focus is on code understandability. 

## Installation and Usage

For using this package as a module in your own Node JavaScript project, install it with the [node package manager](https://github.com/npm/cli):

`npm install aima`

```javascript
import { Problem, makeEightPuzzle, aStarSearch } from 'aima'

const simpleEightPuzzle = makeEightPuzzle([
  [1, 2, 7],
  [6, 0, 4],
  [8, 3, 5]
])

console.log(Problem.solutionPath(aStarSearch(simpleEightPuzzle)))
```

Put the above example code in `example.mjs` and run it: 

`node example.mjs`

## Extensions
- [aima-checkers](https://github.com/davidpomerenke/aima-checkers): Checkers rulebase.

## Applications
- [aima-checkers-gui](https://github.com/davidpomerenke/aima-checkers-gui): Graphical checkers browsergame for desktop and mobile.

## Code & More
This is just the beginning of the literate code file. For information on development & contributing, as well as the source code (including many usage examples), please visit the [https;//github.com/davidpomerenke/aima-coffee](Github repository).

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