- Implemented multiple users, including a selection dialog and automatic preference saving and loading.

- Integrated the ANN with the game. The network now predicts a user move, completely ignores it, and trains itself on the players actual move. This integration also included implementing two new functions. The first translates a board state to a boolean array to correspond with input nodes. The second translates a move to a boolean array to correspond with output nodes.
This commit is contained in:
Marshall
2012-04-29 03:22:19 -04:00
parent dc11e2c48b
commit 15ed56134e
6 changed files with 274 additions and 65 deletions

View File

@@ -14,8 +14,7 @@ public class MainFrame extends JFrame {
private static final long serialVersionUID = 1L;
public static void main(String[] args) {
MainFrame mainFrame = new MainFrame();
mainFrame.playGame();
new UserChooserFrame();
}
private BoardPanel bp;
@@ -24,9 +23,10 @@ public class MainFrame extends JFrame {
private TileSelectionPanel tp;
ScorePanel sp;
public MainFrame() {
public MainFrame(String name) {
super("CS8803 Project 4");
referee = new Referee(this);
referee = new Referee(this, name);
init();
@@ -35,6 +35,7 @@ public class MainFrame extends JFrame {
setLocationRelativeTo(null);
setVisible(true);
playGame();
}
public ScorePanel getScorePanel() {