src/gui/GUI.java
public static void placeChecker(Color color, int row, int col) {
        String colorString = String.valueOf(color).charAt(0) + String.valueOf(color).toLowerCase().substring(1);
        int xOffset = 75 * col;
        int yOffset = 75 * row;
        ImageIcon checkerIcon = new ImageIcon(ResourceLoader.load("images/" + colorString + ".png"));

        JLabel checkerLabel = new JLabel(checkerIcon);
        checkerLabel.setBounds(27 + xOffset, 27 + yOffset, checkerIcon.getIconWidth(), checkerIcon.getIconHeight());
        layeredGameBoard.add(checkerLabel, 0, 0);

        undoCheckerLabels.push(checkerLabel);

        try {
            if (gameParameters.getGameMode() == GameMode.AI_VS_AI) {
                Thread.sleep(Constants.AI_MOVE_MILLISECONDS);
                frameMainWindow.paint(frameMainWindow.getGraphics());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
// It places a checker on the board.
It places a checker on the board.
It places a checker on the board .
public static void placeChecker(Color color, int row, int col) {
        String colorString = String.valueOf(color).charAt(0) + String.valueOf(color).toLowerCase().substring(1);
        int xOffset = 75 * col;
        int yOffset = 75 * row;
        ImageIcon checkerIcon = new ImageIcon(ResourceLoader.load("images/" + colorString + ".png"));
        JLabel checkerLabel = new JLabel(checkerIcon);
        checkerLabel.setBounds(27 + xOffset, 27 + yOffset, checkerIcon.getIconWidth(), checkerIcon.getIconHeight());
        layeredGameBoard.add(checkerLabel, 0, 0);
        undoCheckerLabels.push(checkerLabel);
        try {
            if (gameParameters.getGameMode() == GameMode.AI_VS_AI) {
                Thread.sleep(Constants.AI_MOVE_MILLISECONDS);
                frameMainWindow.paint(frameMainWindow.getGraphics());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
public static void placeChecker ( Color color , int row , int col ) { String colorString = String . valueOf ( color ) . charAt ( 0 ) + String . valueOf ( color ) . toLowerCase ( ) . substring ( 1 ) ; int xOffset = 75 * col ; int yOffset = 75 * row ; ImageIcon checkerIcon = new ImageIcon ( ResourceLoader . load ( "images/" + colorString + ".png" ) ) ; JLabel checkerLabel = new JLabel ( checkerIcon ) ; checkerLabel . setBounds ( 27 + xOffset , 27 + yOffset , checkerIcon . getIconWidth ( ) , checkerIcon . getIconHeight ( ) ) ; layeredGameBoard . add ( checkerLabel , 0 , 0 ) ; undoCheckerLabels . push ( checkerLabel ) ; try { if ( gameParameters . getGameMode ( ) == GameMode . AI_VS_AI ) { Thread . sleep ( Constants . AI_MOVE_MILLISECONDS ) ; frameMainWindow . paint ( frameMainWindow . getGraphics ( ) ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } }
It places a checker on the board.
It places a checker on the board .