Skip to main content

Week 8

This past 'week' (holidays) I have completed most of the assessment task including the entire working program. The basis of my program functions with lists storing questions and corresponding answers in another list matching the questions in position. so when I randomly generate a number, I can access the item in the question list of that number as well as the answer corresponding to the same number in the other list. I used a basic counter to keep track of what question number it was given as by adding one to itself after every iteration of the loop. I have been including extensive comments on every part of the code. I encountered a number of bugs and issues within my code as I went along, one of them being that the correct answers were not tracking properly. i identified the problem through the use of a visualiser which helped me see that it wasn't registering the incorrect answers as incorrect, and was able to fix that error from saying 'if answer == answers[question_number] or multiple_choice_answer[question_number]: to  if answer == answers[question_number] or answer == multiple_choice_answer[question_number]:. as I approached the final stages of the development, I helped improve the efficiency of the program by noticing similarities between variables and was able to use the same variable for multiple tasks, sometimes with a simple -1 to help meet what was needed. I also added a rounding mechanic in the percentage calculation as I was testing the program with 3 questions rather than 25. The program functions perfectly, accepting both the answer and the multiple choice letter as responses. the program operates in just 52 lines and I hope to make it mildly more efficient in the coming week as well as write the rest of the questions.

Comments

Popular posts from this blog

Final Post

This past week I've been working on fixing issues with the program to make it run as smoothly as possible. I didn't think I would get the stats for nerds page done and was going to scrap it so I could focus on getting the documentation done and fixing the minor issues so it would be more polished but I decided to do the stats for nerds page anyway and spent the past day and a half working on it. The notable issues from its development were mainly around gathering the data, in which I found some other errors in how I was collecting data such as not updating the data files when quitting the program. But i managed to finish the page as well as the rest of the program. My final solution was reasonably successful in comparison to my proposal and design, the only main things that I wasn't able to achieve was customisation of genome numbers and generation size and stuff like that, but that would have required a lot of digging through files in the libraries I was using to edit th...

Week 17

this week I continued working on the view existing AIs page mostly, having completed most of it, it navigates and runs the AI when selected. this week ill be working on clearing AIs from the system as well as viewing their names, allowing multiple pages, and maybe even display a picture depending on what game it was trained on. however that last one will only be if i have time to work out compatibility with other games in time, as its merely a bonus detail.

Week 16

This week I worked on getting more of the interface and data collection work. I worked mostly on the view existing AIs page, getting the AIs to blit little buttons on the screen for interaction. I had an issue with data storage in text files but was able to fix it since I was writing to the text file when I was viewing it, which made it blank. This week ill continue to work on those pages, hopefully getting some functionality in those pages.