#PROJECT

Finally! Here is my post for our final project which I did with Rodrigo Hernández. We spent a couple of weeks tryting to figure it out, but we finally make it.

About my experience doing this project i can say it wasn´t easy, and we spent a lot of time trying to figure out how we will do it. At first before start programming, we decide to think about how does it have to work or how we can do it work. After that, we think about how we can express our ideas in code.

Being honest thakns to Rodrigo we made the vectors work correctly but the two of us aport ideas of how could it work. We started by doing the cout´s where you ask the user what would he like to do, like if he want to print board, print instructions, write, erase, print history or  quit.

At first we just did by asking the user what row, column, and number he want to write or in what row and column want to erase and for him to put a number between 1 and 9. Also that the user couldn´t erase original numbers. Then we started with the hard stuff.

Doing the code for the program to check if there was an equal number in row, column or quadrant was the hardest part. We begin by doing a fuction which check in which quadrant were you, we did a bunch un if´s which check if the number  you put were in the row 0 to 2 and column 0 to 2 and that meant it was in the first one, and we did that with all the quadrants.

After we define in what quadrant you are it will check if in the column or in the row was an equal number you want to put.

The tricky part was checking the quadrtant, we did a nest for loop which checked was by making a first index in column and row and a final index in row and column depending in the quadran yo were, so we made the for loop to check to the first index to the last one and then to pass to the other row and etc.

After we managed with the help of Ken, we just change a couple of things to make our code easier, like checking the originals by using negative numbers and absoult numbers, then we put the  colors in the board and finally putting the history and instructions.

I really enjoyed doing this project because it help me understand things i didn´t like vectors, and because of the practice.

I really liked also this class and the way of Ken teaching, with flipped learning. Flipped learning teach me to the things by my own, and investigate things i don´t understand and donpt wait to have a class to understand it. It make you independent and teach you to get over the obstacles.

Feel free to use our code and play with it!

I´m proud to give you mi Github link for my final project:

https://github.com/kenwbauer/RodrigoJuanCarlos/blob/master/sudokuRoJc.cpp

 

CC BY 4.0 #PROJECT by Juan Carlos is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.