Johnny Januan wrote:Hello guys,
I'm trying to create a maze using java reading from a file,
The file is a text file with 1's and 0's. Each group of 4 numbers make a Square(a 1 means there is a wall), for example if I read from the file the sequence 1011, it means that I will have a wall in the north of the square, and in the south and west too.
I'm wondering if there is a way of creating a Square with edges (the walls), because I can't think of any.
Thanks!
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
There are three kinds of actuaries: those who can count, and those who can't.
All things are lawful, but not all things are profitable.
Johnny Januan wrote:I can try to explain it.
However, I'm spanish and the name of the variables are in spanish.
How do I put the piece in the maze, and move it with the keyboard? Do I need to create a separate class called Piece or something like that? And how does the piece know where are the walls, in order to avoid them?
Thanks
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
What's wrong? Where are you going? Stop! Read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|