Commit Graph

8 Commits

Author SHA1 Message Date
Woody Folsom
20f172c95a Merge branch 'master' of woodyfolsom.net:/opt/git/cs8803p4
Conflicts:
	src/model/comPlayer/MonteCarloComPlayer.java
2012-04-29 15:02:06 -04:00
Woody Folsom
0721922990 class left out of previous commit. 2012-04-29 14:59:58 -04:00
Woody Folsom
21e5d89447 Implemented naive Monte Carlo move generator (simulates 10 random moves for 3 turns by each player).
Consequently, it performs strictly worse than Alpha-Beta, but usually avoids setting players up for an easy capture,
unlike Alpha-Beta.
2012-04-29 14:59:25 -04:00
Marshall
fe341545aa Merge branch 'master' of woodyfolsom.net:/opt/git/cs8803p4 2012-04-29 14:20:13 -04:00
Marshall
60a842d729 - Reorganized the constructors in Move.java.
- Made the getBoardState method in Referee.java static.
- Created NeuralNetworkPlayer.java, though I don't know how to make the computer use it.
- Updated the Player interface to include passing the PlayerModel. Most of the current com agents ignore the data, but it is now available.
- Updated the train function in PlayerModel.java.
2012-04-29 14:19:10 -04:00
Woody Folsom
744ceb02f7 Fixed index out of bounds.
Implemented CellPointer equals, hashcode.
2012-04-29 13:40:27 -04:00
Woody Folsom
c53ff75ea4 Added configurable computer player - use 'com=random', 'com=minimax' etc as cmd-line args.
Default is AlphaBeta.
Updated ActionListener for UserChooserFrame so that selecting from the list (or typing a new name and pressing RETURN) also triggers the action.
Added the player and computer algorithm names to the title bar e.g. "Bob vs. Alpha-Beta".
2012-04-29 10:18:15 -04:00
Marshall
a6af6df132 - Reorganized packages so that the computer agents are inside the model package.
- Added support for the player model inside Referee.java; high scores should now persist over a single execution of the program.
- Refactored PlayerModel.java to support game logging. All games are now logged so that we can track overall progress.
- Added scaffolding to allow saving and importing of PlayerModel.java. It is not yet functional, but it will be with two function implementations and then the appropriate calls.
2012-04-28 19:18:28 -04:00