Browsing 'Programming': Posts from Game Design and Programming
One of those days nothing happens
Today wasn’t very interesting in any regard, barley worth going through the fuss of making a blog post.
On the morning i started reading up on how sockets work using a tutorial linked on the programming skype group. (Can be found here: http://beej.us/guide/bgnet/output/html/multipage/syscalls.html) I felt unfocused during most of the day since all i did was reading and i didn’t manage to read the entire thing. Reading it during the evening again i am starting to feel like i […]
One of those days nothing happens
Today wasn’t very interesting in any regard, barley worth going through the fuss of making a blog post.
On the morning i started reading up on how sockets work using a tutorial linked on the programming skype group. (Can be found here: http://beej.us/guide/bgnet/output/html/multipage/syscalls.html) I felt unfocused during most of the day since all i did was reading and i didn’t manage to read the entire thing. Reading it during the evening again i am starting to feel like i […]

Visual Leak Detector – File and line number not available
When using Visual Leak Detector (vld) there are some problems you might encounter. The problem (I thought I had) was that it wouldn’t show what file and line number it found the memory leaks in. No matter how much I searched for this on google no one seemed to give me an answer that worked.
When the running was done the top line of the vld output said (inside the green rectangle): “0x0F37C260 (File and line number not available): MSVCR120D.dll!operator […]

Visual Leak Detector – File and line number not available
When using Visual Leak Detector (vld) there are some problems you might encounter. The problem (I thought I had) was that it wouldn’t show what file and line number it found the memory leaks in. No matter how much I searched for this on google no one seemed to give me an answer that worked.
When the running was done the top line of the vld output said (inside the green rectangle): “0x0F37C260 (File and line number not available): MSVCR120D.dll!operator […]

Visual Leak Detector – File and line number not available
When using Visual Leak Detector (vld) there are some problems you might encounter. The problem (I thought I had) was that it wouldn’t show what file and line number it found the memory leaks in. No matter how much I searched for this on google no one seemed to give me an answer that worked.
When the running was done the top line of the vld output said (inside the green rectangle): “0x0F37C260 (File and line number not available): MSVCR120D.dll!operator […]

Visual Leak Detector – File and line number not available
When using Visual Leak Detector (vld) there are some problems you might encounter. The problem (I thought I had) was that it wouldn’t show what file and line number it found the memory leaks in. No matter how much I searched for this on google no one seemed to give me an answer that worked.
When the running was done the top line of the vld output said (inside the green rectangle): “0x0F37C260 (File and line number not available): MSVCR120D.dll!operator […]
Catching up
I’m catching up with my work ever so slightly. Today i managed to get down to school during the morning despite my leg acting up and got some good job done during the day.
During the morning i went through the erase function of my binary search tree and fixed some of the cases who had the wrong instructions or had instructions which only worked on the high side of the tree.
In the afternoon we had a brief lecture in […]
Catching up
I’m catching up with my work ever so slightly. Today i managed to get down to school during the morning despite my leg acting up and got some good job done during the day.
During the morning i went through the erase function of my binary search tree and fixed some of the cases who had the wrong instructions or had instructions which only worked on the high side of the tree.
In the afternoon we had a brief lecture in […]

Third Week of Programming: Back from vacation and Tic Tac Toe
Since I last week wrote about most of the assignments for this week, I’ll talk about one assignment which took more time than the others. Making a game of Tic Tac Toe.
Tic Tac Toe is played on a 3×3 grid in which one player is represented by across and the other player is represented by a circle. The players take turns putting their symbol into the grid and if three of the same symbol align vertically, […]

Third Week of Programming: Back from vacation and Tic Tac Toe
Since I last week wrote about most of the assignments for this week, I’ll talk about one assignment which took more time than the others. Making a game of Tic Tac Toe.
Tic Tac Toe is played on a 3×3 grid in which one player is represented by across and the other player is represented by a circle. The players take turns putting their symbol into the grid and if three of the same symbol align vertically, […]

Game programming: Week two & three
Week two started off with an introduction to Arrays, Memory and Functions.
At the end of the second week our lecturer guided the class in building a basic version of the game Pong during Thursday and Friday using SDL (Simple Direct-Media Layer). There were a lot of flaws in the game that could be improved for example the movement of the ball and the collision with the paddles, although all the basic elements of the game were there.
On our third week of programming we have started […]

Game programming: Week two & three
Week two started off with an introduction to Arrays, Memory and Functions.
At the end of the second week our lecturer guided the class in building a basic version of the game Pong during Thursday and Friday using SDL (Simple Direct-Media Layer). There were a lot of flaws in the game that could be improved for example the movement of the ball and the collision with the paddles, although all the basic elements of the game were there.
On our third week of programming we have started […]

Game programming: Week two & three
Week two started off with an introduction to Arrays, Memory and Functions.
At the end of the second week our lecturer guided the class in building a basic version of the game Pong during Thursday and Friday using SDL (Simple Direct-Media Layer). There were a lot of flaws in the game that could be improved for example the movement of the ball and the collision with the paddles, although all the basic elements of the game were there.
On our third week of programming we have started […]

Game programming: Week two & three
Week two started off with an introduction to Arrays, Memory and Functions.
At the end of the second week our lecturer guided the class in building a basic version of the game Pong during Thursday and Friday using SDL (Simple Direct-Media Layer). There were a lot of flaws in the game that could be improved for example the movement of the ball and the collision with the paddles, although all the basic elements of the game were there.
On our third week of programming we have started […]
Playing with ostracism
I’m taking a course in advanced game design right now in which we’re doing a lot of rapid prototyping. Our first assignment was to create a prototype around the theme “Every finger in the room is pointing at me”. Together with two of my classmates, we tried to make a system that would convey a feeling of ostracism through movement. This is what we ended up with:
We then spruced it up and changed the visuals to show a bunch of […]
Playing with ostracism
I’m taking a course in advanced game design right now in which we’re doing a lot of rapid prototyping. Our first assignment was to create a prototype around the theme “Every finger in the room is pointing at me”. Together with two of my classmates, we tried to make a system that would convey a feeling of ostracism through movement. This is what we ended up with:
We then spruced it up and changed the visuals to show a bunch of […]
Have to catch up
Bad weekend. Due to the unexpected death of a family member i was unable to get any work done as opposed to the things i had planned. Monday was better however as i was able to both get good work done during the morning, managed to follow the lecture on the afternoon and crunch numbers during the evening. This is required as i am still not done with the first part of the assignment, although i’m getting closer by the […]
Have to catch up
Bad weekend. Due to the unexpected death of a family member i was unable to get any work done as opposed to the things i had planned. Monday was better however as i was able to both get good work done during the morning, managed to follow the lecture on the afternoon and crunch numbers during the evening. This is required as i am still not done with the first part of the assignment, although i’m getting closer by the […]
Unit Testing
So this time I’ll be blogging about what Unit testing is and how I applied it to both my projects(BST and L.List).
Generally unit testing follows your functions you’ve created and makes sure they return the correct values or just does what they are suppose to do.
The way you configure them is dependent on what your functions does.
I will state here what kind of testing my class does and how it does so.
As a whole this is my unit testing:
bool are_equal(T […]
Unit Testing
So this time I’ll be blogging about what Unit testing is and how I applied it to both my projects(BST and L.List).
Generally unit testing follows your functions you’ve created and makes sure they return the correct values or just does what they are suppose to do.
The way you configure them is dependent on what your functions does.
I will state here what kind of testing my class does and how it does so.
As a whole this is my unit testing:
bool are_equal(T […]
Unit Testing
So this time I’ll be blogging about what Unit testing is and how I applied it to both my projects(BST and L.List).
Generally unit testing follows your functions you’ve created and makes sure they return the correct values or just does what they are suppose to do.
The way you configure them is dependent on what your functions does.
I will state here what kind of testing my class does and how it does so.
As a whole this is my unit testing:
bool are_equal(T […]
Unit Testing
So this time I’ll be blogging about what Unit testing is and how I applied it to both my projects(BST and L.List).
Generally unit testing follows your functions you’ve created and makes sure they return the correct values or just does what they are suppose to do.
The way you configure them is dependent on what your functions does.
I will state here what kind of testing my class does and how it does so.
As a whole this is my unit testing:
bool are_equal(T […]
Programming – Week 3
This week I’ve learned how to create classes using header and cpp files.
This is an example of a header named Student
class Student
{
public:
Student(std::string name, int age);
int GetAge();
void SetAge(int newAge);
std::string GetName();
void SetName(std::string newName);
private:
int age;
std::string name;
};
The keyword ”public” describes what functions and variables are accesable from outside the class. All ”private” variables and functions are only accesable inside the class.
Student(std::string name, int age) is the constructor of the class. The constructor works like a […]
Programming – Week 3
This week I’ve learned how to create classes using header and cpp files.
This is an example of a header named Student
class Student
{
public:
Student(std::string name, int age);
int GetAge();
void SetAge(int newAge);
std::string GetName();
void SetName(std::string newName);
private:
int age;
std::string name;
};
The keyword ”public” describes what functions and variables are accesable from outside the class. All ”private” variables and functions are only accesable inside the class.
Student(std::string name, int age) is the constructor of the class. The constructor works like a […]