Skip to content

Instantly share code, notes, and snippets.

@TrevorS
Created April 15, 2014 15:30
Show Gist options
  • Save TrevorS/10741919 to your computer and use it in GitHub Desktop.
Save TrevorS/10741919 to your computer and use it in GitHub Desktop.
replaced_display_code.java
p1.clearDrawminoes();
for (Dom d : g.getHand(0).getDoms()) {
p1.addDrawmino(new Drawmino(d));
}
p2.clearDrawminoes();
for (Dom d : g.getHand(1).getDoms()) {
p2.addDrawmino(new Drawmino(d));
}
boardPanel.clearDrawminoes();
FaBoardRep rep = (FaBoardRep) g.getBoard().getRep();
System.out.println("display, leftDoms: " + rep.getLeftDoms());
for (Dom d : rep.getLeftDoms()) {
boardPanel.addLeftDrawmino(new Drawmino(d));
}
System.out.println("display, rightDoms: " + rep.getRightDoms());
for (Dom d : rep.getRightDoms()) {
boardPanel.addRightDrawmino(new Drawmino(d));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment