Skip to content

Instantly share code, notes, and snippets.

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.