Created
January 13, 2013 19:22
-
-
Save alexchiri/4525770 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 com.alexchiri; | |
import com.alexchiri.bank.Bank; | |
import com.alexchiri.bank.MoneyBag; | |
import com.alexchiri.robber.Heist; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
/** | |
* Alexandru Chiritescu | |
* 13-1-13 | |
*/ | |
public class CrimeSetup { | |
public static void main(String[] args) { | |
List<MoneyBag> moneyBags = new ArrayList<MoneyBag>(); | |
int randomNumber = Math.abs(new Random().nextInt(100)); | |
System.out.println("Random number of money bags to load the safe with: " + randomNumber); | |
for(int i = 0; i< randomNumber; i++) { | |
moneyBags.add(new MoneyBag()); | |
} | |
Bank bank = new Bank(moneyBags, "Cool bank"); | |
Heist heist = new Heist("Skeets", 5, bank); | |
heist.robbBank(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment