Thursday, 24 May 2012

25/May - End

Today i put my first version of my program into python. It had many bugs.
This was my first run after writing it out. After this i went back to my code and found that i had repeated one of my statements, on accident. I then removed the mistake and ran the program again.


This time i found a typo in my code. I now realize i am going to have a lot of these that i will have to proofread my code a lot.


Something good did come out of this test as i did get a chance to test my unexpected boundary cases, which seem to be in working order. Hooray!
I found what was causing the error and all it was, was a simple (x).



I then fixed this and tested my program again. The program seems to run! It has working inputs and tells the user if the guess is in the word or not but does not end once finishing the word. The program will need a lot of work still to be done on it but this is a great step for my assessment as i now know that my program kind of works.




==================================EDIT==================================

I tested my program with the word "hi" and found out that my program does end, it just doesn't recognize double letters in a word. I knew this was going to be a problem but I will find a way around this. The program also tells the user when they loose, which is great because it means it is working properly. If the user gets 12 guesses wrong it tells the user they loose and what the word was.

25/May - Start

This lesson i plan to put my algorithm v2 into python for a test. I realize it will have many bugs i will have to fix.