nus-cs2030 / 2122-s2

CS2030 repository and wiki for AY 2021/2022 Sem 2
MIT License
0 stars 0 forks source link

Lab 8 Test6_1 #301

Open JaredLauZilek opened 2 years ago

JaredLauZilek commented 2 years ago

Summary

Any idea why my sword is shimmering so many times, it is not my add method but smtg else but i cant figure it out Description of the question / problem here.

Description:

Clarifications or details with respect to the issue you are facing

Code Snippets

Attach code snippets (if any)

Screenshots

Screenshots (if any)

Screenshot 2022-04-12 at 10 48 53 AM
kkinmunn commented 2 years ago

You may want to check that when you go from eg. Room 1 to Room 2, if you Sword is being taken on hand, the sword in Room 1 should move into Room 2 and Room 1 does not have any Sword left. Hope this helps!

zuohui48 commented 2 years ago

I think it might be that you didnt remove the sword from the previous room. When you take sword and bring it to next room, the room you left from should not have a sword anymore

Dxseah commented 2 years ago

you might need to check your go() function to see if the implementation is correct, make sure the sword is removed from the old room if taken

Shaun911 commented 2 years ago

i believe that you need to remove the sword from the first room first when you bring the sword to the next room

jlee1007 commented 2 years ago

you should remove the sword once it is taken, this could be the reason the sword appears so many times!