Tuesday, November 25, 2014

Testing Strategy And Plan (complete)

TESTING STRATEGY & PLAN
I will test my quiz to make sure it works while I create it. I will also test it after I have finished coding to make sure it works fully as planned. I shall do the testing myself but I shall also ask Amirali




to test certain parts of it. I shall be a test buddy for Amirali


Here are the tests:-

Test 1:  The program must have clear instructions for the user.

Test 2: The program must be error-free

DONE

Test 3: The program must have meaningful variables.

Test 4: The program must be documented well in the blog so that I can come back to it at a later date to make alterations to it if needed.

DONE

Test 5: The quiz has to be generated in question number order.

DONE

Test 6: The program has to keep a score of all the correctly answered questions.

DONE

Test 7: The program must have an introduction that welcomes the user.

DONE

Test 8: The program must have meaningful questions and answers.

DONE

Test 9: The program must have a game over screen.

Test 10: The program must have a end of quiz screen.


Wednesday, November 19, 2014

Testing Strategy And Plan

TESTING STRATEGY & PLAN
I will test my quiz to make sure it works while I create it. I will also test it after I have finished coding to make sure it works fully as planned. I shall do the testing myself but I shall also ask Amirali to test certain parts of it. I shall be a test buddy for Amirali


Here are the tests:-

Test 1:  The program must have clear instructions for the user.

Test 2: The program must be error-free

Test 3: The program must have meaningful variables.

Test 4: The program must be documented well in the blog so that I can come back to it at a later date to make alterations to it if needed.

Test 5: The quiz has to be generated in question number order.

Test 6: The program has to keep a score of all the correctly answered questions.

Test 7: The program must have an introduction that welcomes the user.

Test 8: The program must have meaningful questions and answers.

Test 9: The program must have a game over screen.

Test 10: The program must have a end of quiz screen.



TESTING
Add screenshots to each of the test items above as evidence that you have tested them. For each test, explain the various states of the program (e.g. show what happens when the score increases).



EVALUATE

In your blog, evaluate how well your quiz works. What are its strengths? How could you improve it further if you had more time?

My Old Scratch Game





This is a game that i made last year. This was my first actual scratch program. here is a screen shot.
 This is pretty simple. There is three main commands. One to go forward, one to go right and one to go left. there is a bunch of 'if' commands so that when you touch the sides you restart. It also has a second level.

Tuesday, November 11, 2014

The Final Stage Of My Scratch Quizz

This is the completed version of the scratch project i have been working on for a few months now.

I have used a bunch of variables and lists to make the quiz work. A basic explanation of how it works is that when the main character asks the question a message is sent to the other sprites to tell them to change costume to fit the question. It also adds to a variable called 'question' so the behavior of the question sprites changes according to the question. Most of the coding in this quiz is animations and other stuff to make it look and seem nicer and isn't vital. 


Tuesday, October 21, 2014

Scratch Programming Tips 2


Scratch Quiz


This is one of the ways I made my scratch quiz. There were Two ways of making the code for the answer boxes. The one on the left is the better one I made. What i did was I made a variable called 'Answer' so I could add one on to 'Answer' so it changes along with the question that the main sprite is on. The reason for this is so the behavior of the answer boxes when clicked changes accordingly to the question number, So if i were on question 1, answer 'A' may be right but on question 2, answer 'A' may be wrong. This meant that I only had to use 3 answer box sprites for the whole quiz. The code on the right is completely different from the first one. First of all, it has no variable, so what i did for that one was that I made a new sprite for each question and i made different codes for each of them so instead of changing the sprites behavior like the first one did, this one changes the sprite completely! This wasn't as effective because since every question had its own set of 3 sprites, i ended up having to make a total of 15 answer box sprites! I think that the second method is more useful because it requires much less sprites and is much easier to change or spot a problem. Also, the second method was quite buggy and didn't always work properly.    


Tuesday, September 23, 2014

Scratch Programming Tips





This code is the most basic way of making a character count to 10 that there is on scratch. This code tells the sprite to say 1, then when it is done with that, say 2, then 3 and so on. This code will work but it takes up a lot of space and if we wanted the sprite to count to 100 we would have to put 100 commands to make it say each number individually. 
.







This second code does the exact thing as the first one but is more effective and easy to use is several ways. First of all, this code may look complicated but actually is very simple. This code has a variable called 'Counter' and at the start this variable is set to 0 but once the code has started it will be changed to 1 and the sprite will be told to say whatever the variable 'Counter' is at that moment, so the sprite will say 1. This is repeated with a repeat command but the variable 'Counter' is changed to 2, so the sprite will say 2. This is repeated 10 times (until the variable is 10 so the sprite says 10). If i wanted to change the number the sprite is counting to, I would only have to type it in to the repeat command so I could have the sprite count to 189473 and all I would have to do would be to type it, however in the first code, i would have to make 189473 more commands.








if you want to try this please click here