Created
December 10, 2010 04:24
-
-
Save carsonmcdonald/735780 to your computer and use it in GitHub Desktop.
Lucky 13 - Java
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
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.util.Scanner; | |
public class Lucky | |
{ | |
public static int winnings(int bet) throws Exception | |
{ | |
return "13".equals(new Scanner(((InputStream) new URL("http://roulette.engineyard.com/").getContent())).findInLine("\\d+")) ? bet * 35 : 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment