Mugwhyrt / adventuregame

Text based adventure game adapted from code by Phillip Johnson
MIT License
0 stars 0 forks source link

Implement Prop Class #5

Open Mugwhyrt opened 4 years ago

Mugwhyrt commented 4 years ago

prop class

Implement a Prop class. Prop class is a composite object with the following attributes:

required methods: readFromTSV(file) : reads a tsv file of prop types

Required for to-do item for issue #2

to do

Mugwhyrt commented 4 years ago

5/20 TO DO:

Mugwhyrt commented 4 years ago

5/21 TO DO:

Mugwhyrt commented 4 years ago

5/22 TO DO:

Mugwhyrt commented 4 years ago

5/25 TO DO:

Mugwhyrt commented 4 years ago

5/26 TODO:

SOLVED: Error was related to how copies of a Prop were made when calling the class method copy() Prop.copy() used copy.copy(), which returned a shallow copy that referenced the original object. Changed Prop.copy() to use copy.deepcopy(), so it now returns a wholly new object with equivalent values.