1. A storage medium storing a game program to be executed by a computer in a game apparatus comprising an input device for detecting positions designated by a player on an input surface, wherein a storage device of the game apparatus stores shape data indicating, for a plurality of reference patterns, a shape of a reference pattern among the plurality of reference patterns, the storage medium storing the game program for the computer to function as: graphic calculation means for calculating an input graphic drawn on the input surface by using the positions detected by the input device; degree or similarity calculation means or calculating, for each of the plurality of reference patterns, a degree of similarity between a shape of one of the plurality of reference patterns indicated by the shape data stored in the storage device and a shape of the input graphic; reference value setting means for setting a reference value to each of the plurality of reference patterns; identification means for identifying the shape of the input graphic from among the plurality of reference patterns by using a result obtained by performing a predetermined calculation for each of the plurality of reference patterns through using the degree of similarity and the reference value set to the reference pattern corresponding to the degree of similarity; and game processing means for performing a game process in accordance with the shape identified by the identification means.