Don't show them, don't allow the user to access them. your 10x10 field would become internally 12x12), which are empty. map = (num > threshold) ? 9 : 0 Īnd last but not least a common trick for board games: Surround your board with an invisible border of one field (e.g. learn to use the ternary operator, e.g.don't write int r, c at the beginning of the method, just initialize the vars in the loop: for(int c=.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |