Skip to content

Instantly share code, notes, and snippets.

Created December 4, 2012 10:02
Show Gist options
  • Save anonymous/4202342 to your computer and use it in GitHub Desktop.
Save anonymous/4202342 to your computer and use it in GitHub Desktop.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author calbrecht
*/
public class blockCounter {
private int[][] solidGameField;
private int sumHeightCounter;
private void heightCounter()
{
sumHeightCounter = 0;
for (int i=0; i<solidGameField.length; i++)
{
for (int j=0; j<solidGameField[0].length; j++)
{
if (solidGameField[i][j] != 0 )
{
sumHeightCounter += solidGameField[j].length;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment