The IT Lab arena

JC ITLAB Chess Battle

Classic chess rules. Four wild battle sets. Play a friend on one board, or take on the computer.

Two players Hard computer 4 battle sets
1

Battle mode

How do you want to play?

Two players · Classic Chess

How to move: tap a piece, then tap a highlighted square.

2

Battle set

Pick the pieces. Every set follows the same classic chess rules.

All six piece types change with the set. Kings, queens, rooks, bishops, knights and pawns stay easy to tell apart.

JC ITLAB Chess Battle Made for the IT Lab

JC ITLAB Chess Battle game

White to move

Select a piece to see its legal moves.

Free assets, honestly credited

Credits and licences

Everything on this page was made for JC ITLAB Chess Battle or is used under a free licence. No paid assets, no stock subscriptions.

Piece artwork

All four battle sets, Classic Chess, Aliens, Zombies and Monster Plants, are original vector artwork drawn for this project. Every king, queen, rook, bishop, knight and pawn was made here.

Original work. Free to use with this game.

Sound effects

The move, capture, check, game over and select sounds were generated for this project. They are original audio files, not sampled from a commercial library.

  • Piece move: soft wooden tap
  • Capture: wooden clack and scatter
  • Check: bright warning chime
  • Game over: short victory jingle
  • Select: quiet tactile click

Original work. Free to use with this game.

Fonts

Lilita One by Juan Montoreano is used for the title and headings. Outfit by The Outfit Project Authors is used for the interface text. Both are from Google Fonts and are used under the SIL Open Font License, Version 1.1.

SIL Open Font License 1.1. The full licence text is included below.

Read the SIL Open Font License 1.1
Loading licence text...

Code and chess engine

The chess rules, move highlighting, status messages, themed board and the Hard computer opponent were written for this project. No third-party chess library or engine is used. The computer searches with a minimax style alpha-beta search, runs in a background worker, and never gets help from the page.

Original code. Free to use with this game.

For teachers and makers

This build is a working classroom prototype, not a mockup. These notes cover the design decisions that are useful if a class wants to read the code, remix it or extend it.

Open the build notes

Screens and flow

Setup (mode, side and battle set) leads to the battle board. A result card appears over the board at checkmate, stalemate or a draw. Credits are always one tap away, and a game in progress is kept when the credits page is opened.

Chess rules

The engine handles legal move generation, castling, en passant, all four promotions, check, checkmate, stalemate, threefold repetition, the fifty move rule and insufficient material. The Hard opponent is the only difficulty.

Tech stack

HTML5, modern CSS and plain JavaScript. No framework, no third party chess library. The computer search runs in a Web Worker so the board never stops responding while it thinks.

Folder structure

On wide screens the board sits beside the status and move list. On tablets and phones the same panels stack into one column, with the status pinned directly above the board. index.html and css/style.css hold the page. js/engine.js is the rules engine, js/ai.js the search, js/ai-worker.js the worker wrapper, js/pieces.js the four art sets and js/app.js the screens and controls.

Hard computer

A negamax alpha beta search with quiescence, capture ordering, piece square evaluation, a pawn structure term and a small sound opening book. It searches for about one second and returns a legal move to the page, which re-checks it before playing.

Theme switching

One rules engine, four drawing sets. Each set defines its own king, queen, rook, bishop, knight and pawn in SVG. The chosen set is applied before a battle starts, so a theme never changes the rules or the computer.

Free assets

Artwork, sound and code are original to this project. The two fonts are the only third party assets and are used under the SIL Open Font License. There is no paid stock, no remote asset dependency and no asset that can vanish from a download site.

Free and public-domain sources

The brief asked for free Creative Commons or public-domain assets. This build goes one step further: the artwork, audio and code were created specifically for JC ITLAB Chess Battle, so there is no attribution debt to a third-party artist and no asset that can disappear from a free download site.

If a future version uses art or audio from OpenGameArt, Kenney, itch.io or Freesound, each item will be listed here with its author, source and licence. Nothing from those sites is bundled in this version.

No third-party visual or audio assets are bundled.