Skip to content

Instantly share code, notes, and snippets.

@carsonmcdonald
Created December 10, 2010 04:24
Show Gist options
  • Save carsonmcdonald/735780 to your computer and use it in GitHub Desktop.
Save carsonmcdonald/735780 to your computer and use it in GitHub Desktop.
Lucky 13 - Java
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