Programming, cotainers and games
|
Hello Again. Assignment 1The first assignment is to write three different container classes, classes that can store several other objects, and run tests on them. The first test is to see if the classes works properly, which our teacher has provided us code with. The second test is to read a couple of numbers from a file, insert them into the containers and then go through the container to see what numbers are missing, and insert them manually into the container. And we are going to clock how long time this takes for each container, and write a report about it. The three types of containers that we should write are a linked list, a dynamic array and a binary search tree. I’m more or less finished with the former two, have some minor changes that needs to be done to them and then run them through our teacher’s test. I have a bit left to do on the binary search tree, but it’s nearing competition as well. This assignment is good in the regard that it will show us that different containers are useful for different purposes. Assignment 2Our second assignment, that we got to know of today, is to write a simple game of our choice (in C++) and write a report of our choice. There is one twist to all of this however; in the code, we need to implement a couple of things. I’m not going to go through all of them, but it’s various ways that you can design your code in. I’ve written games before during my studies, so I’m not expecting any major challenges since we can write a simple, arcade game for this course. Currently, I’m leaning toward that I will do a Snake game. I haven’t done it before, but I have ideas of how to solve things inside the game, so once I can get started, it should be that big of an issue. |