Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
2102-Group-Project-Spring-2017/src/controller/Cashflow.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52 lines (39 sloc)
940 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controller; | |
import view.*; | |
import model.*; | |
public class Cashflow | |
{ | |
private GameBoard _board; | |
private Player[] _players; | |
private CardStack[] _cards; | |
public static void main(String[] args) | |
{ | |
/* | |
* Just testing stuff in here for now. Main method will call the go() method when game is built | |
*/ | |
MarketStack ms = new MarketStack(); | |
int initialSize = ms.getSize(); | |
for(int i=0; i<initialSize; i++) | |
{ | |
int num = i+1; | |
System.out.println(num + ": " + ((MarketCard) ms.pop()).getTitle()); //Always going to need this cast when getting description unfortunately | |
} | |
} | |
public void go() | |
{ | |
// Joe | |
// Initialize game board | |
// Initialize GUI | |
// Initialize players (pick professions) | |
// Initialize cards | |
/* | |
* Start game: | |
* calls play function that has a | |
* while loop that repeats until either a player wins or | |
* someone elects to quit | |
*/ | |
} | |
public void play() | |
{ | |
} | |
} |