compile errors (how do I fix)
I'm trying to complie a tetris game.
I found a pretty small soruce code here:
The Tetris game
I made the three files
Tetris.java
Shape.java
Board.java
i'm using command line javac to compile
shape.java complies fine,
if i put shape.java in a folder called "tetris" and put Tetris.java and Board.java next to the folder, I get a error with this line
Code:
public Board(Tetris parent) {
i also get a complier error in tetris.java on the line
Code:
Board board = new Board(this);
To me the error seems due to the face board.java and tetris.java both have classes that are refering to one another.
is there a way to complie two files at once?
how do I comple???
I found way more complicated tetris games that I got to work, but I really like the code used on this page, because it not too long and the website breaks it down line by line
please help?