For the software design project in Engineering 1181, the students were asked to code one complex game or several simpler games for their software design project. They were then instructed to make pitch videos in an attempt to convince developers and users to invest in their game. Group C chose to code the classic board game “Battleship”. This game is a simple turn-based strategy game that requires the two players (in this version it is AI only) to place their ships on the board and take turns guessing where the opponents’ ships are. If the player guesses correctly that ship is marked as a hit. The first one to get hit all the spots on all of the opponents’ ships wins and shouts “I sunk your battleship!”
The first thing that needed to be done was a flowchart, which allowed the coders to have a thought process for what they needed to code. Throughout the coding process, the team ran into several problems with combining their chunks of code but eventually resolved any bugs that they ran into. The team tested different ship configurations and different places the player could click to eliminate as many bugs as they could find. Once the coding was complete two PowerPoint slideshows were completed and the team presented the information in the PowerPoint to both developers and users. The videos have been added to the site.
In this section, you will find a list of variables and functions all with definitions attached so that you can understand what they do. Additionally, you will find the entirety of the code we used with comments to explain what is going on in each step. There will also be a flow chart so you can not only see what our thought process was when completing the game but you can also see what is going on with the code in a more visual manner.