Monday, April 14, 2008

A little project I'm working on now...

One of my fav. games :)

public class Monopoly {
private Property [] gameboard = new Property[40];
//create new game board

public Monopoly()
{
gameboard[0] = new Property("Go");
gameboard[1] = new Property("Mediterranean");
gameboard[2] = new Property("Community Chest");
gameboard[3] = new Property("Baltic");
gameboard[4] = new Property("Income Tax");
gameboard[5] = new Property("Reading Railroad");
gameboard[6] = new Property("Oriental");
gameboard[7] = new Property("Chance");
gameboard[8] = new Property("Vermont");
gameboard[9] = new Property("Connecticut");
gameboard[10] = new Property("Jail");//all okay
gameboard[11] = new Property("St. Charles");
gameboard[12] = new Property("Electric");
gameboard[13] = new Property("States");
gameboard[14] = new Property("Virginia");
gameboard[15] = new Property("Pennslyvania Railroad");
gameboard[16] = new Property("St. James");
gameboard[17] = new Property("Community Chest");
gameboard[18] = new Property("Tennessee");
gameboard[19] = new Property("New York");
gameboard[20] = new Property("Free Parking");
gameboard[21] = new Property("Kentucky");
gameboard[22] = new Property("Chance");
gameboard[23] = new Property("Indiana");
gameboard[24] = new Property("Illinois");
gameboard[25] = new Property("B&O Railroad");
gameboard[26] = new Property("Atlantic");
gameboard[27] = new Property("Ventnor");
gameboard[28] = new Property("Waterworks");
gameboard[29] = new Property("Marvin Gardens");
gameboard[30] = new Property("Go to jail");
gameboard[31] = new Property("Pacific");
gameboard[32] = new Property("North Carolina");
gameboard[33] = new Property("Community Chest");
gameboard[34] = new Property("Pennslyvania");
gameboard[35] = new Property("Short Line Railroad");
gameboard[36] = new Property("Chance");
gameboard[37] = new Property("Park Place");
gameboard[38] = new Property("Luxury Tax");
gameboard[39] = new Property("Boardwalk");
//all full!
}
public int[] returnOwner()
{
int []i = new int[40];

}

No comments: