Done! Actually did it in ex43b, however there’s a new requirements, which is to use more than one file, and use require to use them. So I’ve modified my ex43b into ex45Project, it’s basically ex43b with the class files extracted out as a separate file, which greatly improve readability. Instead of scrolling up and down […]Read more "Day 9.0 Ex45 You make a Game."
So I have made my own version of the Gothon game. There is a combat system to battle a zombie. I’m going to be honest, I am still learning, eventhough I may have written this, but I feel like there’s too much of this @@ and @ stuff that I don’t get. Here’s the link […]Read more "Day 8.2 Exercise 43 Game"
There’s no work in this exercise, this section consist of 6 different examples of how inheritance, composition and mixins works. Here’s the link to read about the exercise.Read more "Day 8.1 Exercise 44 Inheritance versus Composition"
Here’s my work. Here’s the link to exercise 43. This exercise is very very long, it’s ~260 lines of code, so I’m not going to post the whole list of codes here. You can check it out on my github at the above link if you wish to compare it. What I’ve posted is my […]Read more "Day 8.0 Exercise 43 Basic Object-Oriented Analysis and Design"
Here’s my work. Here’s the link to exercise 42. Study Drill 1. Research why ruby added this strange object class, and what does that means. …. Object is object, class is class. I’m not sure why? Sounded like why is there addition in math? 2. Is it possible to use a class like it’s an […]Read more "Day 7.2 Exercise 42 Is-A, Has-A, Objects, and Classes"
Here’s the link to exercise 41. There’s no exercise in this section, there is a script that tests our understanding on is-a, has-a, and more. Warning!! The script is very very long, I recommend checking spelling mistakes after every line you typed it. I found myself making tons of mistakes on this one.Read more "Day 7.1 Exercise 41 Learning to Speak Object-Oriented"
Here’s my work. Here’s the link to exercise 40. Study Drill 1. Write some more songs using this and make sure you understand that you’re passing an array of strings as the lyrics. Done and understood. 2. Put the lyrics in a separate variable, then pass that variable to the class to use instead. Done, […]Read more "Day 7.0 Exercise 40 Modules, Classes, and Objects"