Skip to content

This repository contains Java codes for solving and visualizing different kinds of puzzles

Notifications You must be signed in to change notification settings

hishamcse/Puzzle-Solver-Simplified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Puzzle Solver Simplified

This repository contains Java codes for the solution and visualization of various puzzles

Description:

Magic Square

 Generates a magic square of order n. A magic squares is an n-by-n
 matrix of the integers 1 to n^2, such that all row, column, and
 diagonal sums are equal.[NB: n must be odd]

Josephus Puzzle

 There are n people standing in a circle waiting to be executed.The counting out begins at some point
 in the circle and proceeds around the circle in a fixed direction. In each step, a certain number of
 people are skipped and the next person is executed. The elimination proceeds around the circle
 (which is becoming smaller and smaller as the executed people are removed), until only the last person
 remains, who is given freedom. Given the total number of persons n and a number k which indicates that
 k-1 persons are skipped and kth person is killed in circle. The task is to choose the place in the initial
 circle so that you are the last one remaining and so survive.

Maze

 Generates Maze, then creates solution and visualization

N Rooks Puzzle

 How many ways are there to place N rooks on an N-by-N board so that
 no rook can attack any other and show visualization

N Queens Puzzle

 How many ways are there to place N queens on an N-by-N board so that
 no queen can attack any other and show visualization

Slider Puzzle

 Solution and visualization of the 8 and 15 slider puzzle(Test cases are included)

Sudoku

 Solution and visualization of the 9x9 Sudoku (Test file is included.
 Just change the test file with the 9x9 board you want to solve)

Tic-Tac-Toe

  TicTacToe game simple Code implemented using Javafx  

Tower-Of-Hanoi

  Simple Code implementing the steps for Tower_Of_Hanoi to transfer the disks 

About

This repository contains Java codes for solving and visualizing different kinds of puzzles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published