You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 35m 12s logged

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.
0
22

Comments 0

No comments yet. Be the first!