Constructor
new UtilityConsideration(configopt)
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | <optional> | Consideration configuration. Properties
|
- Source
Classes
Methods
evaluate(context) → {Object}
Evaluates this consideration against the given context.
Parameters:
| Name | Type | Description |
|---|---|---|
context | Object | Game context data. |
- Source
Returns:
Result object containing id, rawInput, normalizedInput, and score.
- Type:
- Object