N-Puzzle (dynamic size and solver) 1.0
File ID: 85782
N-Puzzle (dynamic size and solver) 1.0 Description
Description: The Game:
The N-puzzle is known in various versions, including the 8 puzzle, the
15 puzzle, and with various names. It is a sliding puzzle that consists of a grid of numbered squares with one square missing, and the labels on the squares jumbled up. If the grid is 3?the puzzle is called the 8-puzzle or 9-puzzle. If the grid is 4?the puzzle is called the 15-puzzle or 16-puzzle. The goal of the puzzle is to un-jumble the squares by only making moves which slide squares into the empty space, in turn revealing another empty space in the position of the moved piece. (From Wikipedia)
The N-Puzzle interface lets the user choose between several predefined sizes of boards, and also to choose any custom (valid) size N. A valid
size of N is such that round(sqrt(N+1))^2-1 equals to N.
All generated games are solvable. A game is generated by performing 1000 random moves of the empty space starting from the solution.
User can also import any puzzle into the interface. Puzzle must be defined as an array or as a matrix with numbers spanning from 1 where
the largest number is the empty space.
The N-puzzle game can be played using either mouse or keyboard (or both). Move around marker using arrow keys and make a switch using space. With mouse you move around marker using left-click and make a switch using any other type of click (double-click, right-click, shift-click, etc.)
Extra Game Features:
The N-Puzzle game has Undo and Redo functionality that can be reached from the menu or by the shortcuts Ctrl-Z (Undo) and Ctrl-R (Redo).
A simulation of the game so far can also be viewed using the control in the menu.
The game now also has a built-in solver.
Related: wherethe, largest, spanning, numbers, Matrix, Number, controlsthe, Mouse, played, Array, Defined, solvable, Games, Generated, equals, performing, Random, Puzzle
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
Companion Software for the Dynamic Modeling and Control of Engineering Systems, 2e book by J. Lowen Shearer, Bohdan T. Kulakowski & John F. Gardner
Find-n-replace :: Find It And Replace It! is a multi-platform compatible program that makes series of consistent changes that you need to make to a series of files on your server. For example, the Copyright footer on all bazillion pages in your...
Puzzle Apps CMS and AS is an essential program for the webmasters by which they can easily modify or create design and content of web applications. The users of this program can feel ease to manage their web application contents. It uses MySQL...
Longest common subsequence problem is a good example of dynamic programming, and also has its significance in biological applications.
For more information about LCS, please see:
The algorithm takes in a 1-D signal and finds the Gaussian derivative of it with the given kernel size and sigma, to provide the zero crossings. The zero crossings are then analyzed to give peaks and valleys. In order to remove very closely...
DMCA stands for Dynamic Module and Component Administration makes develop the represent layer of a PHP CMS more easy and comfortable.
It provides useful APIs and meanwhile supply friendly user interface to create and administrate...
Astrocytes is a web-based operating system based on eyeOS and joomla to use and MVC and crossplatform to deliver dynamic pages and files in a very easy way to all users.
Basically, it makes adding dynamic tabs and menus to your Wordpress blog/theme easy.
dTabs provides a new template tag dtab_list_tabs which outputs a user controled dynamically tabbed navigation system with optional drop down menus in...
Criline S'n'R - Powerful Search and Replace Utility Lets You Search for Any String Using a File Mask and Filters and Replace All Found Matches with another String, All Effortlessly and in Seconds.
A class that identifies the size and type of an image. Supports GIF, JPEG, PNG, SWF, PCX, PSD, TIFF, XBM, XPM, PBM/PGM/PPM, and both Windows and OS/2 BMP file formats. Also supports remote files.
|User Review for N-Puzzle (dynamic size and solver)