-
Notifications
You must be signed in to change notification settings - Fork 0
NaiveOpponent
CodingGlad edited this page Dec 31, 2022
·
3 revisions
This naive artificial opponent is mainly used a test subject. It's moves are based on the Java Random class.
Method used for receiving of a pseudo-random move.
-
Parameters:
game— of current game. - Returns: destination point.
Method for creation of a point in correct format to check its validity.
-
Parameters:
currentPosition— is a current location of ball that's used to make a relative move to it. - Returns: FieldPoint in correct format.
Getter for value of OpponentType.
- Returns: type of OpponentType.
Getter for name of opponent.
- Returns: String name of opponent.
Getter for value of GoalLocation.
- Returns: type of GoalLocationType.