Hi guys,
so I seen a challenge online and it looked like a challenge I could get done in 30 minutes to an hour but clearly not :(
I made a hangman program with a sort of AI or computer guesses,pretty much you pick a word in your head with the length asked by the computer,the computer will then try narrow down the words given the information you supply it eventually (hopefully) guessing the word.
so my question(s), First I am happy (I guess) that I got the code working I spent a full day on it 12 hours,I am not happy with the amount of time I spent on it it's kind of demotivating I honestly thought I could have got this done in under an hour or an hour max,is it bad it took me approx 12 hours to complete this task?
second does this code look messy(spaghetti code), to me it does it looks very bloated and personally I thought it wouldn't take 600 lines of code to get it done I expected maybe half that at most,I could have used classes but opted not to and just use functions instead
some functions are badly written and had to write other functions that accomplished the same or similar task,also I personally think my naming of variables are pretty weak and don't describe what exactly they are doing(in other words pretty vague), also I may have too many variables which may lead to confusion,
as mentioned I am happy the code is working(for now not fully finished) after all the time I spent on it but not really happy with the outcome,but I guess I can learn from my mistakes,
please tell me your advice please don't be too harsh lol
thanks
(I used pastebin as code well exceeded 9000 char limits) link below
https://pastebin.com/Kg69U0TC