|
@ -41,12 +41,12 @@ public class Cell extends JButton { |
|
|
g2.setPaint(Color.white); |
|
|
g2.setPaint(Color.white); |
|
|
switch (playerID) { |
|
|
switch (playerID) { |
|
|
case 1: |
|
|
case 1: |
|
|
g2.drawOval(5, 5, 90, 90); |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
g2.drawLine(5, 5, 90, 90); |
|
|
g2.drawLine(5, 5, 90, 90); |
|
|
g2.drawLine(90, 5, 5, 90); |
|
|
g2.drawLine(90, 5, 5, 90); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
g2.drawOval(5, 5, 90, 90); |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|