A logic game developed in Python using Tkinter. The goal is to place one flower per row, column, and region, following rules of uniqueness (per row / column) and non-adjacency.
Feel free to download the code and play with it! Be mindful that this game is not perfect. I'm still figuring out how to grant uniqueness of the entire solution. Suggestions are more than appreciated.
This game was built thinking of a LinkedIn game I'm a little obsessed about xD One session per day just wasn't enough.
- ✅ 7x7 grid randomly generated
- 🎯 Goal: place 7 flowers (🌸) following the rules
- 🧩 Dynamically generated connected color regions
- 🚫 Flowers cannot touch each other (not even diagonally)
- 🤖 Hint button to reveal a correct flower
- 🔁 Buttons for Check, Clear, and New Puzzle
- Each row, column, and colored region must contain exactly one flower (🌸).
- Flowers cannot touch each other, not even diagonally.
- Click a cell to toggle between: empty → ❌ → 🌸 → empty.
- Use the buttons to check the solution, clear the grid, or get a hint.
- Python 3.x
Save the script as .py and run it with:
python flower_puzzle.pygenerate_flower_solution(): generates a valid flower arrangementcreate_connected_regions(): builds connected regions around flowersredraw_canvas(): draws the grid and updates symbolscheck_solution(): checks whether the solution meets the constraints
WIP
Created with passion by Irene de Cesare.
Special thanks to ChatGPT (by OpenAI) for providing design suggestions during development and writing this README xD.