WEEK 2 - OCT/3/2023
In today's class lesson, I went through the Programming description and went through the module with my class. We looked up a bit about c because we going to use it to make a game only on Visual studio. 
Fun fact: #include stdio.h is header, reference the main library to get access to all the functions.
Another thing learned is that "main" is a program entry point to start the code.
Our class decided to make Rock paper scissor that uses some saught of random number generator. 
We thought of game mechanic ideas bouncing between each, then after we wrote pseudo-code, which is fake code that says instructions of how you're going to be played out.
I finally got to try out a bit of Visual Studio, we learned how to set up a c file on Visual Studio because it has C++ as default. I tried out writing "hello world," but we couldn't figure out how to cmd prompt on VS, so in the meantime used alt on the website w3school, which I used in the past.
Before the following Programming 1 lesson, I'm going over this discord with a classmate on Oct/4.

OCT/4/2023
Today I'm at home , and I wanted look moreand mess around  into c code for the Rock, paper, scissor that my classmate and I wanted to make and I famalize c coding a bit more. I wrote some sentence for game intro and game instruction Intro. I learned that Depending what you using for fomat specifier I  learned that: "%s" for sentence, "%f" for float, "%d" for int and "%c" for single char. and learned how to implement sentence by using string to which help store sentence, this was learned on w3school.com/. As well as c user input.
What I would like to try to do, is make a predetermined script and mix it with if statistics for the meantime until I and the class can do it randomized.
I found a new site that compiles c code online. It is calledhttps://www.programiz.com/c-programming/online-compiler/ 
Also wanted to test out and include Yes or No before you start the game, like "Are you ready?" Yes or no. I founded a new technique method basically mixing the user input and if statement. thanks to them,https://stackoverflow.com/questions/41903072/user-input-yes-or-no-in-c
I was able to do it in somewhat way.
I hope we are able to progress more on this.
WEEK 3 - OCT/10/2023
Today is the day I  continue the RPS code and create a final build of it. Because I wrote my own code Continue adding to it. One of my classmates, Alex from class is going through and showing his code of how he made his Randomizer RPS  code to the class, which will be really helpful for my code.   
Before we continued, I created a new project folder/file to add the existing code, my classmate found a way to have a vs file that has a debugging compiler. Before, it didn't work I had to use an online compiler that ran code ok. The whole experience was informative, fun, confusing but pain in the butt, all mixed together. When begin started, they wrote from the beginning explaining and asking questions. So I waited until they got to the part I needed while doing that I discovered the Ctrl & clicked on a variable you can look into info of that code and script it was fascinating.
Checked my code on Visual Studio on how it will, but before I got, to the coding part I needed it, there was a small error, which I was surprised, It didn't happen when I used it on Online Compiler. So I looked at the error list, and found out there issue with my Scan F , so I did some research and found out it was  Visual Studio was the problem and that it has its own special variable meaning instead of Scanf >> scanf_s. Further, I was using traditional C, which was the problem. This led me to look up the turbo c compiler, my teacher mentioned that supports Traditional C.


Excellent part, we set up the function variable name int" pmove", "cmove", simply abbrv.
Then wrote cmove = rand() % 3; // randomize the 1,2,3

scanf_s("%d", &pmove);
cmove = rand() % 3;
This code randomizes Rock, paper, scissors, and uses scanf_s to type either 1,2 or 3 to choose an option. oh yeah using "& " in scanf or printf means to pass memory address to variable to the function.
While I running my code I got this error message when I pressed enter after typing my name. There small issue the code won't start fully because  __fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE); the reason may be that I didn’t give the integer a number. Funny enough, it doesn't happen on the Online compiler. I thought maybe if I finished the rand code it wouldn't while following my friend's instruction, I tried once in a while but still showed up. I checked online their only one post on "STOCKFLOW" but there's no hope. I believe it's like my other issue, meaning something in mycode is rejecting Visual Studio and vice versa. There debugging technique my Prof, taught us while running the compiler, but it was no use. Attempt delete some of my code and keep what needed to see, a couple of tries somewhat got it working which proves that some part of my code is rejecting Visual Studio. I reversed it, put the issue on hold, and followed the lesson.
The If and else statement that my classmate, Alex, is to randomize the Win & lose condition, when I choose the computer randomly choose one of the 9 possibilities.
like this.
 if (pmove == 1 && cmove == 2) {
     printf("%d", cmove);
     printf("You Lose");
 }
 else if (pmove == 1 && cmove == 3) {
     printf("%d", cmove);
     printf("You win");
 }
 else if (pmove == 1 && cmove == 1) {
     printf("%d", cmove);
     printf("Tie\n");
 }
 //paper
 else if (pmove == 2 && cmove == 1) {
     printf("%d", cmove);
     printf("You win");
 }
