xwang233 / checkers-visualize

A Checkers Game based on Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checkers

Comments

The original js repo was written by codethejason, and I "borrowed" this js repo as a checkers front-end to play with my C++ back-end bot in checkers.

As I was adding the compatibility for the communication with my C++ back-end (using dlib for networking), I also fixed several bugs for this repo. Most of them are related to the rules of checkers.

You may visit a static live demo HERE.

The below part of the README is from the original author. Many thanks!

Using It

Play by selecting your piece and clicking on the tile you want to move to. Click here to learn how to play checkers. Jumping when available is enforced.

Code

The code supports all the features of checkers including kingship and double/triple/quadruple jumping. The Board object controls the board and therefore the game. The pieces and tiles instances are used in the game for checking whether a piece can be moved, moving a piece, deleting a piece, checking whether tile is in range, and much more. The script is fully commented and original.

If you find any bugs, please make a Pull Request or an Issue.

About

A Checkers Game based on Javascript.

License:GNU General Public License v2.0


Languages

Language:JavaScript 55.4%Language:CSS 29.3%Language:C++ 8.8%Language:HTML 5.8%Language:Makefile 0.6%