AIsOfCatan.HumanAgent.hasRes C# (CSharp) Method

hasRes() private method

private hasRes ( IGameState state, Resource res, int amount = 1 ) : bool
state IGameState
res Resource
amount int
return bool
        private bool hasRes(IGameState state, Resource res, int amount = 1)
        {
            return state.GetOwnResources().Count(r => r == res) >= amount;
        }