lukemerrett / DiplomacyRules

Coding the rules of the Diplomacy board game in F#
MIT License
0 stars 0 forks source link

Seperate helper classes from entry point of MoveTracker #10

Closed lukemerrett closed 8 years ago

lukemerrett commented 8 years ago

In GameLogic.fs we've got MoveTracker, the entry point into the game loop, then the helper classes such as MoveExecutor and MoveValidator. These should be internal types, only MoveTracker needs to be accessible.

type internal MyType and type private MyType work in F# so we can apply the correct accessibility (and ensure internals are visible to the unit tests).