Skip to content

Instantly share code, notes, and snippets.

View flowxcode's full-sized avatar
🦁
flowing

flowxcode

🦁
flowing
View GitHub Profile
@flowxcode
flowxcode / garden_puzzle_z3.py
Created November 19, 2020 13:34 — forked from shahril96/garden_puzzle_z3.py
Using Z3 Theorem Solver to solve for Gardens Puzzle
import sys
import itertools
from z3 import *
#
# Original puzzle
#
'''
Five friends have their gardens next to one another, where they grow three kinds of crops: