selectResources

open override fun selectResources(amountNeeded: Int, list: List<Resource>): List<Resource>

Return

the selected list of resources. It may be empty

Parameters

amountNeeded

the amount needed from resources

list

of resources to consider selecting from