A game machine comprises: a chassis having a top plate and a section plate arranged at a lower surface side of the top plate to make space; a traveling body arranged in the space and capable of traveling along an upper surface of the section plate; and a sensor outputting signal corresponding to a position of the traveling body, the sensor having a flexible sheet-like detection portion that is laid on the section plate and a substrate portion being provided with an electric circuit component for detecting the position using the detection portion and connected with an end portion of the detection portion. In the game machine, the end portion of the detection portion of the sensor is bent along a side surface of the chassis from a circumferential edge portion of the section plate, and the substrate portion is attached to the chassis at the side surface. (Y) C/l cu (D T- (Y) d Ll- CY) -0 CY) (Y) oD-- 0 CY) CY) 00 CY) C/j 0-