F. Discussion

Our group mainly focused on gambling games such as ‘Black Jack’ and ‘Wheel of Fortune’. We wanted a non-gambling game for our last game, so we came up with ‘Hangman’. When we thought about this game, we expected that it is easy to write a code. However, it needed more complicated logics than we thought. For a specific obstacle, Hangman required many inputs from players, so we needed to think about the possibilities that the players typed invalid inputs. It was not easy to figure out how many invalid cases were existed. After figuring out the possibilities, we realized that it needed the MATLAB functions that we had not learned in class. We had a help from MATLAB web site to solve the problem. ‘isempty’ and ‘isletter’ were worked for the problem.