Giter Site home page Giter Site logo

bexazak / game-fifteen Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.74 MB

The 15 Puzzle is a sliding puzzle. It has 15 square tiles numbered 1 to 15 in a frame that is 4 tile positions high and 4 tile positions wide, with one unoccupied position. Tiles in the same row or column of the open position can be moved by sliding them horizontally or vertically. The goal of the puzzle is to place the tiles in numerical order.

HTML 2.15% JavaScript 26.51% Vue 52.73% SCSS 18.61%

game-fifteen's Introduction

Fifteen Puzzle Game
Demo

Stack

  • Vue3, Composition API
  • Vite
  • Pinia
  • Vue Router 4
  • Pug, SCSS

Description

The Fifteen Puzzle is a classic sliding puzzle game consisting of a grid of numbered squares with one square missing. The goal of the game is to rearrange the tiles by sliding them into the empty space, with the aim of achieving numerical order from 1 to 15.

Fifteen Puzzle Game

Game rules

The game board consists of a 4x4 grid with 15 numbered tiles and one empty space. Tiles can only be moved horizontally or vertically into the empty space. To move a tile, click or tap on it if it's adjacent to the empty space. The tile will then slide into the empty space. Continue sliding tiles until they are arranged in numerical order from 1 to 15, with the empty space in the bottom-right corner. The game may have variations and additional features, but these are the basic rules of the Fifteen Puzzle.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

game-fifteen's People

Contributors

bexazak-disoft avatar bexazak avatar

Stargazers

Dmytro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.