Skip to content

This is Magic Square, a Python puzzle game challenging your strategic thinking. Choose a grid, and manipulate it to make each row and column sum to 0. There are multiple starting grids, with a limited number of turns per board. You can change only one spot per turn. Good luck!

Notifications You must be signed in to change notification settings

Daksh2060/magic-square-puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Square Puzzle

This is Magic Square, a Python puzzle game challenging your strategic thinking. Choose a grid, manipulate it to make each row and column sum to 0. There are multiple starting grids, with a limited number of turns per board. You can change only one spot per turn. The program will generate 2 images each game to record your progress. Good luck!

Features

  • Board Selection: Choose from four different game boards, each a grid with its own set of initial numbers, dimensions, and maximum number of turns to solve.

  • Scoring System: Game keeps track of how many boards you have cleared and the total number of turns it took you to to get this score.

  • Custom Images: Two images are generated and saved based on the game board for each playthrough, allowing you to keep a catalogue of past rounds.

Requirements

  • Python 3.x

  • Modules: numpy and pygame

Setup

Follow these steps to set up and run the Magic Square Puzzle game in python:

  1. Clone the repository to your local machine:

    git clone https://github.com/Daksh2060/magic-square-puzzle-python.git
  2. Install numpy and pygame if not already installed:

  3. Run magicSquare.py to start the game.

How to play

  1. Choose a game board: Select a game board by entering a number from 1 to 4.

  2. Pick a spot on the board: Choose a value to change by inputing its row and column.

  3. Change value: Choose a value between -9 and 9 to change value.

  4. Win condition: Achieve a win by making the sum of each row and column equal to zero within the turn limit.

  5. Scoring: Earn points for boards won.

  6. Past game catalogue: The final board of each game is saved as a generated image.

  7. Play again: You can quickly start a new game if you choose to play again.

  8. Exit game: You can exit Magic Square Puzzle between games or during a round.

Contact

Feel free to reach out if you have any questions, suggestions, or feedback:

About

This is Magic Square, a Python puzzle game challenging your strategic thinking. Choose a grid, and manipulate it to make each row and column sum to 0. There are multiple starting grids, with a limited number of turns per board. You can change only one spot per turn. Good luck!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages