Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setNumBombs() {
- int acc = 0;
- for (int i=0; i < this.neighbors.size(); i++) {
- if (this.neighbors.get(i).isMine) {
- acc++;
- }
- }
- this.numBombs = acc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement