Inspiration
We wanted to create a fun game that can be enjoyed by people of all ages. We had initially decided to code an original game, however, we were aware of our time limit and decided to recreate a classic game instead. One of the themes of this hackathon is sea, so we decided to recreate battleship (a game in which the theme of sea exists) into our own version of 'Cruise'Ship. Instead of actual battle ships, we agreed that cruise ships give off more of a summer and relaxing vibe.
What it does
The program creates two game board, one for Player 1 (the user) and another for Player 2 (the computer), using 2D arrays. Each player places 5 cruise ships on their board using X and Y coordinates. Both players take turns guessing where the other player's ship is and try to knock them down. The player whose ship is the last remaining ship on the board is the winner!
How we built it
We built this game using Java through Eclipse IDE. We incorporated object oriented programming, specifically polymorphism and inheritance, to create this project.
Challenges we ran into
Compile error messages and format errors were the biggest challenges that we ran into. As we were creating the program, we underestimated the number of format errors that could potentially occur through the game. We were able to solve most of these challenges using various java exceptions.
Accomplishments that we're proud of
We are happy to have created a working game despite the fact that we are new to coding and that this is our first hackathon. We were resourceful, open to learning new things and consistently improving our code to create the game exactly like how we had imagined.
What we learned
We learned about new topics in object oriented programming and how to efficiently write our code. Although we ran into challenges and experienced moments where it felt like we were not advancing, we learned that we need to utilize the resources, such as web tutorials, available to us to overcome the challenges.
What's next for 'Cruise'Ship
Making it into a full game with lots of GUIs and graphics that will one day be available in stores!
Log in or sign up for Devpost to join the conversation.