Saturday, 1 June 2013

Plan, plan, strict plan!

Okay, so here goes. 

I'm going to finish all the excess stuff that I need to finish for the user tomorrow - and start on the Computer part. 

This will be done - after the user has finished their turn, they can click a button on the east pane saying, "Com Pewter, go!" 

This button, of course, will be added to the mouseListener and: 

if (whatClicked.getSource()==thatButton)
{
Roll the dice. 

Move the player[1].col += die1+die2; 

//All the if statement so that if player[1].col>37, move __ that many squares (start at the beginning). 

JOptionPane this to the user telling the computer has landed on ___ property. 

if (square[player[1].co].owner.equals("User"))
{
JOptionPane to the user telling them that the Com Pewter has landed on their property, and the computer will pay __ much. 

JOptionPane telling user amount of money in Gringotts Account

square[player[1].col].turn++; 


else if (square[player[0].col].owned == false)
{
int y = random number for 10000 numbers. 

if ((y%2)==0) Purchase the property - display JOptionPane telling the user Com Pewter has purchased it.

else Don't purchase and display JOptionPane telling user that the Com Pewter didn't purchase it, and that it is the user's turn. 


else if (they are coordinates for room of requirement)
{
Paste the room of requirement text here - and the computer will randomly decide each yes/no answer. 

Print out JOptionPane to tell the user this later. 



Okay, well, this turned into pseudocode, by accident! this can be a planning, thing, but oh well. It was helpful.  Anyways, uh, after that, I still have to do the following things: 


  • User's Manual
  • Create JMenu to include about screen (containing who wrote the program, what "version" it is; include instructions (can be the same thing as the manual)
  • Ask for User's name and print it out to the frame as "Hello ________" for a try catch statement
    • If time permits, print out high scores using file input and file output!

No comments:

Post a Comment