Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

I am having a really hard time with classes, methods, inheritance etc. in ps 10 the class 'computer player' inherits from the class 'player'. but recieves as an argument Hand(int, dict). I want to access that int in my pick best word procedure but I cant figure out how to get to it. Thus far I have not seen other examples of a class passed as an argument to another class and how it is handled.

OpenStudy (anonymous):

like this? http://pastebin.com/EVjSDVrs

OpenStudy (anonymous):

Thanks so much. I have been stuck on this for a week! Your example helped me understand a few things I did not grasp before.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!