This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.ArrayList; | |
public class MyAgent extends Agent | |
{ | |
Random r; | |
/** | |
* Constructs a new agent, giving it the game and telling it whether it is Red or Yellow. | |
* | |
* @param game The game the agent will be playing. |