Anonymous user
Conway's Game of Life/Java/Swing: Difference between revisions
m
Hardcoded value changed to its variable counterpart.
(Added the Java swing based implementation to cut down on clutter on the main page. (as discussed on the main talk page)) |
m (Hardcoded value changed to its variable counterpart.) |
||
Line 200:
public void addPoint(MouseEvent me) {
int x = me.getPoint().x/
int y = me.getPoint().y/
if ((x >= 0) && (x < d_gameBoardSize.width) && (y >= 0) && (y < d_gameBoardSize.height)) {
addPoint(x,y);
|