last update: 2003/08/14 JapaneseJapanese page

Sliding Block Puzzle in JavaScript

The Sliding Block Puzzle is quite popular, the rules are simple but it requires deep thought. For example, the object of the puzzle illustrated in the figure below is to move the L shaped piece to the lower right corner by sliding pieces on the board. Sliding Block Puzzle in JavaScript is a web application implemented in JavaScript to play such puzzles in web browsers.

Overview of a puzzle

Before proceeding

Notes on JavaScript

Some of web browsers can control certain features of JavaScript in their preference settings such as opening windows from script. If you disabled such features, some of functions in this software may not work. See also Requirements and compatibility below.

Copyright, Licence and disclaimer notice

Sliding Block Puzzle in JavaScript version 1.0, Copyright (C) 2003 HIROSE Yukio

Sliding Block Puzzle in JavaScript comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see licence.htm for details.

Play demo

Requirements and compatibility

A web browser (HTML 4.0 compliant is recommended) having capability of certain basic manipulation of HTML contents (document.write, document.images) with JavaScript (ECMA-262 complient, JavaScript version 1.3 or higher is recommended).

Known to work:
[MacOS 9.2.2] Mozilla 1.2.1(US), Netscape Navigator 4.0.8(US), Netscape Communicator 4.7(J), 4.8(US), Netscape 7.0.1(US), Internet Explorer 5.1.3(US), iCab 2.8.2(US)
[MacOS X] Mozilla 1.3, 1.4, Camino 0.7, Internet Explorer 5.2.2(J), iCab 2.9.5, Opera 6.0.2
Probably compatible:
Browsers for the other OS with version similar to the above listing or browsers conforming to the latest web standard specifiaction such as Konqueror or Opera 7.
Known to not work correct:
[MacOS 9.2.2] Opera 6 (lacks implementation for String.replace())
[MacOS X] Safari 1.0 v85 (Can't identify the cause since Safari does not have JavaScript debugging facility.)
Incompatible:
Netscape Navigator 2.x, Internet Explorer 3.x (lacks support of document.images)
Not sure about compatibility:
Netscape Navigator 3.x, Internet Explorer 4.x, Dreamcast, etc.

Contacts

This software is created by HIROSE, Yukio. Any comments such as web browser compatibility, bug report or else are welcome.