chess-evaluation-bar
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Chess-Evaluation-Bar

A browser based Stockfish 11 engine analysis React component. Pass the component a FEN of the position, and the depth of which to search.

My Project GIF

About

  • Uses stockfish.js for the analysis
  • the EvalBar component will be the height of its parent. To set it's height, wrap the EvalBar component in a element with the desired height.

Usage

npm install chess-evaluation-bar

or install with yarn

yarn add chess-evaluation-bar

how to use in React:

import { EvalBar } from "chess-evaluation-bar";

const fen = "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1"

export const eval = () => {
	return(
		<div style={{height: "100vh"}}>
			<EvalBar fen={fen} depth={25}/>
		</div>
	)
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i chess-evaluation-bar

Weekly Downloads

2

Version

0.1.4

License

none

Unpacked Size

7.83 kB

Total Files

4

Last publish

Collaborators

  • trevor-ofarrell