90 likes | 709 Vues
By: Sheldon Ooi Priyanka Wagh. Android Hangman. Continue game. Read about game. Start new game. Exit game. Use hint. Input letter onscreen. Use solution. Input letter keypad. Use Case Diagram. Hangman App. User. CRC Card. Class: Hangman. Responsibilities :
E N D
By: Sheldon Ooi Priyanka Wagh Android Hangman
Continue game Read about game Start new game Exit game Use hint Input letter onscreen Use solution Input letter keypad Use Case Diagram Hangman App User
CRC Card Class: Hangman Responsibilities: • Setting up the initial GUI • Setting up the difficulty levels • Setting up the words for the difficulty levels • Exit the game • Outputting word when user gives up • Saving the game • Initiating the game • Running the game • Validating the input characters • Showing the result of the validation • Miscellaneous options • Setting up music • Setting up the 'about' text • Collaborators: • Priyanka • Sheldon
Hangman Brief • This Android app is a game made to simulate the classical game of Hangman; in which there will be a 'questioner' who will present the player with a word whose letters are blanked out, and the player will then have to guess what the word is correctly. A wrong guess would result in the player's avatar in the game, a stick figure, getting closer and closer to be 'hanged'. Hence, the eponymous name of the game. • In this Android version, the app takes on the role of the 'questioner', with the player (or the user) allowed to choose the difficulty he (or she) wishes. The app assumes that longer words are more difficult, thus, the higher the difficulty, the longer the word given towards the player. The rest of the game just follows the pen-and-paper version. • Unlike the pen-and-paper version however, this Android Hangman lacks the ability to come up with new words, and thus is somewhat limited in the sense that the words 'questioned' are all hard-coded into the app itself.
Lessons Learned / Significance / Coolness / Uniqueness • The original draw of this idea was to somehow implement the Hangman game with the ability to generate words on its own; we eventually found out that such an algorithm would probably be quite costly and difficult to implement. However, this being the first Android app we develop, we hope that our subsequent ones would rely less on hard-coded data. • While not uniquely significant on its own, this is our first venture into the realm of Android apps, so it was an interesting and educational journey into XML-style documents, as well as a refresher course of sorts in Java (having spent most of the semester coding in C).
Sources and References • http://downloads.khinsider.com/game-soundtracks/album/heroes-of-might-magic-3/ • For the music. • http://javascript.about.com/library/blhang3.htm • For the hangman images. • http://kronox.org/documentacion/Hello.Android.new.pdf • As an excellent source of reference.