This week we leaned about coding logic and algorithims to make things take decigine based on avalable condition which givies the illusion of thinking.
For software, we used the Arduino IDE
and i used the Arduino itself, the lcd screen, the keypad,
the buzzer, a switch
I wanted to make a calculation game that when you write the write answer the buzzer goes off with a high pitch and if it's wrong it will be low
the first part of the code include the keypad, lcd, wire, libraries and the set up for the keypad and the lcd screen
first it chooses two numbers below 100 to be numbers 1 and 2 then it chooses a random between 1 and 0 to choose the operator if the answer it chooses 1 then it adds 1 and 2 and if the operator is 0 it calculates the difference and then it enters the if condition where it displays the question and waits for the input of the answer if the answer was correct then it displays winner else it displays
i asked my peers with a lot of the errors in my code and most of my problems were solved but mainly i was searching the internet for the errors
i had a lot of challenges where my code wouldn't compile because of syntax issues and you have to search the whole internet for what your issue might be and it takes a lot of time to learn a lot of the basics.
now i know how to code the logic behind my project and how the thinking process would go and how the input data can be turned into actions
coding is easy and hard at the same time; it's easy because it's not random and you are not learning a new language you just need to understand how it's written and how the thinking process should be.
but it's hard because there is a lot of syntaxwes you need to learn and a lot of functions and errors and learn how to debug your code