WAD Ruby TDD Sinatra Assessment 3
Overview
In this assignment you are required to create a Web application based upon the game Wheel of Fortune a UK game show resembling Hangman. The game is to be designed for one player who plays against the computer.
Your version of the game should involve the player trying to guess what the word or phrase is by entering a lettercharacter at a time. Each time the player enters a guess, the computer should return feedback relating to what letters are correct and where in wordphrase they exist. If the player correctly guesses all of the letterscharacters before running out of turns they win. Use the link above to find out more about the game and its rules.
DO NOT use Rails or any other type of programming language. Only use the template provided.
Developing the game
The assessment is to be completed in two stages: Stage 1 involves the design of the game; and Stage 2 involves the implementation coding of a Webbased version of the game using Ruby and Sinatra. At each stage, the building blocks you created in the earlier assignment can be used as part of the design and implementation.
Stage 1 assesses your knowledge and skills in designing Web applications before starting to write code. Whilst aspects of the game have already been started for you in the form of building blocks, your design solution should represent the algorithms implementing the games rules, the look to feel of the game showing the interactive aspects screen layout, interactive process, information flow, and the features to be implemented. Having been introduced to several design techniques during the course, any algorithms should take the form of flow charts or pseudo code structured English, and the interactive aspects should take the form of storyboards, state diagrams, screen mockups andor page flows representing how the game will work.
Note: Your design of the game is to take the form of a report. Your design may contain more features than you plan to implement. In such cases extras marks can be awarded.
Stage 2: assesses your knowledge and skills in implementing Web applications using Ruby and Sinatra based on the design you created in stage 1.
You are not expected to develop a new game from the start. Instead, you are required to implement the Webbased version of the game by using the template provided. Building blocks already developed in stage 1 may also be used.
IMPORTANT: To help you get started the files you must use are already provided. DO NOT rename or use any other files. However ensure you make copies of these files regularly as a backup.
wadwofgen01.rb contains the code which passes the tests
wadwofrun01.rb contains the game engine code
wadwofspec01.rb contains the test specification which your code should pass
It involves downloading the wadwof01.zip file from MyAberdeen and saving it to a new folder on your university H: drive. You should extract the files given above and copy them to a new folder called wof in your workspace. You should then open the wadwofspec01.rb file and replace the name Nigel Beacham with your name and number 123456789 with your student ID number. You should save the file to the same location. You should not change this file, move or rename it thereafter.
Within the wadwofgen01.rb file you should copy and paste all the building blocks you deem necessary into the area denoted by comments.
Note: any additional methods building blocks created must also be placed between the commented area within the wadwofgen01.rb file. The code for the routes must be implemented in the wadwofrun01.rb file between the relevant comments. Details on how to call these methods are covered in the learning materials.
Hint: Uncomment the methods start and finish will call these methods in the wadwofgen01.rb file at run time.
To run the game, ensure the terminal commandline prompt is set to the folder where the files are located. You should then be able to run the game by entering the following command at the command line prompt.
ruby wadcfrun01.rb
In your version, the game of Wheel of Fortune involves the computer randomly selecting a secret word or phrase from a text file see wordfile.txt. You must not change this file, move or rename it.
Good luck!
Marking criteria see grading rubric
Note: A CGS score of A1 will be awarded only if the game is deemed to be outstanding in its design and of a standard eligible for publication on the Web. For this the system should provide all the designed features, contain no spelling grammatical errors, and have an easy to use user interface.
What to submit
A single .zip file, containing all the files needed to run your game application. The zip file must also include a report StudentNameIDreport.pdf containing design details. It should be a single report file and include:
A description of the game and its features what the aim of the game is and what the rules of the game are.
The design of the game, including storyboards, state diagrams, flow charts, pseudo code structured English and an account of the design decisions made how the game will work.
The system requirements and installation instructions i.e. software required to install, run and maintain the game.
How to submit
Your zip file containing the application files and report should be named yourfullnamewadca3.zip NB: replace yourfullname with your full name and submitted electronically to the myAberdeen assignment page by selecting the heading WAD Assignment 3.
IMPORTANT: only zip files submitted to MyAberdeen will be marked. Zip files emailed to the tutor will not be marked.