1.1.1 • Published 1 month ago

fourengine v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

Fourengine

A perfect Connect-4 solver in WebAssembly.

NodeJS example

const { Fourengine, Position } = require('fourengine')

const fourengine = new Fourengine()

const position = new Position('444444')
const solution = fourengine.solve(position)

Opening book

By default, the engine does not use an opening book but it is included in the package. You can enable it like this:

const fourengine = new Fourengine()
await fourengine.enableBook()

The method is asynchronous because it loads book files from disk.

You can alternatively load the included book files synchronously:

const fourengine = new Fourengine()
fourengine.enableBookSync()
1.1.1

1 month ago

1.1.0

1 month ago

1.0.6

1 year ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago