Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

MateuszPodeszwa/SlidingPuzzles

Repository files navigation

Fifteen Puzzle (C# Console)

A simple sliding puzzle (15-puzzle / N×N puzzle) implemented as a C# console application using .NET and a small game engine abstraction.

Status: Archived – this project is not under active development and will not receive updates or new features.


Features

  • N×N sliding puzzle board rendered in the console.
  • Keyboard controls using arrow keys and Space to slide tiles.
  • Highlighting of the empty tile and currently selected tile.
  • Basic win detection when the board matches the solved configuration.

Technologies

  • C#
  • .NET (console application)

The project is intentionally small and self-contained, aimed at learning and experimentation rather than being a production-ready library.


Getting started

  1. Ensure you have the .NET SDK installed.
  2. Clone the repository.
  3. From the repository root, run: 'dotnet run'

By default, the game initializes a square board (for example 5×5) and starts the render loop in the console.


How to play

  • Use the arrow keys to move the selection cursor around the board.
  • Press Space to swap the selected tile with the empty tile (if the move is valid).
  • The goal is to arrange the tiles into the solved order (1..N²−1) with the empty tile (0) in the last position.

Project status

This repository is provided “as is” for reference and learning.
It is not actively maintained and is not expected to be updated with new features, refactors, or bug fixes in the future.


Contributing

Contributions are not expected or requested for this archived project.
Pull requests and issues may not be reviewed or merged.

If you want to extend or modernize the code, feel free to fork the repository and evolve your own version.


License

If you intend to share this code publicly, consider adding a license file (for example MIT) to clarify usage permissions.
You are free to adapt this project structure and code for your own learning or personal projects.

About

A simple sliding puzzle (15-puzzle / N×N puzzle) implemented as a C# console application using .NET and a small game engine abstraction.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages