Loading src/edu/bu/ec504/spr19/Brain/Brain.java→src/edu/bu/ec504/spr24/Brain/Brain.java +14 −13 Original line number Diff line number Diff line package edu.bu.ec504.spr19.Brain; package edu.bu.ec504.spr24.Brain; import edu.bu.ec504.spr19.sameGameTris.GUI; import edu.bu.ec504.spr24.sameGameTris.GUI; /** * The Brain is the artificial intelligence that tries to come up with the Loading @@ -9,20 +9,16 @@ import edu.bu.ec504.spr19.sameGameTris.GUI; * It typically runs in its own thread so that it will not interfere with other processing. */ public abstract class Brain implements Runnable { // fields // FIELDS protected final GUI myGUI; // the GUI class attached to this Brain // methods /** * A constructor that accepts a parameter representing the GUI interface on which the game is played. */ Brain(GUI myGUI) { this.myGUI = myGUI; } // METHODS /** * This is called when the Brain is being asked to close down (i.e., the game is over). * It should clean up any data structures and/or signal threads to close, etc. * Constructs the brain * @param myGUI A reference to the Graphical User Interface on which the game is being played. */ public abstract void allDone(); Brain(GUI myGUI) { this.myGUI = myGUI; } /** * Each Brain should have a name, which is provided by this method. Loading @@ -30,11 +26,16 @@ public abstract class Brain implements Runnable { */ public abstract String myName(); /** * This is called when the Brain is being asked to close down (i.e., the game is over). * It should clean up any data structures and/or signal threads to close, etc. */ public abstract void allDone(); /** * Starts the Brain a'thinking. * This is the code for making decisions about which circles you Brain selects. * @see java.lang.Runnable#run() */ public abstract void run(); } Loading
src/edu/bu/ec504/spr19/Brain/Brain.java→src/edu/bu/ec504/spr24/Brain/Brain.java +14 −13 Original line number Diff line number Diff line package edu.bu.ec504.spr19.Brain; package edu.bu.ec504.spr24.Brain; import edu.bu.ec504.spr19.sameGameTris.GUI; import edu.bu.ec504.spr24.sameGameTris.GUI; /** * The Brain is the artificial intelligence that tries to come up with the Loading @@ -9,20 +9,16 @@ import edu.bu.ec504.spr19.sameGameTris.GUI; * It typically runs in its own thread so that it will not interfere with other processing. */ public abstract class Brain implements Runnable { // fields // FIELDS protected final GUI myGUI; // the GUI class attached to this Brain // methods /** * A constructor that accepts a parameter representing the GUI interface on which the game is played. */ Brain(GUI myGUI) { this.myGUI = myGUI; } // METHODS /** * This is called when the Brain is being asked to close down (i.e., the game is over). * It should clean up any data structures and/or signal threads to close, etc. * Constructs the brain * @param myGUI A reference to the Graphical User Interface on which the game is being played. */ public abstract void allDone(); Brain(GUI myGUI) { this.myGUI = myGUI; } /** * Each Brain should have a name, which is provided by this method. Loading @@ -30,11 +26,16 @@ public abstract class Brain implements Runnable { */ public abstract String myName(); /** * This is called when the Brain is being asked to close down (i.e., the game is over). * It should clean up any data structures and/or signal threads to close, etc. */ public abstract void allDone(); /** * Starts the Brain a'thinking. * This is the code for making decisions about which circles you Brain selects. * @see java.lang.Runnable#run() */ public abstract void run(); }