2023 Expand the attached code Zip File attached for our Crawler game such that it reads in | Assignment Collections

Computer Science 2023 create Caves from a JSON

2023 Expand the attached code Zip File attached for our Crawler game such that it reads in | Assignment Collections

Expand the attached code (Zip File attached) for our Crawler game such that it reads in the cave.dat file and parses it into an actual Cave object. This functionality should allow us to create Caves from a JSON-like text document, rather than “grow” Caves randomly like we are doing now. In the end, you should be able to run the program and play our game in the exact cave that cave.dat represented. You only need to support one cave in this version of the program. So you will not need to declare a winner or move to another cave. You can even just let your program crash as long as you read in the cave.dat file and we can walk through that cave and collect treasure.

Please watch YouTube link of class so you know what to do exactly:

https://www.youtube.com/watch?v=ZmoRs9Xbics&index=10&list=PLgseIkYUa_C8_vdisgJQuZCsrIiq0q_97
https://www.youtube.com/watch?v=_Y94IXHyLLg&index=11&list=PLgseIkYUa_C8_vdisgJQuZCsrIiq0q_97
Small Questions for the expert after the assignment is completed:1) Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial credit where it is due.
2)what would you do differently if you could do this assignment again?

 

 

 

Document Preview:

Crawler/.classpath Crawler/.DS_Store __MACOSX/Crawler/._.DS_Store Crawler/.project Crawler/.settings/org.eclipse.jdt.core.prefs Crawler/bin/.cave.dat.swp Crawler/bin/Cave.class Crawler/bin/cave.dat Crawler/bin/Driver.class Crawler/bin/Game.class Crawler/bin/JSONParser.class Crawler/bin/Room.class Crawler/bin/Stats.class Crawler/src/Cave.javapublic class Cave { private Room entrance; private boolean completed; public Cave(int numberOfRooms) { this.completed = false; do { Stats.reset(); Stats.setMaxRooms(numberOfRooms); this.entrance = new Room(this, 0); } while(Stats.roomCount() != numberOfRooms); } public Room getEntrace() { return this.entrance; } public void play() { this.entrance.enter(); } public void caveComplete() { this.completed = true; } public boolean isCaveComplete() { return this.completed; } } Crawler/src/Driver.javaimport java.io.FileInputStream; import java.util.Scanner; public class Driver { public static void main(String[] args) throws Exception { //Game theGame = new Game(); //theGame.start(); JSONParser jp = new JSONParser(“/Users/awesomefat/Dropbox/Awesomefat/Awesomefat_Workspaces/MikeLitman_Workspace/Eclipse Workspace/Crawler/bin/cave.dat”); jp.parseCave(); } } Crawler/src/Game.java public class Game { private int currCaveSize; private Cave currCave; private int currLevel; public Game() { this.currCaveSize = 4; this.currLevel = 1; this.currCave = new Cave(this.currCaveSize); } public void start() { this.currCave.play(); for(int i = 0; i < 80; i++) { System.out.println(“”); } System.out.println(“****************************”); if(this.currCave.isCaveComplete()) { //winner, make the next cave System.out.println(“WINNER!!!!”); this.currLevel++; System.out.println(“Generating Level: ” + this.currLevel); this.currCaveSize = this.currCaveSize + 2; this.currCave = new…

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational