a-knights-colour-tour-with-friends

Main Header Logo

A Knight’s Colour Tour With Friends ♞

A modern, colourful twist on a 1,000-year-old maths problem.

A Knight’s Colour Tour With Friends is an open-source, grid-based logic puzzle. By combining the classic movement of a chess Knight with colour based region constraints, this platform offers a transparent, serverless environment for puzzle enthusiasts to test their spatial reasoning, build their own unique challenges, and share them with friends and colleagues instantly.


🚀 Navigation


⚠️ Early Release Notice

This is the first public release of the Knight’s Colour Tour engine. While it has been tested, you may find a few edge-case bugs.

Found a bug or have a suggestion? I’d love to hear from you! Please connect with me and send a message on LinkedIn. Your feedback helps make this better for everyone!


🏁 Quick Start: I Just Want to Play!

When you first load the game, a procedurally generated puzzle is already waiting for you on the Play tab.

  1. Start the Game: Press the “▶ Start Game” button. A 3-2-1 countdown will begin.
  2. Moving the Knight: Tap any valid cell that is an “L” shape away from your current position (the ♞ marker).
  3. Tracking Progress: The game automatically shades in regions you have already visited and logs your moves in the activity box.
  4. Making a Mistake: If you trap yourself, simply press ◀ Undo to walk back through your move history.
  5. Winning: The game completes when you successfully visit every colour on the board exactly once!

⚠️ Important: If you leave the Play tab during an active game, the board will reset. Finish your tour before switching tabs!


🎮 The Rules

Your goal is to complete a modified Knight’s Tour. You must satisfy three simple constraints:

  1. Movement: You can only move in a standard chess Knight pattern (two squares in one direction, and one square perpendicular).
  2. Regions: You must land on every colour-coded region exactly once.
  3. No Backtracking: You cannot jump into a coloured region that you have already visited, and you cannot land on black “Void” spaces.

🛠️ The Build Tab: Customise Your Challenge

The Build tab is a fully-featured level editor. It allows you to generate random puzzles, manually plot paths, or paint your own custom grids using a seamless drag-to-paint touch interface.

1. Automatic Design (Procedural Generation)

2. Manual Design (Plotting a Path)

This can be an iterative process of changing and clicking on the Check Build button.

3. Edit Mode (Painting)


✉️ Sharing Challenges

Once you have a verified board, challenge your friends instantly—no accounts or databases required:

You’ll need to click the Check Build and Apply To Tabs to use your new board.


💡 The Solve Tab: Watch and Learn

Stuck on a puzzle a friend sent you? Let the engine do the heavy lifting.

  1. Ensure the board is loaded.
  2. Navigate to the Solve tab and click ▶ Auto Solve.
  3. Sit back and watch as the algorithmic solver animates the correct Knight’s Tour step-by-step, logging every coordinate along the way.

🎯 Core Features

I built this game to be as frictionless as possible. No logins, no databases, just pure logic puzzles:

  1. Instant Sharing: Custom board layouts are encoded directly into the URL. Copy the link, send it to a friend, and they can play immediately.
  2. Custom Level Builder: A drag-to-paint UI lets anyone design their own grid, while the engine mathematically verifies if the board is solvable.
  3. Learn the Logic: The built-in solver doesn’t just give you the answer. It animates the exact path so players can understand the mechanics.

🛠️ Technical Implementation

Built by Richard Hall MIT License