thecommons-urbit / chess

Distribution repo for Urbit Chess app
Other
26 stars 8 forks source link

Refactor `ship-to-move` into state or library #78

Closed ashelkovnykov closed 1 year ago

ashelkovnykov commented 1 year ago

There are multiple identical blocks of code interspersed throughout %chess which manually compute the @p of the ship whose turn it is. At the very least, this should be made into a library function, and ideally this should just be a part of the active-game-state.