Commit c13a89a3 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Final version.

parent a9286843
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
Greedy Brain	100	100	16419
gyuh	15	10	6103
kjhgj	15	10	6070
	15	10	5869
@@ -7,4 +8,3 @@ Simple Brain 15 10 1781
hoooodnbjeijohgjg	15	10	1761
Ari	15	10	1314
	15	10	1215
Greedy Brain	15	10	1078
+8 −0
Original line number Diff line number Diff line
<component name="ArtifactManager">
  <artifact type="jar" name="sge_dist:jar">
    <output-path>$PROJECT_DIR$/classes/artifacts/sge_dist_jar</output-path>
    <root id="archive" name="sge_dist.jar">
      <element id="module-output" name="sge_dist" />
    </root>
  </artifact>
</component>
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="JavadocGenerationManager">
    <option name="OUTPUT_DIRECTORY" value="$USER_HOME$/Desktop/JavaDoc" />
    <option name="OPTION_DOCUMENT_TAG_USE" value="true" />
    <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="true" />
  </component>
  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
    <output url="file://$PROJECT_DIR$/classes" />
  </component>
+79 −112
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ArtifactsWorkspaceSettings">
    <artifacts-to-build>
      <artifact name="sge_dist:jar" />
    </artifacts-to-build>
  </component>
  <component name="ChangeListManager">
    <list default="true" id="78671b20-6a1e-42c8-be28-50b7f38fa7ff" name="Default Changelist" comment="">
      <change afterPath="$PROJECT_DIR$/.idea/uiDesigner.xml" afterDir="false" />
      <change afterPath="$PROJECT_DIR$/.idea/artifacts/sge_dist_jar.xml" afterDir="false" />
      <change afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/Brain/smarterBrain.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/.highscores.db" beforeDir="false" afterPath="$PROJECT_DIR$/.highscores.db" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/.idea/modules.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/sg_dist.iml" beforeDir="false" afterPath="$PROJECT_DIR$/sge_dist.iml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/Brain/Brain.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/Brain/Brain.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/Brain/lazyBrain.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/Brain/lazyBrain.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/Brain/simpleBrain.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/Brain/simpleBrain.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGame/CircleColor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/CircleColor.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGame/CircleRolloverEvent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/CircleRolloverEvent.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGame/GUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/GUI.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGame/SelfAwareCircle.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/SelfAwareCircle.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGame/SelfAwareListener.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/SelfAwareListener.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGame/sg.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/sge.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/highScores/highScore.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/highScores/highScore.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/CircleColor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/CircleColor.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/CircleRolloverEvent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/CircleRolloverEvent.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/GUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/GUI.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/SelfAwareCircle.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/SelfAwareCircle.java" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/sge.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/sge.java" afterDir="false" />
    </list>
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -43,12 +48,18 @@
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="aspect.path.notification.shown" value="true" />
    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1548371024044" />
    <property name="project.structure.last.edited" value="Project" />
    <property name="project.structure.proportion" value="0.0" />
    <property name="project.structure.side.proportion" value="0.0" />
    <property name="project.structure.last.edited" value="Artifacts" />
    <property name="project.structure.proportion" value="0.15" />
    <property name="project.structure.side.proportion" value="0.2" />
    <property name="run.code.analysis.last.selected.profile" value="pProject Default" />
    <property name="settings.editor.selected.configurable" value="preferences.keymap" />
  </component>
  <component name="RecentsManager">
    <key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
      <recent name="edu.bu.ec504.spr19" />
      <recent name="edu.bu.ec504.spr19.sameGameTris" />
    </key>
  </component>
  <component name="RunManager">
    <configuration name="EC504 SameGameTris" type="Application" factoryName="Application">
      <option name="MAIN_CLASS_NAME" value="edu.bu.ec504.spr19.sameGameTris.sge" />
