CSCI-513 - Lab: Christopher Columbus Sails the Ocean Blue - IT Assignment Help

Download Solution Order New Solution
Assignment Task

 

Objective
This lab is a precursor to Homework #2. It will give you the opportunity to become more familiar with JavaFX before using it to complete your second homework assignment. The lab work involves completing a few guided steps in the JavaFX domain.
The steps are part of the “Christopher Columbus” adventure – which will be extended for Homework 2.

In this adventure – you will (1) create a grid of rectangles representing an ocean, (3) place Christopher Columbus’ ship onto the ocean, and (3) create a key event handler that moves the ship as you press up, down, left, and right arrows. If you have time, you will add islands to the ocean and integrate the logic that disallows the ship to sail through an island.

Design Thinking:
Create and display the “ocean” in JavaFX. Note: The ocean is initially a 10X10 grid of blue rectangles displayed in a Pane.
Before we start – let’s think about the design. We are going to follow a very similar design to the Maze application and work with three classes: OceanExplorer (aka MazeGame), OceanMap (aka Maze), and Ship (aka Seeker). The OceanExplorer is going to include the main method, set up the JavaFX stage and screen, and include the key event handler. The OceanMap will include the grid (for now this will be quite simple – but it will get more interesting when we add islands etc). The ship tracks the current location of the ship and is responsible for move North, South, East, and West operations.

Step 1: Set up
1. Create a new java project called ColumbusGame
2. Create three new classes: OceanExplorer, OceanMap, and Ship. Make sure OceanExplorer contains a main() method.
 

Step 2: Create a Stage in Ocean Explorer
3. Make the OceanExplorer class extend Application. Import necessary packages and add the Start method (you can just accept Eclipse’s recommendation to add unimplemented methods).
4. Add the statement:
launch(args) to main(…).
5. Now you are ready to create and display a scene on the stage. In this first step we will just create an empty stage.

 

This CSCI-513 - IT Assignment has been solved by our IT experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.