Skip to content

SokoNumber puzzle game with computer-playing algorithms

Notifications You must be signed in to change notification settings

IyadAlanssary/SokoNumber

Repository files navigation

SokoNumber

This project was made for the intelligent search algorithms course in my 4th year of studying Software Engineering in Damascus University.

Game

Move the numbers along the grid and put them in their place in Sokonumber. All the numbers move in the same direction, so plan your path wisely.

The puzzles were taken from "https://www.puzzleplayground.com/soko_number"

Try it now here

Sneak peek

<Main Menu>

<Level 5>

<Level 5 solved>

<Level 24>

Algorithms

You can play the puzzles yourself or you can let your computer do the hard work using one of these graph traversal algorithms:

  • Breadth First Search (BFS)
  • Depth First Search (DFS)
  • Uniform Cost Search (UCS)
  • A*

Note: The performance of these algorithms depends on the level's size and complexity.

Map Structure

The map is represented as a 2D string array.

  • #: a block
  • Number: Cells that can move and should reach their destinations.
  • Destination: Fixed cells and are represented in the array as letters e.g. "a".
  • +/-: Cells that increase/decrease the value of the numbers that step on them.

Game details

The concept of the +/- cells is first introduced in level 7.

Starting from level 20 the numbers that move generate a block behind them so you can't go back to that position.

About

SokoNumber puzzle game with computer-playing algorithms

Topics

Resources

Stars

Watchers

Forks

Languages