When completed, there are other edits we did to the code to make it run better. I still need to figure out why the online compiler works but not visually. I might try out Turbo C.
This small learning fact: 
!= = not equal
Created  function call, #include “”
This makes you clean your code by separate things, making it less messy.
WEEK 4 - 10/17/2023

This Programming 1 lesson went over C++ to help speed the class up. We did an activity which is to make a simple game VS just like what was done in C but for C++. We decided that the game would be a word-guessing game called, Guess the Word (GTW).
Will be going through Conditional, Iterators, Operators, Loops, Arrays.
While we go through the code we will tick it off as we go.
An algorithm and decided:
1) Introduce the game
2)Computers lay the rules
3)Computer ask question(It already know the answer)
4)Enter the letter word only
5)  If guess wrong lose, if you guess right you win.
So I created a new Visual Studio c++ folder/file and get the console app C++ because we going to be using c++ and debugging. There's a way to change property C++ file configuration by running the xproj file in a code editor.
On C++ the Int main(){} was already set so we have to write our code inside it, it is the entry point to our code.<iostream> stands for INPUT OUTPUT stream, which is a data flow that flows into the program and out of the program. We followed our algorithm and started with the Introduction part 
 print("Hi yall\n");
 print("*******************************|\n\n");
 printf("Type a three letter word only. If you guess the world\n");
 printf("You answer correctly you win, if not you lose\n\n");
 Then went a created Variable function, one will hold the answer the other will hold the letter count is allowed, and another will host how many matches are allowed. w will be using Arrays, Container of data same type data, array
    char word[4] = "cat"; //for char we use a double quote and bracket
    //  printf("%s", word);
    char input[#];
int matches = 0;
Then the question + answer section was written. Beside print we wrote scanf_s which is what we wrote allow us enter text. We tested just to make sure if the function before proceed further.
We than focused on If else statment for  right(you win) wrong(you lose) mechanic, at first it kind of worked , then there was some issues. and had to get error txt paste it on google taking me to stockflow kinda fixing it but not fully. 
I learned alot what some operators mean like and theres  :
== Equal to
!= Not equal
! NOT
< less than
> greater
<>l
& Derefence
&& AND
|| OR
What is ++ , increment operator (i=i+1;)
--  decrement operator,
 There was solutions found,  
scanf_s("%3s", input, (unsigned)_countof(word)); = cast to is (unsigned) count every character
sizeof() = which determine the amount of letters we want.
We also made git repository to store my code. The experience was similiar to when we did c it was good experience and this put us to the right direction on our c++ journey.



WEEK 5 - 10/24/2023
For this programming session, we decided on another small project using C++ in the console. We didn't go for the card game we thought up before, maybe for another time, we chose a different card game based on it and we decided to choose UNO. We thought it would be easier to attempt. I have never played UNO before, so I decided to watch a video of how to play UNO and tried the game on a classmate's laptop to know what feel of the game itself.
We created our algorithm of how the game will be made, pseudo code what is mech nic will be used. And everyone had a task to do. Before we started, Some had to create a Main repo so we could join and use the same C++. My job was to figure out how to get the text to have colors and how to implement a number randomize generator(which we used before last time). Sir introduced us to a  rare book for C++ which was see-through a bit. 


Before we typed any important, I had to test if everything is working before we continue, because yesterday there was some issue which I was able to solve the problem.I typed out std::cout << & cin>>  which are input like print & scan. Any way I found two solution that will help put text color, one make every letter that color  whereas the other will focus on a specific, I chose the second solution because we will different color for for every number/word. SetConsoleTextAttribute(color, 01); // this gives specific colors in this con
    cout << "B9\n";
One of my classmates wrote his code, which displays the rules and introduction, and uploaded which merged and made an update. Secondly, I had to think of a way of doing a randomizer. There's a line of code that we can use that can be used for randomization, but more is needed. We need to make an array of sought. My teacher quickly went over struct, which allows us to group a lot of variable functions into variables similar to a collection. One class thought up a sequence code for making a randomizer for our UNO code, and he commented on what each line code does. There setup of array colors that randomize colors with a randomizer number generator together.
This was little cool project and will going with it soon.
​​​​​​​
Programming 1
On the first lesson of programming 1 on WEEK 2, it was get us started on programming and a small intro Visual studio which we will be using a lot. The coding language was meant to be C++, but we started on with C. First was that when we do get to use UE full even though it is uses C++ it is not the same normal C++ but simplified and to get us familiarized C coding until we get onto c++ heavy, which surprised me but informative but then again C++ derived from C of course it will be similar.
While I open Visual and went length walkthrough and set up. There is couple of things I learned for example #include stdio.h is header, reference the main library to get access to all the functions. And Another thing learned is that "main" is a program entry point to start the code. By the way there was small issue solved later when using the debug button that open console log. And reason we didn’t use a template that used console log as well as and we had use C++ template and save it as c file for it to work which was nice to know and we implemented we used next time visual studios. For the mean time I used online compiler.
For us to have better understanding on C coding we had make a small mini game. So, we thought up some ideas and decided a simple rock paper game and that uses random number generator. Beside knowing how to set up variable and writing up a function like print or scanf at that time. On the next day I wanted to do continue from previous day and add some so more set up in the way I wanted like putting more print comment ad some other stuff to it. While staying home going on W3 school the site I have used past, and the website did somewhat used for my online compiler until switch to different site. I learned neat stuff like “Depending what you are using for format specifier I learned that: "%s" for sentence, "%f" for float, "%d" for int and "%c" for single char”. The special thing I wanted to do was to include a yes or no , to confirm If I wanted to started the game. I looked up on W3 school I saw I that I need to use if and else statement with scanF_S ( to type input)  but I didn’t know exactly to combined together I looked up on the web and found something on stack flow which had  the solution I was look for wrote it one way but there was issue then I scrolled down on that post then I saw another solution, to use strcmp.I f you look at how the code is written is kind of self-explanatory, If I response yes I can start else if no it will not start”.
Also, Pseudo code we learned which is a flow of how you want things to play out.
Week 3, We continue from last week I like I mention before, I learned using c++ console log and saved it as C file to get console log. One of my classmates went over a whole walkthrough on how we will make the RPS. I waited until to get the part I wanted learn. One thing I need mention because this VS _S  like print & Scanf because the function won’t properly. There so many things we learned on that week, from how to debug our own line of code, investigate function/var etc. When my classmate wrote the var pmove and cmove he then made a random int function using rand function with loop while that will loop the function of the code like randomizer. IF and else if statement was written like if player win, lose or tie a print message will written. There was issue I had encounter and I did all I can to figure out Issue, debugging, look through google but no use which prevent the code to run but for some reason it will only work when I use a online compiler which means that his is a VS issue something In code is making it a problem.




WEEK4
For this week, we focused on C++, we went over Conditional, Iterators, Operators, Loops, Arrays. Like last time we followed on algorithm and for our first C++ min project it will be a guessing game , called the GTW, Guess the word. This was intreseting I leanerd different type of operator like== Equal to, != Not equal, ! NOT etc. This game is meant to be a simply game.  We used is array store words but for this build it will only one word. There was some issue when than focused on If else statement for  right(you win) wrong(you lose) mechanic, at first it kind of worked , then there was some issues. and had to get error txt paste it on google taking me to stock flow kind of fixing it but not fully. Here was some solution:
 scanf_s("%3s", input, (unsigned)_countof(word)); = cast to is (unsigned) count every character
sizeof() = which determine the amount of letters we want.
There was also a git repository to our code.


Week 5
This week was the most fun. I tried UNO for first time. And we attempted to make our own uno game. Which we haven’t complete yet. We build repo to store the code so everyone can see the same code build upon it.My job is to research how to have colors and have randomizer. I was able to figured colors my self but randomizer one my classmate helped.
week 9 - Critical and reflection
This whole programming 1 experience was more proactive. We learned a lot from doing a task from experience even though I would like to learned as well normal way but anyway it was informative and fun nerveless. And fact I was able do some practical was great.
WEEK8
In this lesson, we delved into pointers and references, specifically how variables store memory addresses. We wrote some code to showcase this. We also covered datatype conversion, which results in a different output when two different datatypes are switched. Although I was already somewhat familiar with most of the material from previous classes, it was good to have a more detailed explanation. We even created a small weapon in C++ on console log, which was a practical application of the concepts we learned. Additionally, we talked about parent and child classes in a previous lesson, and the instructor provided a helpful tutorial on the topic. We also covered parameter and argument.

WEEK9
For this lesson we went over Virtiue and override and that is way to allow you to modifiyed something in the based class  and is allowed to get overriden.And polymorphin  which also OOP which i didn'nt heard of which routine use different type of variable at different time.And  also Parameter and Argument. This definition will help me if I was to be quiz ands it will help me understand coding a bit more.
Week 10
N/A

Week 11
I'm continuing to work on my mini prototype project. I wanted to add a jump animation, but I had issues with my previous animation when I tried implementing it in another lesson. I couldn't make it work, so I decided to rebuild the whole third-person movement that I created before the semester because it was missing the animation BP blend and code. When you follow a tutorial, it's important to stick with the same person until you're comfortable with their approach before switching to someone else. Everyone does things differently. So, I watched a tutorial from Ketra Games on YouTube. There were some differences and similarities compared to my approach, but I found their method to be smoother and had different camera functionality. After that, I implemented the jump animation, and it was easier to set up and place the code. I added a sword with a simple animation and a roll feature by myself, and I'm planning to add an animation combo system next week.

 Week 12,
 we worked on updating our portfolios and went over everything we needed to before the deadline. We also learned where to put our assignment work. From now on, I'll be focusing on completing all my small projects. This week, I finished the small extension project task on coding, programming 1 which was to use some of what I learned from my class project and used it on it.
(NOV)11/8/23
This wasn't programming lesson per say, but we did get to meet our course leader and we went over lumens for our teacher to record the lesson.
DIRECT LIGHT – IS WHAT YOU SEE SHINING ON AN OBJECT
DIFFERENT TYPE : OMNI, HUE,SPOTLIGHT,
INDIRECT LIGHTING – CONSISTS OF LIGHT THAT BOUNCES OFF OTHER OBJECTS AND FALLS ON EACH OTHER. IT REFELECT ON OTHER OBJECTS
Skylight illuminate the scene
GI it is the combination of DL and IL. It is sum total of the colors and light.
As wll an approx. or simulation of how light would behave in real world because calculating accurate GI realism.
The time taken for your CPU or GPU to calculate GI solution usually depends on: # of light.

WEEK 8 - (NOV)11/14/2023
On this programming lesson I go into little more depth in pointer.We started off  discuss what was Pointer , and we had to do PLP and  write on ther board. I got my definination from W3schools, that " a variable that stores the memory address". I open up the Visual studio to to use the c++ for us to get better insight this. We wrote some line of variable which pointer and went over some are like 
float z = 15;
or
int*y = &x;
One has a star the other doesn't but work similiar.
We wrote cout << >> to show how the output look like. Learned the different between content and Location in the function. Content has (xyxy,&__); "adress of" operator whereas *(&x) mean "Value at adress".
There's a thing called indirection operator , is when a value is given , which reffered by pointer.This is shown on every coding , the pointer is setting the varaiable and the Indirection operator is what gives it function to get a result.
There's conversion datatype which is self explanatory,it is when you change teh datatype in variable, like int into a Float, which will change the outcome.Also there's is stack memory, straight forward and is not flexibe and only allow certain amount memory and cant be changed. Whereas Heap memory is the opposite and dyanamic and CAN be altered and store alot and different memory. 
We also tried something we talked about before , which class system and parent/child. We made  small weapon system with damage. Giving the damage a value. I created header file so we can refer it to our main c++ file to place function.This was great go over because alot game uses and this gave me insight on what to expect.
Last thing for hwk, was that I had to look up pointer to pointer. For what I understand it is when a pointer, which is a varaiable adress links up to another pointer, which has actual value, like what we did with .damage and #includ__.


WEEK 9 - 11/21
 For this lesson I went into depth about pointer and reference. Mostly about  variable and that it store the memory adress.We  werote some line codes on how it is written.We did datatype conversion which is when you switch two different datatype which give out a different result. Most of the stuff they went over I was famaliar with because we did it in class erarlier. B ut it was good to go into details. Which kind of done but not this way was make a small weapon c++ on console log. We was talking before on a previous lesson about parent and child class and sir did a smal tutroial which was very informative. And also Premeter and argument.

WEEK 11 (DEC)12/5/2023
Today I went on rebuilding TP for my prototype before adding anything Which is going to take a whole day to finish .. ....
12/6/2023 & 12/7/2023
Dec/6th :
On this day continued on my small project prototype, For this and couple weeks onward my prototype and self studies will merge. The reason is the Prototype is part of my assissigment and I usually these off days for self study , so I decided to combined both together + I get to learn new things which was the original plan.
I  was able to make the Jump animation for my player thanks to youtube tutorial I was watching, the same one that help me rebuild the my third person build.https://youtu.be/sJvWmFYSQFY?si=XcSZgwadLaCbbHZ7 
It took long to get to it becuase I hade to rebuild TP.
Dec/7th:
I went onto create simple roll animation on my own, I did have small animation BP influence on where to put roll state but I did the rest my own, learning how the true and false works on unity for the animator and script I was able to figure out to make it. Also later that day in the afternoon/evening I made a simple Sword animation combat from a video,https://youtu.be/gHaJUNiItmQ?si=64uTs-RXxivsnW2w , But going step up watch a different that it different way and also include weapon system that switches weapons. Probably get it done on friday.
Week 12 -
All I did was update my portfolio and make an extension project from Programming 1, which is based on some of what I did in my class project.]
From now on until the deadline, I'll just be working on my project and uploading it on Aula.
Code:
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string>
 using namespace std;
