Project Update
Building the State System
This update focused on creating the state system used by Project Kobon. The state system stores line arrangements and provides a way to make small changes to them.
- Created state.py and the LineState dataclass to store the angle and offset of each line.
- Added createRandomState(), which generates a random arrangement of k lines.
- Added nudge(), which creates a copy of an arrangement and randomly adjusts one line’s angle or offset.
- Updated main.py to work with the new state system.
- Tested the new functions to ensure line arrangements could be created and modified correctly.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.