@@ -69,58 +80,90 @@
      <option name="presentableId" value="Default" />
      <updated>1548370618181</updated>
      <workItem from="1548370619328" duration="375000" />
      <workItem from="1580056843261" duration="15506000" />
      <workItem from="1580056843261" duration="20889000" />
    </task>
    <task id="LOCAL-00001" summary="Apparently working version.">
      <created>1580084914114</created>
      <option name="number" value="00001" />
      <option name="presentableId" value="LOCAL-00001" />
      <option name="project" value="LOCAL" />
      <updated>1580084914114</updated>
    </task>
    <option name="localTasksCounter" value="2" />
    <servers />
  </component>
  <component name="TypeScriptGeneratedFilesManager">
    <option name="version" value="1" />
  </component>
  <component name="VcsManagerConfiguration">
    <MESSAGE value="Apparently working version." />
    <option name="LAST_COMMIT_MESSAGE" value="Apparently working version." />
  </component>
  <component name="WindowStateProjectService">
    <state x="841" y="354" key="#Project_Structure" timestamp="1580086148601">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="841" y="354" key="#Project_Structure/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580086148601" />
    <state x="744" y="354" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1580060472495">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="744" y="354" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580060472495" />
    <state x="998" y="407" key="#com.intellij.ide.util.MemberChooser" timestamp="1580069715470">
    <state x="998" y="407" key="#com.intellij.ide.util.MemberChooser" timestamp="1580086367455">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="998" y="407" key="#com.intellij.ide.util.MemberChooser/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580069715470" />
    <state x="998" y="407" key="#com.intellij.ide.util.MemberChooser/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580086367455" />
    <state x="980" y="473" key="#com.intellij.ide.util.PackageChooserDialog" timestamp="1580089168186">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="980" y="473" key="#com.intellij.ide.util.PackageChooserDialog/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580089168186" />
    <state x="-881" y="453" key="#com.intellij.ide.util.TreeClassChooserDialog" timestamp="1580085697611">
      <screen x="-2560" y="0" width="2560" height="1440" />
    </state>
    <state x="-881" y="453" key="#com.intellij.ide.util.TreeClassChooserDialog/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580085697611" />
    <state x="822" y="379" key="#com.intellij.openapi.keymap.impl.ui.EditKeymapsDialog" timestamp="1580063056139">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="822" y="379" key="#com.intellij.openapi.keymap.impl.ui.EditKeymapsDialog/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580063056139" />
    <state x="699" y="23" key="#com.intellij.refactoring.rename.AutomaticRenamingDialog" timestamp="1580062444879">
    <state x="937" y="450" key="#com.intellij.refactoring.memberPullUp.PullUpDialog" timestamp="1580090901945">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="699" y="23" key="#com.intellij.refactoring.rename.AutomaticRenamingDialog/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580062444879" />
    <state x="937" y="450" key="#com.intellij.refactoring.memberPullUp.PullUpDialog/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580090901945" />
    <state x="1006" y="601" key="#com.intellij.refactoring.move.moveClassesOrPackages.MoveClassesOrPackagesDialog.packages" timestamp="1580089169702">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="1006" y="601" key="#com.intellij.refactoring.move.moveClassesOrPackages.MoveClassesOrPackagesDialog.packages/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580089169702" />
    <state x="699" y="23" key="#com.intellij.refactoring.rename.AutomaticRenamingDialog" timestamp="1580087575121">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="699" y="23" key="#com.intellij.refactoring.rename.AutomaticRenamingDialog/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580087575121" />
    <state x="-815" y="390" key="#xdebugger.evaluate" timestamp="1580069192111">
      <screen x="-2560" y="0" width="2560" height="1440" />
    </state>
    <state x="-815" y="390" key="#xdebugger.evaluate/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580069192111" />
    <state x="1025" y="555" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1" timestamp="1580057022061">
    <state x="1025" y="555" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1" timestamp="1580087667145">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="1025" y="555" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580057022061" />
    <state x="1025" y="292" key="CommitChangelistDialog2" timestamp="1580084886432">
    <state x="1025" y="555" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580087667145" />
    <state x="1025" y="292" key="CommitChangelistDialog2" timestamp="1580091093422">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="1025" y="292" key="CommitChangelistDialog2/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580084886432" />
    <state width="2013" height="271" key="GridCell.Tab.0.bottom" timestamp="1580084886452">
    <state x="1025" y="292" key="CommitChangelistDialog2/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580091093422" />
    <state width="2013" height="271" key="GridCell.Tab.0.bottom" timestamp="1580091093452">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state width="2013" height="271" key="GridCell.Tab.0.bottom/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580084886452" />
    <state width="2013" height="271" key="GridCell.Tab.0.center" timestamp="1580084886452">
    <state width="2013" height="271" key="GridCell.Tab.0.bottom/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580091093452" />
    <state width="2013" height="271" key="GridCell.Tab.0.center" timestamp="1580091093451">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state width="2013" height="271" key="GridCell.Tab.0.center/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580084886452" />
    <state width="2013" height="271" key="GridCell.Tab.0.left" timestamp="1580084886451">
    <state width="2013" height="271" key="GridCell.Tab.0.center/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580091093451" />
    <state width="2013" height="271" key="GridCell.Tab.0.left" timestamp="1580091093450">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state width="2013" height="271" key="GridCell.Tab.0.left/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580084886451" />
    <state width="2013" height="271" key="GridCell.Tab.0.right" timestamp="1580084886452">
    <state width="2013" height="271" key="GridCell.Tab.0.left/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580091093450" />
    <state width="2013" height="271" key="GridCell.Tab.0.right" timestamp="1580091093451">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state width="2013" height="271" key="GridCell.Tab.0.right/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580084886452" />
    <state width="2013" height="271" key="GridCell.Tab.0.right/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580091093451" />
    <state width="2013" height="466" key="GridCell.Tab.1.bottom" timestamp="1580074485214">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
