@Override
	public int getCurrentFrame()
	{
		assert !isGameOver();

		int currentFrame = 1;
		for (int i = 0; i < rollCount; i++)
		{
			int pinsKnockedDown = pinsKnockedDownArray[i];

			if (currentFrame == 10)
			{
				return 10;
			}

			if (pinsKnockedDown == 10)
			{
				currentFrame++;
			}
			else if (pinsKnockedDown > 0)
			{
				int j = i + 1;
				if (j < rollCount)
				{
					currentFrame++;
					i++;
				}
			}
		}
		return currentFrame;
	}