@ -475,6 +475,17 @@ public class AIGridGUI extends JPanel {
}
highlightCells(cell, 0);
if(e.getButton() == MouseEvent.BUTTON3) {
//Toggle whether ship placement is vertical or horizontal.
vertical = !vertical;
for(BSButton bsb : buttons) {
if(bsb.getCellContents() == null) {
bsb.setBorder(defaultBorder);
public void mouseExited(MouseEvent e) {