#include <windows.h> // to use the comipler
void main()
{
string firstName;
char response[10];
int x;

    HANDLE color = GetStdHandle(STD_OUTPUT_HANDLE); //just once, allows you to use setconsoletextattr
    SetConsoleTextAttribute(color, 8);
    cout << "Hello,";
    
    SetConsoleTextAttribute(color, 5);
    cout << "There\n";
    SetConsoleTextAttribute(color, 5);
    cout << "I will be your host,...\n";
    SetConsoleTextAttribute(color, 8);
      cout << "DESPAIR ... Dun Dun Dun\n";
      SetConsoleTextAttribute(color,28);
       cout << "Joke aside\n";
       SetConsoleTextAttribute(color, 8);
       cout << " my name is ";
       SetConsoleTextAttribute(color, 1);
       cout << "elcaro\n";
       SetConsoleTextAttribute(color, 8);
           cout << "like";
           SetConsoleTextAttribute(color, 14);
           cout << " oracle";
           SetConsoleTextAttribute(color, 8);
           cout << " but backward.\n";
            
           SetConsoleTextAttribute(color, 15);
           cout <<"But anyway, I like to ask you some simple question\n";
           SetConsoleTextAttribute(color, 8);
           cout << "For a survey for something important\n";
           SetConsoleTextAttribute(color, 15);
           cout << "I would like get to know you\n";
           SetConsoleTextAttribute(color, 8);
           cout << " Once you answerd it then I will tell\n";
           SetConsoleTextAttribute(color, 15);
           cout <<"What this all about\n";
       
           cout << "\n\n";
           cout << "Are you ready?\n ";
           cout << "Enter Yes or No:\n";
           cin >> response;
           if (strcmp(response, "yes") == 0) {
               cout << "Let's begin!\n";
               
               cout << "what is your name " << endl;
               cin >> firstName;
               cout << "Nice name\n";
               ///////////////
           
               cout << "what is your age? \n" << endl;
               cin >> x;
               
               if (strcmp(response, "yes") == 0) {
                          cout << "Is that correct?\n"<< x;
                          cin >>response;
                          
                          
                          if (strcmp(response, "no") == 0) {
                               
                             cout << "what is your age? \n" << endl;
                             cin >> x;
                             cout << "Is that correct?\n" << x;
                             cin >> response;
                             if (strcmp(response, "yes") == 0) {
                                  cout << "what is your favorite color\n" << endl;
                             cin >> response;
                              cout << "Intreseting" << endl;
                              cout << "What is your favorite number \n" << endl;
                              cin >> x;
                              cout << "what is your genre of music you normally listen to?\n" << endl;
                              cin >> response;
                              cout << "what was the last game you played?\n" << endl;
                              cin >> response;

                              cout << "How many people in your family?\n" << endl;
                              cin >> response;

                              cout << "what is your star sign?\n" << endl;
                              cin >> response;
                              cout << "How many other language do you speak?, including yourmother-tongue \n" << endl;
                              cin >> response;
                              cout << "If answered,";
                              cin >> response;
                              if (strcmp(response, "yes") == 0) {
                                 
                                  cout << " what language are there \n" << endl;
                                  cin >> response;

                                  cout << "What anime do you like?\n" << endl;
                                  cin >> response;
                                  cout << "  what is your part time job? \n" << endl;
                                  cin >> response;
                                  cout << "what is 500 + 2 sqr -29?\n" << endl;
                                  cin >> x;
                                  cout << "Finally, Last question.....";
                                  cout << "\n" << endl;
                                  cin >> response;
                                  cout << "Why do you think I am asking you this questions.\n" << endl;
                                  cin >> response;
                                  cout << "Part2 commin soon";

                              }
                
                              cout << "What anime do you like?\n" << endl;
                              cin >> response;
                              cout << "  what is your part time job? \n" << endl;
                              cin >> response;
                              cout << "what is 500 + 2 sqr -29?\n" << endl;
                              cin >> x;
                              
                              cout << "Finally, Last question.....";
                              cout << "Why do you think I am asking you this questions.\n" << endl;
                              cin >> response;
                              cout << "Part2 commin soon";
                             }
     
      
                          }
                        
                       
                   cout << "what is your favorite color\n" << endl;
                   cin >> response;
                   cout << "Intreseting\n"<< endl;
                   cout << "What is your favorite number \n" << endl;
                   cin >> x;
                   cout << "what is your genre of music you normally listen to?\n" << endl;
                   cin >> response;
                   cout << "what was the last game you played?\n" << endl;
                   cin >> response;
           
                   cout << "what is your star sign?\n" << endl;
                   cin >> response;
                   cout << "  How many people in your family?\n" << endl;
                   cin >> response;
                    cout << "How many other language do you speak?, including yourmother-tongue \n" << endl;
                   cin >> response;
                   cout << "If answered,";
                   cin >> response;
                   if (strcmp(response, "yes") == 0) {
                       cout << " what language are there \n" << endl;
                       cin >> response;
                       cout << "What anime do you like?\n" << endl;
                       cin >> response;

                       cout << "  what is your part time job? \n" << endl;
                       cin >> response;
                       cout << " what is 500 + 2 sqr -29?\n" << endl;
                       cin >> x;
                       cout << "Finally, Last question.....";
                       cout << "Why do you think I am asking you this questions.\n" << endl;
                       cin >> response;
                       cout << "Part2 commin soon";
                   }
                   cout << "What anime do you like?\n" << endl;
                   cin >> response;

                   cout << "what is your part time job? \n" << endl;
                 
                   cin >> response;
                   cout << "what is 500 + 2 sqr -29?\n" << endl;
                   cin >> x;
                    cout << "Finally, Last question.....\n" << endl;
                    cout << "Why do you think I am asking you this questions.\n" << endl;
                    cin >> response;
                    cout << "Part2 commin soon";
               }       
           }
           else 
           {
               std::cout << "See you later then!";
           }
          
}


Back to Top