The cOde
@e.mccormick
you need those 2 files i made the program read that file too :) very big step haha
Well, looks like you are really getting into the object orientated part.
why do you say that
Declaring classes with constructors.
oh ya :)
i just want all the players to be able to check the card status and stuff
and then i wanna create a method under the players that gets the different cards they have and stuff
the hardest part!! was figuring out how to generate all those card objects
till i finally realized you can have a dictionary with object values
i was trying a whole bunch of stuff for that
Hehe. 52 of them. I did something with them in C++... I should find all my old code sometime. Even from a different language it can be useful to see how it is done, then you write a version in the language you are working in.
oh hey right now
this is how the player checks the price of a card board_dict['Illinois Ave.'].price
how do i change this way
i want the user to be able to enter something simpler like just illinois.price
seems like a too much work to check a card though
Well, it depends on the interface. Usually you will have the cards in some sort of dictionary, array, etc. Then you build a way to search for things. A common search trick is to convert the search and the lookup keys all to one case, upper or lower, and see if they match. But if you plan to do this all in a graphical interface, how a person searches may be as simple as clicking on an object.
Join our real-time social learning platform and learn together with your friends!