Incremental updates. Work in progress to augment Board, Referee, add score for computer player, implement Monte-Carlo simulation.
Renamed Player implementations and changed Player to interface, with the goal of using abstraction to make the human and computer interactions with the game identical for ease of simulation.
This commit is contained in:
@@ -11,9 +11,9 @@ import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
import controller.PlayerController;
|
||||
import controller.TSPMouseListener;
|
||||
|
||||
import model.HumanPlayer;
|
||||
import model.Board.TileColor;
|
||||
|
||||
public class TileSelectionPanel extends JPanel {
|
||||
@@ -26,9 +26,9 @@ public class TileSelectionPanel extends JPanel {
|
||||
private final JLabel red = new JLabel(new ImageIcon(BoardPanel.RED_ICON));
|
||||
private final JLabel yellow = new JLabel(new ImageIcon(
|
||||
BoardPanel.YELLOW_ICON));
|
||||
private final PlayerController pc;
|
||||
private final HumanPlayer pc;
|
||||
|
||||
public TileSelectionPanel(PlayerController pc) {
|
||||
public TileSelectionPanel(HumanPlayer pc) {
|
||||
this.pc = pc;
|
||||
|
||||
initLayout();
|
||||
|
||||
Reference in New Issue
Block a user