Project for course 1DV608 - Webprogramming with PHP
Application requires a SQL database in order to function
Author: Petko Gerdzhikov
- Application must represent a playable game of Hangman
- Application should be user-friendly
- Application should guide the user with messages
- Application should avoid unnecessary input by validation
- Application should follow web standarts
- Application should support the possiblity for users to add their own words with the help of a data base
- Application presents the main menu page
- User selects an option
- Play
- New game
- Rules
- Submit word
- Application provides the appropriate page
- Application provides the game screen
- Application presents the hidden word with "_" characters
- User inputs a letter from the displayed alphabet
- Application gives a response
- Shows the letter in the hidden word, does not increment remaining guesses
- Decrements the remaining guesses, modifies the ASCII animation
- Application gives a message when the player has won or lost
- User has run out of guesses or has guessed the word correctly
- User returns to main menu
- User presses Give me a new word!
- User presses Play!
- Application provides a new hidden word
- Application provides the rules page
- Application provides the submit form
- User inputs the word he/she wishes to add
- Application validates the input
- Application provides a responce
- Success responce - word has been added to database
- Error responce - word has not been added to database
- User clicks on 'A'
- Application decrements guesses or shows the places of 'A' in word
- User clicks on 'A'
- Application gives a message "Already entered that letter!" No change in guesses is made.
- User manually modifies the URL with letter=1
- Application gives a message "You are trying to enter a non-letter!" No change in guesses is made.
- User inputs asd in submit form and clicks Submit
- Application gives a message "Word must be between 4 and 8 characters." Word is not added to data base.
- User inputs thisistenn in submit form and clicks Submit
- Application gives a message "Word must be between 4 and 8 characters." Word is not added to data base.
- User leaves the input field empty and clicks Submit
- Application gives a message "Only english letters allowed!" Word is not added to data base.
- User inputs test1 and clicks Submit
- Application gives a message "Only english letters allowed!" Word is not added to data base.
- Upload files to web server
- Edit the information in Settings.php accourding to SQL database parameters