Friday, 31 May 2013

Hurray!

Okay, so I haven't told the user exactly where they are in the program yet. But I'm pretty close to doing that, then I can program the computer part. So the cool thing is that now, you can't just buy any property - I've limited them to only being able to purchase the ones that they are located on (and that is with a coordinate on the player's object). 

My program is crashing when the column (object variable for user determining where they are in the monopoly) exceeds 37 (understandably). 

So I can do a few things - use if statements up until the number 12 and say that if they are located here __, change the value of column to ___. That would require 12 if/else statements. 

I tried using a try catch - it didn't really wok that well. 

Another thing that I have to add along the bottom is a button saying, "No thank you" or something like that. Or have a JOptionPane pop up asking if the user would like to buy it. Because right now, you can't see where you are - you have to figure out yourself. This is another reason I put buttons along the bottom saying, "Get User Info" , "Roll Die," and "Get Com Pewter Info."

Anyways, going to take a break from Computer Science - be back during the period, LOL. I suppose I could write the user manual on the way to school, on my phone. That works too. And the environmental message! 

No comments:

Post a Comment