@@ -137,10 +180,14 @@
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state width="2013" height="466" key="GridCell.Tab.1.right/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580074485214" />
    <state x="-1131" y="242" key="SettingsEditor" timestamp="1580057819894">
    <state x="-1131" y="242" key="SettingsEditor" timestamp="1580085716244">
      <screen x="-2560" y="0" width="2560" height="1440" />
    </state>
    <state x="-1131" y="242" key="SettingsEditor/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580057819894" />
    <state x="-1131" y="242" key="SettingsEditor/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580085716244" />
    <state x="1046" y="429" key="Vcs.Push.Dialog.v2" timestamp="1580084921310">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
    <state x="1046" y="429" key="Vcs.Push.Dialog.v2/0.23.2560.1337/-2560.0.2560.1440@0.23.2560.1337" timestamp="1580084921310" />
    <state x="934" y="525" key="com.intellij.ide.util.TipDialog" timestamp="1580056854823">
      <screen x="0" y="23" width="2560" height="1337" />
    </state>
@@ -151,90 +198,10 @@
      <breakpoints>
        <line-breakpoint enabled="true" type="java-line">
          <url>file://$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/sge.java</url>
          <line>125</line>
          <option name="timeStamp" value="8" />
        </line-breakpoint>
        <line-breakpoint enabled="true" type="java-line">
          <url>file://$PROJECT_DIR$/src/edu/bu/ec504/spr19/sameGameTris/sge.java</url>
          <line>83</line>
          <line>81</line>
          <option name="timeStamp" value="9" />
        </line-breakpoint>
      </breakpoints>
    </breakpoint-manager>
  </component>
  <component name="masterDetails">
    <states>
      <state key="ArtifactsStructureConfigurable.UI">
        <settings>
          <artifact-editor />
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="FacetStructureConfigurable.UI">
        <settings>
          <last-edited>No facets are configured</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="GlobalLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="JdkListConfigurable.UI">
        <settings>
          <last-edited>1.8</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ModuleStructureConfigurable.UI">
        <settings>
          <last-edited>sg_dist</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
                <option value="0.6" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>
 No newline at end of file
+9 −8
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ package edu.bu.ec504.spr19.Brain;

import edu.bu.ec504.spr19.sameGameTris.GUI;

/*
/**
 * The Brain is the artificial intelligence that tries to come up with the
 * best possible moves for the current position.
 * 
@@ -13,23 +13,24 @@ public abstract class Brain implements Runnable {
	protected final GUI myGUI; // the GUI class attached to this Brain
	
	// methods
	/*
	/**
	 * Constructor - records the GUI attached to this brain
	 */
	Brain(GUI myGUI) { this.myGUI = myGUI; }
	
	/*
	 * Signals that the brain should close down
	/**
	 * This is called when the Brain is being asked to close down.
	 * It should clean up any data structures and/or signal threads to close, etc.
	 */
	public abstract void allDone();
	
	/*
	 * Returns the name of the brain
	/**
	 * @return the name of the brain
	 */
	public abstract String myName();
	
	/* 
	 * Starts up the thread
	/**
	 * Starts the Brain a'thinking.
	 * @see java.lang.Runnable#run()
	 */
	public abstract void run();
Loading