A collection of coding challenges for Grasshopper components.
Using pip:
pip install git+https://github.com/haklee/grasshopper-component-challenges.gitOr download the ZIP from the repository.
Access test cases like this:
# Access test cases
from grasshopper_challenges.testcases import addition_easy
print(addition_easy.tc_a) # Test case inputs A
print(addition_easy.tc_b) # Test case inputs BOr access judges like this:
# Use judges
from grasshopper_challenges.judges import addition_easy
result = addition_easy.judge(1, 2) # Example usage
print(result)# Package structure (installed):
grasshopper_challenges/
├── __init__.py
├── testcases/ # Test case data
└── judges/ # Judge functions
# Development repository structure:
├── grasshopper_challenges/ # Main package
├── docs/ # Documentation (dev only)
├── problems/ # .ghx files (dev only)
├── setup.py # Package configuration
├── pyproject.toml # Modern packaging config
└── README.md # This file