Soldato
- Joined
- 10 Mar 2006
- Posts
- 3,975
Thinking about how I would implement Minesweeper, when my skills are up to par.
Would a tile be a Class, that you would create instances of to create the area in which to play? You'd presumably have some methods within it to determine at random if it's a mine or a blank tile, to display it's contents when clicked, to determine how many mines are near?
I'm trying to get my head around how you'd practically use classes. What would beyour approach in this case?
Would a tile be a Class, that you would create instances of to create the area in which to play? You'd presumably have some methods within it to determine at random if it's a mine or a blank tile, to display it's contents when clicked, to determine how many mines are near?
I'm trying to get my head around how you'd practically use classes. What would beyour approach in this case?