GamelyByte

Chess

4.3(18,886 ratings)·1.3M plays·puzzle

Play chess online for free against a real AI opponent built from scratch. Every classical rule is implemented — castling, en passant, pawn promotion, threefold repetition, and stalemate. Pick easy, medium, or hard difficulty and start playing instantly in your browser, on phone or desktop. No signup, no ads inside the board, just clean classical chess.

Controls

Tap or click a piece to select it, then tap the highlighted square to move. The board highlights every legal destination including captures.

Tips & Strategy

  • Control the center with your pawns and knights in the first 6 moves — central squares give your pieces maximum reach.
  • Castle within the first 10 moves to tuck your king behind a wall of pawns and connect your rooks.
  • Never move the same piece twice in the opening unless forced — develop knights and bishops first.
  • Look for forks (one piece attacking two), pins (a piece stuck in front of a more valuable one), and skewers before every move.
  • Trade aggressive pieces when you are ahead in material — simplifying favours the player with more pieces.
  • On hard mode the AI calculates 3 moves ahead — assume any hanging piece will be taken.

How to Play Chess Online Free

Chess is the classic two-player strategy game where each side commands sixteen pieces — eight pawns, two knights, two bishops, two rooks, one queen, and one king. The goal is checkmate: trap the opponent's king so that no legal move can save it.

Our online chess game runs entirely in your browser using HTML5 and JavaScript. There is nothing to install, no account to create, and no subscription to manage. Open the page, pick a difficulty, and start playing.

The pieces and how they move

  • King — moves one square in any direction. Cannot move into check. Castles with a rook under specific conditions.
  • Queen — moves any number of squares horizontally, vertically, or diagonally. The strongest piece on the board.
  • Rook — moves any number of squares horizontally or vertically. Pair up two rooks on an open file for crushing pressure.
  • Bishop — moves diagonally any number of squares. Each bishop is locked to its starting square colour.
  • Knight — jumps in an L-shape (two squares one direction, one perpendicular). The only piece that can jump over others.
  • Pawn — moves forward one square, captures diagonally, and may move two squares from its starting rank. Pawns promote to any piece (usually queen) when they reach the far rank.

How the AI works

The opponent uses minimax search with alpha-beta pruning and standard piece-square evaluation tables. Each candidate move is scored by:

  1. Material — sum of piece values (pawn 1, knight 3, bishop 3, rook 5, queen 9).
  2. Piece-square value — knights are worth more in the centre, rooks on open files, pawns advanced toward promotion.
  3. King safety — a king on the back rank with pawn shelter scores higher than a king stuck in the centre.
  4. Mobility — having more legal moves is rewarded.

The AI then searches a few moves ahead and picks the move that gives the best position assuming the human plays the best response.

Difficulty modes

  • Easy — search depth 1. Captures hanging pieces but rarely finds 2-move tactics. Good for learning the rules.
  • Medium — search depth 2. Plays solid positional chess and punishes obvious blunders.
  • Hard — search depth 3 plus deeper captures search. Calculates short tactical lines and will exploit any free piece you leave.

Common mistakes to avoid

  • Bringing the queen out too early — the AI will harass it with knights and bishops and you'll lose tempo.
  • Ignoring development — if your knights and bishops are still on the back rank by move 10, you are losing the opening.
  • Pushing too many pawns — every pawn move creates a permanent weakness. Move pawns to support pieces, not just to advance.
  • Forgetting to castle — a king stuck in the centre is the most common cause of getting checkmated.

A simple opening that works

If you are new, play e4 → Nf3 → Bc4 → 0-0 with white. This develops your kingside pieces, controls the centre, and castles your king to safety in just four moves — and works against almost anything the AI plays.

Frequently asked questions

What chess engine does this game use?+

A hand-written minimax engine with alpha-beta pruning, piece-square tables, and basic king-safety evaluation. It is strong enough to punish loose moves at hard difficulty but still beatable by a focused intermediate player.

Are all chess rules implemented?+

Yes — castling on both sides, en passant captures, pawn promotion to any piece, check, checkmate, stalemate, threefold repetition, and the 50-move rule are all enforced.

Can I play two-player chess on the same device?+

Currently the game is single-player vs the engine. Two-player local mode is on the roadmap.

Is Chess free to play?+

Yes, Chess is 100% free on GamelyByte. No downloads, no signup, no ads inside the game. Just open the page and play.

Can I play Chess on mobile?+

Absolutely. Chess works on Android phones, iPhones, tablets, and desktops. The game scales to fit your screen and supports both touch and keyboard controls.

How do I play Chess?+

Tap or click a piece to select it, then tap the highlighted square to move. The board highlights every legal destination including captures.

Do I need to install anything to play Chess?+

No installation required. Chess runs directly in your browser using HTML5 — works in Chrome, Safari, Firefox, Edge, and any modern mobile browser.

Can I save my progress in Chess?+

Your best score is saved in your browser automatically. Clearing your browser data will reset it. We don't require an account.

More games like this

See all