Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2013 13:47
Show Gist options
  • Save anonymous/5473187 to your computer and use it in GitHub Desktop.
Save anonymous/5473187 to your computer and use it in GitHub Desktop.
package Roulette;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.TreeSet;
public class Game {
public static void main(String[] args) {
Table table = new Table();
BinBuilder bb = new BinBuilder();
// Passenger57 p57 = new Passenger57(table);
// p57.placeBets();
Outcome black = new Outcome("Black", 35);
Bet bet = new Bet(10, black);
table.placeBet(bet);
Bin bin = bb.wheel.get(8);
System.out.println(bin.toString());
System.out.println(table.bets.toString());
System.out.println(black.toString());
ListIterator<Bet> i = table.bets.listIterator();
Iterator<Outcome> b = bin.outcomes.iterator();
while(i.hasNext()) {
System.out.println(i.next().outcome.name.toString());
while(b.hasNext()){
System.out.println(b.next().name.toString());
if(i.next().outcome.equals(b.next())){
System.out.println("Yeah!");
}
else System.out.println("No :/");
}
}
}
NonRandom nrng;
Wheel wheel;
Table table;
public Game(Wheel wheel, Table table){
this.wheel = wheel;
this.table = table;
}
void cycle(Passenger57 player){
player.placeBets();
wheel.next();
table.iterator();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment