N-Puzzle dynamic size and solver Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: npuzzle.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Per-Anders Ekstrom (View more)

N-Puzzle dynamic size and solver script description:




Publisher review:
N-Puzzle dynamic size and solver - Graphical User Interface for playing and solving the N-Puzzle 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)Game Board: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.Game Controls: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.
N-Puzzle dynamic size and solver is a Matlab script for Games scripts design by Per-Anders Ekstrom. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5