Thursday, October 29, 2009

Pex and XNA cont'd

(July 19th - August 1st)

During the second half of my I started using Pex with Tears (my personal video game). Continuing from my last post on XNA and Pex, I discovered a problem with objects that are very complex (my MapEngine object) and testing my collision detection algorithm. In my game, which is a 2D platform game like Super Mario Bros. or Sonic the Hedgehog, collision detection and response is described as a way to keep all entities within a "world", to be able or not go through objects/areas that are labeled as such. So for the next couple of weeks I tried different possible ways in order to get Pex to work with this hardship and work with Scurvy.Test to test XNA specific objects.

*Update*
After meeting with Xusheng, I discovered that if you can make your PUTs smaller and constrain Pex a little, you may be able test these objects. Why do we have to constrain Pex in order to do this (and when is it necessary to do it), I don't know but that is another research topic.

Tuesday, October 20, 2009

Game Engine Demonstration and More C# Practice

After having made a request with my teacher, Dr. Michael Young, I was allowed to demonstrate the capabilities of one of my favorite non-program based engines, RPG Maker 2003. I was allowed to demonstrate the differences between it and Game Maker 7, by primarily comparing the organization of the sprites (charsets), variables, switches. I demonstrated the abilities which are intended for by the engine, (which is to create an RPG obviously), but also displayed a few of my games which were centered around Platforming and Third-Person Shooter styles.

Although it is often argued that non-code based Game Engines are detrimental to the growth of a game designer, I argue that these engines are in fact beneficial to a degree. I believe that they can lay the foundation for a smoother transition into programming, by introducing to the player the concepts which a game revolves around. It also allows an early programmer to experiment with their creativity and manipulate the various aspects of an engine (such as switches and variables in RPG Maker 2003) to create new methods of interaction. However, I will attest that a person who is seriously interested in becoming a Game Designer stray away from solely using these engines. The likelihood that they will create a mega-hit or controversial game is unlikely using an engine which anyone has the capabilities of using. Unless of course, you are Danny Ledonne.

I also began to differentiate between Console.Write() and Console.WriteLine with C#, and continued experimenting with the Console.ReadLine(). It can be used for entering text into the command line, and can also be used to separate lines.

Monday, October 19, 2009

Next Steps: JCute & Some Minor Adjustments

I met with Suresh and Kunal today, and we discussed the current implementation of the test driver, as well as the next steps. The concept of my test driver seemed to be mostly correct, and my next task involves incorporating JCute as per the sample code available on the website. After meeting with Dr. Xie, he exposed a problem in my implementation that pertained to inefficient code that would be costly in exhaustive situations. He proposed simply making the comparisons as the method sequences are generated and breaking out of the sequence once a failing test case has been encountered. For now, void methods have little impact on sequence but implementations using observer methods will be a future task.

Summarizing, my activities after the meetings are as follows:
1) Integrate JCute into the test driver, enabling it to choose all values, avoiding random testing
2) Converting test driver implementation to compare solutions during the method sequence generation, ending the sequence generation process when either a failing case or a completed sequence is encountered.

Outside of these tasks, I shall also begin the writing for this project.

Saturday, October 17, 2009

The Beginning of my C# Tutelage

As a first semester Freshman, I believe it is my responsibility to not only maintain high levels of academic performance, but also make preparations for my designated career choice. These preparations will be done by learning programming languages from skilled programmers. Charles Woelfel has begun assisting me with C# programming.

Yesterday, October 16, 2009, we began with the reintroduction of Classes, Objects, and Methods. From my learning, I reviewed that Classes are basically a set of instructions which hold any set of instructions. Methods are the processes which are to be carried out in the Class. Objects seem to be objects, or items, which basically are a duplicate of another class or method, but renamed. These seem to be used most frequently in other classes.

My task for today, October 17, is to read a few more tutorials regarding command-line input. I'll also make preparations for another upcoming lessons by reviewing the information which I've learned, and attempting to create a few C# Programs of my own.

Monday, September 28, 2009

Method Sequence Generation

Throughout last week, I was working on the method sequence generation component of the test driver. I believe I am finished implementing this component, but I am still in the testing phases. I shall write and run concrete unit tests through this week. Some things I have been thinking about are intelligent ways on determining the method sequences. As of now, I am only thinking of generating the sequences randomly.

Outside the actual tool, I have received and began reading some papers in a similar field as my research. I am also developing the contents of the website pages I shall soon add to the course web. I hope to complete all, or at least a majority, of this during this week.

Sunday, September 13, 2009

Working PDP

I have successfully built a PDP that is capable of using the RAdAC policies I have been working on. The only thing I don't like is that it is difficult to change the risk associated with a particular factor. For example, someone with Top Secret clearance is more trustworthy than someone with no clearance, but each level has a numeric value of risk associated with it. To change the numeric value, you must change the source. I'm thinking of storing the values of risk in a file that would be easy to edit or, even better, making a GUI. In any event, now that it is working I can begin working on the testing portion of the project. I will begin that this week.

Wednesday, September 9, 2009

Next Steps

When I've found time to work on the project, I spent it mapping out the series of steps required to implement this correctly. I met with Suresh to briefly discuss utilizing JCute. We decided taking an interface as input (or as one of them) may be beneficial, seeing as we cannot account for the student's possible helper methods. Using the interface to generate tests may be beneficial, since the behavioral differences span the methods defined in the interface. All that is required from respective solutions, outside the interface, are the constructors, which cannot be defined in the interface. Summarizing, this results in taking both solutions, as well as the interface being implemented. This results in 3 inputs. I shall post more information as I go on and implement this.