Author Archives: Alan

Final proyect post #PROJECT

We began this proyect like two weeks ago, maybe less, so we had to focus on it these last days. We spended around 3 hours every day (I’m not kidding), to make it work. This was not an easy task, not as easy as a simple WSQ or masteries, this was a long code compare to those, and debugging it was a pain in the neck. You make one wrong move, the compiler tells you everything is alright and you continue the code with that error until you run it and it doesn’t do what you want. Then, to find that error, you might spend a couple of hours until surrender (or until you ask Ken).

Yep, that happened to me, I commited one (I redefined an int variable to a bool one) but the compiler still told me the code was OK. Also, I thought I had copied a vector to make an original board but what I did was to point both vectors to the same object, so, whenever I tried to modify the board, it returned its values to the original ones. That was such a shame, I was looking everywhere in the code, but there, in that “copied vector”.

Aside that, I had a really great experience working in the code, I learned a lot of new things and I’ve begun to like more programming. It takes a lot of logical thought to make things work, it obligates your brain to think of all the options you have and then choose the simplest one. The thing is that there’s not a unique way to achieve something, all the codes are different, C++ is a real language and everyone has its own style to speak it. In summary, programming is awesome.

Lastly, this was our process:

Part 1: Board’s aesthetics.

Part 2: Creation of functions to check Original values, Row and Column

Part 3: Make program easy to follow (implementation of colors and printing of responses)

Part 4 (the easiest one): Let the user erase numbers

Part 5: Creation of function to let know the user has won and create option of Restore (erase progress)

Part 6: More aesthetics.

Last part: Creation of function to check Quadrant and Validated user input (user can only introduce numbers between 1 and 9)

Here’s the link to the code, enjoy it:

https://github.com/kenwbauer/SalvadorAlan/blob/master/sudoku.cpp

 

#Mastery24 Use of arrays #TC1017

Here’s the link to my video where I explain how to use arrays:

https://www.youtube.com/watch?v=wVem8U7VSxQ

 

#Mastery26 Creation and use of matrixes in C++

Here’s the link to my video where I give a basic insight on the use of matrixes in C++.

Link: https://www.youtube.com/watch?v=Fw2FnRAPDXU

 

#WSQ17 #TC1017

This is the last WSQ… (sigh)

I have to say that Scilab looks really promising for my future work in my career. It’s like a calculator but you need to write things in a C++ code style. This software is more oriented to math though, which makes it more efficient. I’m looking forward to use this tool and see its capabilities.

#WSQ11 #TC1017

I’m submiting this until today ’cause I wasn’t paying attention the day Ken explained this task. To make something like these work for very long integers and to read the number from the last digit to the first one, we needed to add a library Ken gave us. With that, the code became really easy to write and the program was able to accept big integers.

Here’s the link to my code in GitHub.

https://github.com/alanvaldo/my-tc1017-stuff/blob/master/wsq11.cpp

#Mastery23 Creation and use of vectors in C++

Check out my video where I explain how a vector works and I give you an example of it.

Here’s the link: https://www.youtube.com/watch?v=h0jKsTKXK3E

#Mastery07 Use of comments in C++

Check my video where I explain how comments work:

https://www.youtube.com/watch?v=W32oCtsno2Y

#Mastery21 Use of recursion for repetitive algorithms

Here’s the link to my video where I give an example of recursion:

https://www.youtube.com/watch?v=gNIxSlIU0bE

#Mastery20 Use of for loop

In this video I explain how the for loop works, hope it’s helpfut to you:

https://www.youtube.com/watch?v=Ze-8XQzbD4Q

#Mastery19 While loop

Here’s the link to my video fellows:

https://www.youtube.com/watch?v=Et75NCT5G2w