lundi 26 octobre 2015

How to lose in Android/Java when coming back to a box?

I'm working in a project. This works like this:

When you are in a box, if you click in another box right next to it you can continue. If that box had been marked, then you loose. It looks pretty simple but the only way I know to do this is with "if". "If I'm in a box (Z) and I click on another box X, O, or Y, then that box gets marked". The problem comes that I have to make as many "if" as boxes there are, and my question is: is there any other way to make it easier?

I'd appreciate any help :)

Aucun commentaire:

Enregistrer un commentaire