Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Assignment

mshei103
mshei103 


I need the complete solution for this assignment. There is not a pdf for this type of assignment rather a link to the website where you can see the assignment. The link is: https://www.site.uottawa.ca/~gvj/Courses/ITI1121/assignments/02/index.pdf Attachments
Tags
Clarifications

Answers

circle the dot

felo
felo 



Please find attached for solution with a working screenshot Attachments
Circlethedot.rar (52 K) Download













Preview

Preview

Preview

Preview
* * @author , University of Ottawa */ public class BoardView extends JPanel { // Data Fields private GameModel model; private GameController controller; private JPanel[] buttonRows; private DotButton[][] dotButtons; private int size; /** * Constructor used for initializing

Preview
parameter, it is * used as the board size. Otherwise, a default value is passed * * @param args * command line parameters */ public static void main(String[] args) { int size = 13; if (args.length

Preview
game. It uses different icons to * visually reflect its state: a blue icon if the blue dot is currently on this location * an orange icon is the dot has been selected and a grey icon otherwise. * * The icon images are stored in

Preview
ArrayList<Point> next = shortestPath(blueDot, targets, blocked); if (next == null) { System.out.println("next is FAIL"); } else { model.setCurrentDot(next.get(1).getX(), next.get(1).getY()); } } private ArrayList<Point> shortestPath(Point start, Point[] targets, ArrayList<Point> blocked) { LinkedList<ArrayList<Point>> queue = new LinkedList<ArrayList<Point>>(); ArrayList<Point> initialPosition

Preview
public static final int SELECTED = 1; public static final int DOT = 2; public static final double PROBABILITY = 10; private static int size; // Data Fields private int[][] board; private int numSteps; private Point dotPosition; private Random

Preview
the game (already initialized) * @param gameController * the controller */ public GameView(GameModel model, GameController gameController) { super("--- Dot! The Game! ---"); this.model = model; this.gameController = gameController; setDefaultCloseOperation(EXIT_ON_CLOSE); boardView = getBoardView(); drawFrame(); pack(); setResizable(false);

Preview
Point { // Data Fields private int x; private int y; /** * Constructor * * @param x * the x coordinate * @param y * the y coordinate */ public Point(int x, int y) {

circle the dot.png (167 K) Download Preview

Screenshots
Screenshot
Screenshot
Screenshot
Screenshot
Purchase Answer