No person shall keep any billiard room, bowling saloon or ten pin alley in this commonwealth, without first taking from the treasurer of the proper county a license, * * * and no such license shall be granted for a longer period than one year. Any such person keeping such billiard room, bowling saloon or ten pin alley, without license, shall, on conviction thereof in the court of quarter sessions of the proper county, be punished by a fine, not less than the amount of such license, nor more than five hundred dollars, or imprisonment in the county jail for any period not exceeding three months, and costs of prosecution: Provided, That this section shall not be construed to prohibit billiard tables or ten pin alleys connected with hospitals, asylums or other institutions for the relief of the insane and diseased.
72 P.S. § 2937