src/demo/TicTacToe.java
public void actionPerformed(ActionEvent e) {
        if (e.getSource() == noughtRadioButton) humanPlayerRole = PlayerRole.NOUGHT;
        if (e.getSource() == autoRadioButton) humanPlayerRole = null;
        if (e.getSource() == crossRadioButton) humanPlayerRole = PlayerRole.CROSS;
    }
/**
     * Handles action taken in radio button panel to choose game mode.
     *
     * @param e action event originated from radio button panel.
     */
Handles action taken in radio button panel to choose game mode.
@param e action event originated from radio button panel.
Handles action taken in radio button panel to choose game mode . @param e action event originated from radio button panel .
public void actionPerformed(ActionEvent e) {
        if (e.getSource() == noughtRadioButton) humanPlayerRole = PlayerRole.NOUGHT;
        if (e.getSource() == autoRadioButton) humanPlayerRole = null;
        if (e.getSource() == crossRadioButton) humanPlayerRole = PlayerRole.CROSS;
    }
public void actionPerformed ( ActionEvent e ) { if ( e . getSource ( ) == noughtRadioButton ) humanPlayerRole = PlayerRole . NOUGHT ; if ( e . getSource ( ) == autoRadioButton ) humanPlayerRole = null ; if ( e . getSource ( ) == crossRadioButton ) humanPlayerRole = PlayerRole . CROSS ; }
Handles action taken in radio button panel to choose game mode.
Handles action taken in radio button panel to choose game mode .