packages/bitprints/src/strategies/rebuild-every-x-floors.ts
Function useStrategy
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useStrategy = (): FiniteStateMachine<TinyTowerRebuildAsapStrategyStates, ITinyTowerRebuildEventData> => {
/**
* Rebuild after 50 floors so we get a golden ticket every time. There is no
* reason that this can't be a function that takes in the above event data
* and makes a decision using more data, but for this example this will do.