ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/Microscope.java
(Generate patch)

Comparing jsr166/src/test/loops/Microscope.java (file contents):
Revision 1.13 by jsr166, Thu Jan 15 18:34:19 2015 UTC vs.
Revision 1.16 by jsr166, Sat Sep 12 19:09:00 2015 UTC

# Line 174 | Line 174 | public class Microscope extends JPanel {
174                  public synchronized void actionPerformed(ActionEvent e) {
175                      toggleDemoMode();
176                      updateStatus();
177
177                  }});
178  
179          undoButton.addActionListener(new ActionListener() {
# Line 562 | Line 561 | public class Microscope extends JPanel {
561                  return Player.Illegal;
562          }
563  
564 <
566 <        // place a tile without taking opponent tiles
564 >        /** Places a tile without taking opponent tiles. */
565          public void occupy(Player player, int row, int col) {
566              long m = 1L << (row + col * RANKS);
567              long nm = ~m;
# Line 587 | Line 585 | public class Microscope extends JPanel {
585              green_ &= nm;
586          }
587  
588 <        // place a tile, taking all adjacent tiles of opponent
588 >        /** Places a tile, taking all adjacent tiles of opponent. */
589          public void take(Player player, int row, int col) {
590              int k = row + col * RANKS;
591              long dest = 1L << k;
# Line 923 | Line 921 | public class Microscope extends JPanel {
921      }
922  
923      /**
924 <     * Implements a classic all-possible-move search algorith using
924 >     * Implements a classic all-possible-move search algorithm using
925       * ForkJoinTasks.  The move finder is not all that smart. Among
926       * other possible improvements, it could keep a cache of explored
927       * moves and avoid repeating them. This would likely speed it up

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines