Skip to content

Instantly share code, notes, and snippets.

Created April 24, 2013 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5454455 to your computer and use it in GitHub Desktop.
Save anonymous/5454455 to your computer and use it in GitHub Desktop.
package Roulette;
import java.util.Collection;
import java.util.Set;
public class Test {
public static void main(String[] args) {
Outcome outcome1 = new Outcome("2",1);
Outcome outcome2 = new Outcome("2",1);
Outcome outcome3 = new Outcome("4",87);
System.out.println(outcome1.toString());
System.out.println(outcome1.winAmount(33));
System.out.println(outcome1.equals(outcome2));
System.out.println(outcome1.equals(outcome3));
Outcome five= new Outcome( "00-0-1-2-3", 6 );
Outcome[] ocZero = {
new Outcome("0", 35 ), five };
Outcome[] ocZeroZero = {
new Outcome("00", 35 ), five };
Bin zero= new Bin( ocZero );
Bin zerozero= new Bin( ocZeroZero );
zero.add(outcome1);
System.out.println(zero.toString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment