minesweeper3D in Java

hello, I’m working on a new 3D game Minesweeper. The playing field is a cube. I have a problem. I finished the logical part of the game. I need to open tiles on the playing field(cube). …When i click to a tile, should be appear either mine or number or nothing. The problem is that i dont know how to perform/do this open action. … Can somebody give me an advice, or a good script for it?

thanks

You could use a raycast from the mouscursor en check for collision which triggers an animation.

Could you implement it? if I give the game source code.tell the truth. I coded the graphic in openGL, but a cant move forward…so i need to finish the graphic part.it’s a school project