<p>@youngster9</p>
<p>The previous location and direction in the act method, not sure if you had to declare static or not</p>
<p>@youngster9</p>
<p>The previous location and direction in the act method, not sure if you had to declare static or not</p>
<p>At this point is obvious that restore() was not meant to be called. The main reason I called it was because every example showed it occurring immediately after. On top of that as I was already beat up from the multiple choice that I wasn’t at full aptitude. I’m just hoping it doesn’t take off many points. If enough people made that mistake, it was clear that the directions were too easily misunderstood.</p>
<p>They could have said something like “…add the functionality to restore if wanted.”. Instead it used the keyword “can” which can be interrupted two ways, commonly as if wanted to, or has the ability to (as in it will.).</p>
<p>That’s why it bugs me.</p>
<p>I also screwed up on the 2d arrays. I used .getNumRows and .getNumCols (gridworld method =(). I think its only a 1/2 point or so off.</p>
<p>Guys, the MC was HARDER than I expected. Out of all the practice tests I took, this test’s MC was the HARDEST! WAY too much iteration, and too much checking and reading code. The FR was easy though, and the only one I might have gotten slightly wrong is the 2nd question with gridworld. I thin I got like 1 37 on the FR, but like a 25-30 ish on the MC. Just praying I got a 5…</p>
<p>@dblocks
I had those as instance fields so that they could be universal to the entire class. I had a method to check if previous Location was free to move to because if a critter or another bug moved into your previous location you can’t move there. So since I had multiple methods I had instance fields.</p>
<p>@ZeldaMaster123
I did not make anything static, it would not have to be used outside of that class. I should have made them private but I forgot to, which will probably get a point or a half off. All I did in restore was determine if the old location contained ‘null’ or an instance of a flower, if so, he would go back, if not, he would simply restore to the old direction, but nothing else. I could not tell if they wanted it to restore direction if it did not restore location.</p>
<p>Heck, the MC barely tested you on any real concepts, just stupid syntax!</p>
<p>The MC took a long time to do with all the code and hand writing the loops. Didn’t see any sorting/searching questions . .</p>
<p>Would canMove() work? instead of instance of : flower?</p>
<p>@HxCKhaos</p>
<p>The canMove() would work I think, since it determines if the location is empty or flower. I used the isValid, not sure if it’s right</p>
<p>yeah, I thought some of the MC questions were way too long. It was so different from the Barron’s practice tests where everything was concept rather than syntax…
anyway, I hope the curve 4 this year will be low!</p>
<p>@HxCKhaos
I took the idea from canMove, but I am not sure if it works because the location it uses is just the location in front of the bug. I created a version of canMove that used the previous location, since canMove does not take arguments.</p>
<p>@dblocks
Okay, just use gr. get(location)method and use instanceof</p>
<p>I was being discrete but I made sure to set the direction toward the original location before checking canMove()</p>
<p>Instead of super.act, I copied the code for that method in bug…that’s fine, right?</p>
<p>Also, they don’t care about efficiency, right? Because for one array problem, I created an ArrayList with a similar number of elements and changed the array based on the ArrayList…that seemed easier to write than anything manipulating arrays, but the computer would have a harder time implementing it…</p>
<p>Wait, how many points do you think i’ll get off for declaring int dir and Location loc static?</p>
<p>hey i just wanted to know how were the practice tests compared to this one. Were you guys getting 5s on it. I just want to get a feel of how hard this test was.</p>
<p>remember, they sometimes will give you points for just OVERRIDING THE ACT METHOD! They’ll even give you points for having instance variables that track the last location/direction. You don’t need perfect code.</p>
<p>canMove() would not work, you had to make a new method. I made one called checkPreviousLocation() using the instance fields I had for previous location and direction.</p>
<p>Isn’t there some number you can call to report an ambiguity in the test questions?</p>
<p>The MCQ’s were just plain disappointing. Someone slow at analytical processing who spent a lot of time committing java concepts to memory would run out of time, while someone with a fast brain for those things could pull off a really good MC score (I mean like seriously? recursion/loops/control flow was like 5/6 the test) without knowing much about anything else. meh just a bit annoyed here that so much of what we studied never made it to the test</p>