Skip to content

jacobdcastro/mini-chess

Repository files navigation

mini-chess

An object-oriented chess game played in the terminal. Still a a work in progress, but will be testing soon!

The chess engine is entirely coded from scratch by myself (Jacob). I wanted to code it from scratch literally just for the experience. Turned out to be way more difficult than I'd anticipated, but so much dang fun.

It's very object-oriented using lots of classes and methods to make things work.

It also features a custom useChessGame React hook. YES. React.

This game uses Ink to generate the cli view with React. Take a look around the repo, you'll see what I mean. I love it.

Test out the game!

It's now ready to play! Kind of. The Bot AI is pretty bad at chess, choosing moves entirely at random. My next step is to add a bit of intelligence to the artificial player. :)

Though not on NPM quite yet, you can clone this project and get it up and running locally!

To temporarily install the game and uninstall when you're done, run this:

npx mini-chess

To install globally and have access to the cli at any time, run this:

npm install -g mini-chess
chess

You should see a little chess board, pieces, and move the cursor around! You can use ctrl + c to exit the app.

CLI

After installing globally, you have access to the mini-chess cli at any time. Simply run chess as shown below to start a new game of chess.

$ chess

About

A node.js chess app for your terminal! (work in progress)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published