Sol.java.
The game originated in France, where it is said to have been invented by an imprisoned nobleman.
It was introduced into England in the late 1700s and has since spread to other parts of the world.




![]() occupied.gif |
![]() empty.gif |
JButtons. Refer to
Lecture 16 on how to create 2 dim array Toolkit.getDefaultToolkit().beep() to make a beep sound.
Make sure that your computer is connected to speakers. Sounds on some notebooks may be too low to be heard.setBorder(BorderFactory.createEmptyBorder()) to remove the border of JButton.
You can read more at How to Use Borders. setEnabled(false) to disable JButtonColor.green.darker() as background color and Color.green.brighter() for highlighting.
You can use any color your like. /** Name: Charles Li * Student ID : 000 000 000 * PIC ID: ccli * E-mail: ccli@math.ucla.edu * Discussion: 1A, John Baber * Assignment: hw3 * * I, Charles Li, pledge that this is my own independent work, which * conforms to the guidelines of academic honesty as described in the * course syllabus. * */