J. Conversion Process - SwinbeeMiles/MyBattleship GitHub Wiki

Documented by: Toh Jie Jin

Conversion Stage:

During the first stage where the team works on converting the VB files to C#, the team decided to use an online converter to do the conversion. However, after looking through the files, the team realised that there were too many coding errors from the poor conversion. In order to save time, the team decided to swap to a conversion software to do the job. The converted codes were more well-formed and had lesser errors.

Adjustment Stage:

Converted codes had lesser errors and most of these were easily solved by including fundamental classes (using System), SwinGame files and inserting missing user-defined class name. The team encountered more serious problems when trying to test run the game. The first serious problem was the program could not load images, after much of a headache the team realised that the self-built application did not have all the images in its own resource file. The next problem was a few bugs that did not occur in the VB version of a game. One of them was not being able to close the program while playing and the other was that when the AI hits the player ship, the player gets to play as the AI. All of this was caused because the converter missed out some operator symbols which causes some logical errors and that the team did not notice while adjusting the files.

Documentation Stage:

After adjusting the program, the game was tested one last time to see if it runs exactly like the VB counterpart. After testing, documentation is worked on which are listing down newly noticed bugs and previous bugs carried over from the VB program and filling in missing documentation in the codes.