Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package PrimeBot;
- import java.io.BufferedReader;
- import java.io.DataOutputStream;
- import java.io.InputStreamReader;
- import java.net.URL;
- import java.text.SimpleDateFormat;
- import java.util.Date;
- import java.util.Random;
- import javax.net.ssl.HttpsURLConnection;
- //import javax.swing.text.GapContent;
- import java.awt.*;
- import org.json.JSONObject;
- public class PrimeBot {
- private final String USER_AGENT = "Mozilla/5.0";
- private static String accessToken;
- private static String txid;
- private static double newBal;
- private static double maxBets;
- public static String username;
- public static String password;
- public static final String LESS = "<";
- public static final String BIG = ">";
- public static String direction = LESS;
- private static UserStats meStats = new UserStats();
- public static int delay = 300;
- public static double nextBetAmount;
- public static double target = 20;
- public static double baseBet = 40;
- public static double increaseOnLossMultiplier = 1.25;
- public static int betType;
- public static int luckyBets;
- public static int zigZag = 5;
- public static int changeSeed = 5;
- public static int warnAlert = 5;
- public static int stopLoss = 5;
- public static int resetLoss = 5;
- public static double chance;
- public static double withdrawTarget;
- public static double withdrawAmount;
- public static String swithdrawAmount;
- public static String withdrawAddress;
- public static int successHTTP = 0;
- public static double sessionProfitTarget = 100000;
- public static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
- public static void main(String[] args) throws Exception
- {
- PrimeBot primeBot = new PrimeBot();
- System.out.println("\nPrimedice Better Bot 1.0 ");
- System.out.println("by blayzer");
- System.out.println("\nOriginal code from daCoops (https://bitcointalk.org/index.php?topic=833129)");
- System.out.println("\nPlease consider donating: 1BtDA32VwButWhsE4343AqfJt3EnnvjPZL");
- System.out.println();
- if(args.length == 0)
- {
- System.out.println("No parameters supplied.");
- System.out.println("java -jar PBBot.jar [Username] [Password] [Base Bet] [Base Betmode] [LuckBets] [Target] [Increase On Loss Multiplier] [ZigZag] [Randomize Seed] [Warning Alert] [Reset on Loss] [Stop on Loss] [Profit Target] [Withdraw on Balance] [Withdraw Amount] [Withdraw Address]");
- System.out.println("e.g.");
- System.out.println("java -jar PBBot.jar Bob Bob123 16 1 0 49.5 2.0 9 9 10 4 99 0.001 0.0024378 0.0011 1BtDA32VwButWhsE4343AqfJt3EnnvjPZL");
- System.out.println("java -jar PBBot.jar Bob Bob123 0.0000152590218966964 51.5 2.1 10000 5 10 12 0 2");
- System.out.println("java -jar PrimeBot.jar Bob Bob123 0.00000001 51.5 2.1 10000 5 10 12 1 0");
- System.out.println("\t[Base Bet]:\n\t\tYour Base Bet. entering a value of 0.00000001, represents PrimeDice lowest bet - 0.00000001 BTC if used with the proper betmode.");
- System.out.println("\t[Base Betmode]:\n\t\t1 specifies base bet will be treated as x number of max bets. 2 indicates it's a multiplier for the bankroll balance. 0 will set it as a direct base bet in 0.00000000 format. ");
- System.out.println("\t[LuckBets]:\n\t\tSet to 0 or 1. When enabled, base bet is reduced by 1/2 when luck is > 100% as loss is expected due to the law of large numbers. This gives player an extra bet in the event of a bad streak.");
- System.out.println("\t[Target]:\n\t\tThe Win Chance. e.g. 51.5 represents a win chance of 51.5%");
- System.out.println("\t[Increase On Loss Multiplier]:\n\t\tThe Factor increase to increase your bet on loss. CAUTION! This is a multiplier and NOT a Percentage. e.g. 2.1 Will Multiply Previous Bet * 2.1 on loss for next wager");
- System.out.println("\t[ZigZag]:\n\t\tSwitch hi/lo after this many losses.");
- System.out.println("\t[Randomize Seed]:\n\t\tRandomize client seed after this many losses.");
- System.out.println("\t[Warning Alert]:\n\t\tPlay alert sound after this many losses (Windows Beep)");
- System.out.println("\t[Reset on Loss]:\n\t\treset back to base bet after this many losses");
- System.out.println("\t[Stop on Loss]:\n\t\tstop betting after this many losses");
- System.out.println("\t[Profit Target]:\n\t\tTarget Profit for the session.");
- System.out.println("\t[Withdraw on Balance]:\n\t\tAutomatically withdraw when balance reaches this amount.");
- System.out.println("\t[Withdraw Amount]:\n\t\tWithdraw this amount.");
- System.out.println("\t[Withdraw Address]:\n\t\tBitcoin address to receive withdrawal.");
- System.out.println();
- System.out.println("Reminder of how this works..");
- System.out.println("You set the Base Bet Amount, Profit Target, and Win Chance, and then the bot will bet as fast as it can until profit target has been reached.");
- System.out.println("On a loss, it will increase the base bet by a factor of the Multiplier entered. On win, it resets back to base.");
- System.exit(0);
- }
- else
- {
- try {
- username = args[0];
- password = args[1];
- baseBet = Double.parseDouble(args[2]);
- betType = Integer.parseInt(args[3]);
- luckyBets = Integer.parseInt(args[4]);
- target = Double.parseDouble(args[5]);
- increaseOnLossMultiplier = Double.parseDouble(args[6]);
- zigZag = Integer.parseInt(args[7]);
- changeSeed = Integer.parseInt(args[8]);
- warnAlert = Integer.parseInt(args[9]);
- resetLoss = Integer.parseInt(args[10]);
- stopLoss = Integer.parseInt(args[11]);
- sessionProfitTarget = Double.parseDouble(args[12]);
- withdrawTarget = Double.parseDouble(args[13]);
- withdrawAmount = Double.parseDouble(args[14]);
- withdrawAddress = args[15];
- }
- catch(Exception e)
- {
- System.out.println("Problem reading arguments. Please try again.");
- System.exit(0);
- }
- }
- java.security.Security.setProperty("networkaddress.cache.ttl" , "0");
- Thread.sleep(5000);
- System.out.println("Initializing startup sequence... ");
- System.out.println("\nSystem Settings:");
- System.out.println("Base Bet: " + baseBet);
- System.out.println("Bet Mode: " + betType);
- System.out.println("Adjust on luck " + luckyBets);
- System.out.println("Chance: " + target);
- System.out.println("Zig Zag every " + zigZag + " losses");
- System.out.println("Randomize Client Seed after " + changeSeed + " losses");
- System.out.println("Warning alert after: " + warnAlert + " losses");
- System.out.println("Reset base bet after: " + resetLoss + " losses");
- System.out.println("Stop betting after: " + stopLoss + " losses");
- System.out.println("Profit Target: " + sessionProfitTarget);
- System.out.println("Withdraw on Target: " + withdrawTarget);
- System.out.println("Amount to Withdraw: " + withdrawAmount);
- System.out.println("Withdraw Address: " + withdrawAddress);
- System.out.println();
- primeBot.doLogin();
- try {
- Thread.sleep(2000); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- primeBot.doStats();
- try {
- Thread.sleep(1000); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- System.out.println("\nUsername: " + meStats.getUsername());
- System.out.println("Balance: " + String.format("%.8f", (meStats.getBalance()/100000000)));
- System.out.println("Deposit Address: " + meStats.getAddress());
- chance = (target/100);
- maxBets = Math.pow(2,baseBet);
- sessionProfitTarget = (sessionProfitTarget * 100000000);
- withdrawAmount = (withdrawAmount * 100000000);
- if (betType == 1)
- {
- nextBetAmount = Math.round(meStats.getBalance() / maxBets);
- }
- else if (betType == 2)
- {
- nextBetAmount = Math.round(meStats.getBalance() * baseBet);
- }
- else
- {
- nextBetAmount = (baseBet * 100000000);
- }
- JSONObject currentBet = new JSONObject();
- int lostCount = 0;
- int seedLostcount = 0;
- int lostResetcount = 0;
- int zzCount = 0;
- int lostCnt = 0;
- int winCnt = 0;
- double winCount = 0;
- int highestLoss = 0;
- double luck;
- System.out.println("\nInitializing betting routine...");
- System.out.println();
- while (meStats.getProfitSession() < sessionProfitTarget)
- {
- // Main betting loop
- try
- {
- currentBet = primeBot.doBet();
- }
- catch(Exception e )
- {
- System.out.println(e.getMessage());
- try {
- Thread.sleep(2000); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- }
- if (currentBet != null)
- {
- successHTTP = successHTTP + 1;
- meStats.updateProfitSession(currentBet.getDouble("profit"));
- newBal = (meStats.getProfitSession() + meStats.getBalance());
- //added to count maxbets
- double nxtBet = nextBetAmount;
- int numBets = 0;
- while (nxtBet < meStats.getBalance())
- {
- nxtBet = Math.round(nxtBet * increaseOnLossMultiplier);
- numBets = numBets +1;
- }
- if (!currentBet.getBoolean("win"))
- {
- lostCnt = lostCnt + 1; //total losses counter
- seedLostcount = seedLostcount + 1;
- lostCount = lostCount + 1; //longest streak counter
- zzCount = zzCount + 1; //zigzag counter
- lostResetcount = lostResetcount + 1;
- if (lostResetcount >= resetLoss)
- {
- if (betType == 1)
- {
- nextBetAmount = Math.round(meStats.getBalance() / maxBets);
- }
- else if (betType == 2)
- {
- nextBetAmount = Math.round(meStats.getBalance() * baseBet);
- }
- else
- {
- nextBetAmount = (baseBet * 100000000);
- }
- lostResetcount = 0;
- }
- else
- {
- nextBetAmount = Math.round(nextBetAmount * increaseOnLossMultiplier);
- }
- if (zzCount >= zigZag)
- {
- if (direction.equals(LESS))
- {
- direction = BIG;
- target = (100 - target);
- zzCount = 0;
- }
- else
- {
- direction = LESS;
- target = (100 - target);
- zzCount = 0;
- }
- }
- }
- else
- {
- if (betType == 1)
- {
- nextBetAmount = Math.round(newBal / maxBets);
- }
- else if (betType == 2)
- {
- nextBetAmount = Math.round(newBal * baseBet);
- }
- else
- {
- nextBetAmount = (baseBet * 100000000);
- }
- if (luckyBets == 1)
- {
- if ((((winCount/(winCnt+lostCnt))/chance)*100) > 100)
- {
- nextBetAmount = nextBetAmount / increaseOnLossMultiplier;
- }
- }
- //longest losing streak counter
- if (highestLoss < lostCount)
- {
- highestLoss = lostCount;
- }
- lostResetcount = 0;
- seedLostcount = 0;
- lostCount = 0;
- zzCount = 0;
- winCnt = winCnt + 1; //total wins counter
- winCount = winCnt;
- }
- luck = (((winCount/(winCnt+lostCnt))/chance)*100);
- System.out.println("\nDATE TIME DEL BET ID NONCE ROLL TARGET STRK LAST BET SES PROFIT BALANCE WINS LOSSES ROLLS LUCK MAX");
- System.out.print(sdf.format(new Date()) + " ");
- System.out.format("%d %10.0f %7d %5.2f %s %5.2f %2d %2d %13.8f %13.8f %13.8f %6d %6d %6d %6.2f %2d", delay,currentBet.getDouble("id"),currentBet.getInt("nonce"),currentBet.getDouble("roll"),direction,target,lostCount,highestLoss,(currentBet.getDouble("profit")/100000000), (meStats.getProfitSession()/100000000),(newBal/100000000),winCnt,lostCnt,(winCnt+lostCnt),luck,numBets);
- System.out.println();
- if (seedLostcount >= changeSeed)
- {
- //Thread.sleep(5000);
- primeBot.doSeedchange();
- try {
- Thread.sleep(1000); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- seedLostcount = 0;
- }
- if ((newBal/100000000) > withdrawTarget)
- {
- System.out.println("\nWithdrawal target attained.");
- primeBot.doWithdraw();
- try {
- Thread.sleep(1000); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- primeBot.doStats();
- try {
- Thread.sleep(1000); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- System.out.println("Balance: " + String.format("%.8f", (meStats.getBalance()/100000000)));
- }
- //warning alert
- if (lostCount >= warnAlert)
- {
- Toolkit.getDefaultToolkit().beep();
- }
- //stop loss
- if (lostCount >= stopLoss)
- {
- System.out.println();
- Toolkit.getDefaultToolkit().beep();
- System.out.println("Stop loss reached. Halting");
- System.exit(0);
- }
- if (successHTTP == 20)
- {
- delay = delay -1;
- successHTTP = 0;
- }
- try {
- Thread.sleep(delay); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- }
- else
- {
- successHTTP = 0;
- //System.out.println("Slowing down....");
- try {
- Thread.sleep(10); //1000 milliseconds is one second.
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- delay = delay + 1;
- }
- }
- System.out.println();
- System.out.println("Session profit target attained. Stopped.");
- }
- // Login
- private void doLogin() throws Exception
- {
- String url = "https://api.primedice.com/api/login";
- URL obj = new URL(url);
- HttpsURLConnection con = (HttpsURLConnection) obj.openConnection();
- //add reuqest header
- con.setRequestMethod("POST");
- con.setRequestProperty("User-Agent", USER_AGENT);
- con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
- String urlParameters = "username=" + username + "&password=" + password;
- //System.out.println("\nSending 'POST' request to URL : " + url);
- //System.out.println("Post parameters : " + urlParameters);
- System.out.println("Logging in...");
- System.out.println("Username: " + username);
- System.out.println("Password: " + password);
- // Send post request
- con.setDoOutput(true);
- DataOutputStream wr = new DataOutputStream(con.getOutputStream());
- wr.writeBytes(urlParameters);
- wr.flush();
- wr.close();
- int responseCode = con.getResponseCode();
- System.out.println("Response Code : " + responseCode);
- BufferedReader in = new BufferedReader(
- new InputStreamReader(con.getInputStream()));
- String inputLine;
- StringBuffer response = new StringBuffer();
- while ((inputLine = in.readLine()) != null) {
- response.append(inputLine);
- }
- in.close();
- //print result
- //System.out.println(response.toString());
- JSONObject loginJsonResp = new JSONObject(response.toString());
- accessToken = loginJsonResp.getString("access_token");
- //System.out.println("\nAccess Token: "+ accessToken);
- }
- private JSONObject doBet() throws Exception
- {
- String url = "https://api.primedice.com/api/bet?access_token=" + accessToken;
- URL obj = new URL(url);
- HttpsURLConnection con = (HttpsURLConnection) obj.openConnection();
- //add reuqest header
- con.setRequestMethod("POST");
- con.setRequestProperty("User-Agent", USER_AGENT);
- con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
- con.setRequestProperty("origin","https://primedice.com");
- con.setRequestProperty("referer","https://primedice.com/play");
- con.setRequestProperty("cache-control","no-cache");
- con.setRequestProperty("pragma","no-cache");
- String urlParameters = "amount="+nextBetAmount + "&condition=" + direction + "&target=" + target;
- // Send post request
- con.setDoOutput(true);
- DataOutputStream wr = new DataOutputStream(con.getOutputStream());
- wr.writeBytes(urlParameters);
- wr.flush();
- wr.close();
- int responseCode = con.getResponseCode();
- // System.out.println("Betting HTTP Response Code : " + responseCode);
- if (responseCode == 200)
- {
- BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
- String inputLine;
- StringBuffer response = new StringBuffer();
- while ((inputLine = in.readLine()) != null) {
- response.append(inputLine);
- }
- in.close();
- // test print out
- //System.out.println(response.toString());
- JSONObject betResult = new JSONObject(response.toString());
- return betResult.getJSONObject("bet");
- }
- else
- {
- return null;
- }
- }
- private JSONObject doWithdraw() throws Exception
- {
- String url = "https://api.primedice.com/api/withdraw?access_token=" + accessToken;
- URL obj = new URL(url);
- HttpsURLConnection con = (HttpsURLConnection) obj.openConnection();
- //add reuqest header
- con.setRequestMethod("POST");
- con.setRequestProperty("User-Agent", USER_AGENT);
- con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
- con.setRequestProperty("origin","https://primedice.com");
- con.setRequestProperty("referer","https://primedice.com/play");
- con.setRequestProperty("cache-control","no-cache");
- con.setRequestProperty("pragma","no-cache");
- String urlParameters = "amount=" + withdrawAmount + "&address=" + withdrawAddress;
- System.out.println("\nInitiating withdrawal...");
- // Send post request
- con.setDoOutput(true);
- DataOutputStream wr = new DataOutputStream(con.getOutputStream());
- wr.writeBytes(urlParameters);
- wr.flush();
- wr.close();
- int responseCode = con.getResponseCode();
- System.out.println("Withdraw HTTP Response Code : " + responseCode);
- if (responseCode == 200)
- {
- BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
- String inputLine;
- StringBuffer response = new StringBuffer();
- while ((inputLine = in.readLine()) != null) {
- response.append(inputLine);
- }
- in.close();
- JSONObject withdrawResp = new JSONObject(response.toString());
- txid = withdrawResp.getString("txid");
- //System.out.println("\nAccess Token: "+ accessToken);
- System.out.println("\nSuccessful withdrawal of " + (withdrawAmount / 100000000) +" to BTC address: " + withdrawAddress);
- System.out.println("TXID: " + txid);
- System.out.println("\nUpdating user balance...");
- //System.out.println(response.toString());
- return withdrawResp;
- }
- else
- {
- return null;
- }
- }
- private JSONObject doSeedchange() throws Exception
- {
- String url = "https://api.primedice.com/api/seed?access_token=" + accessToken;
- URL obj = new URL(url);
- HttpsURLConnection con = (HttpsURLConnection) obj.openConnection();
- //add reuqest header
- con.setRequestMethod("POST");
- con.setRequestProperty("User-Agent", USER_AGENT);
- con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
- con.setRequestProperty("origin","https://primedice.com");
- con.setRequestProperty("referer","https://primedice.com/play");
- con.setRequestProperty("cache-control","no-cache");
- con.setRequestProperty("pragma","no-cache");
- char[] chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toCharArray();
- StringBuilder sb = new StringBuilder();
- Random random = new Random();
- for (int i = 0; i < 30; i++) {
- char c = chars[random.nextInt(chars.length)];
- sb.append(c);
- }
- String randomSeed = sb.toString();
- String urlParameters = "seed=" + randomSeed;
- System.out.println("\n\nRandomizing Seed: "+ randomSeed);
- // Send post request
- con.setDoOutput(true);
- DataOutputStream wr = new DataOutputStream(con.getOutputStream());
- wr.writeBytes(urlParameters);
- wr.flush();
- wr.close();
- int responseCode = con.getResponseCode();
- System.out.println("Seedchange HTTP Response Code : " + responseCode);
- if (responseCode == 200)
- {
- BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
- String inputLine;
- StringBuffer response = new StringBuffer();
- while ((inputLine = in.readLine()) != null) {
- response.append(inputLine);
- }
- in.close();
- JSONObject seedChangerespResp = new JSONObject(response.toString());
- return seedChangerespResp;
- }
- else
- {
- return null;
- }
- }
- private void doStats() throws Exception
- {
- String url = "https://api.primedice.com/api/users/1?access_token=" + accessToken;
- URL obj = new URL(url);
- HttpsURLConnection con = (HttpsURLConnection) obj.openConnection();
- //add reuqest header
- con.setRequestMethod("GET");
- con.setRequestProperty("User-Agent", USER_AGENT);
- con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
- con.setRequestProperty("origin","https://primedice.com");
- con.setRequestProperty("referer","https://primedice.com/play");
- con.setRequestProperty("cache-control","no-cache");
- con.setRequestProperty("pragma","no-cache");
- System.out.println("\nRetrieving user info...");
- int responseCode = con.getResponseCode();
- System.out.println("Response Code : " + responseCode);
- BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
- String inputLine;
- StringBuffer response = new StringBuffer();
- while ((inputLine = in.readLine()) != null) {
- response.append(inputLine);
- }
- in.close();
- //System.out.println(response.toString());
- // Parse them to the UserStas Obj - only want the "users" JSON obj
- JSONObject userStats = new JSONObject(response.toString()).getJSONObject("user");
- meStats.parseStats(userStats);
- }
- public static class UserStats {
- private String username;
- private String address;
- private double balance;
- private double wagered;
- private double profit;
- private int bets;
- private int wins;
- private int losses;
- private double wageredSession;
- private double profitSession;
- private int betsSession;
- private int winsSession;
- private int lossesSession;
- public UserStats()
- {
- super();
- this.username = "x";
- this.balance = 0;
- this.wagered = 0;
- this.profit = 0;
- this.bets = 0;
- this.wins = 0;
- this.losses = 0;
- this.wageredSession = 0;
- this.profitSession = 0;
- this.betsSession = 0;
- this.winsSession = 0;
- this.lossesSession = 0;
- }
- public void parseStats(JSONObject userStats)
- {
- this.username = userStats.getString("username");
- this.address = userStats.getString("address");
- this.balance = userStats.getDouble("balance");
- this.wagered = userStats.getDouble("wagered");
- this.profit =userStats.getDouble("profit");
- this.bets = userStats.getInt("bets");
- this.wins = userStats.getInt("wins");
- this.losses = userStats.getInt("losses");
- }
- public void resetSessionStats()
- {
- this.wageredSession = 0;
- this.profitSession = 0;
- this.betsSession = 0;
- this.winsSession = 0;
- this.lossesSession = 0;
- }
- public String getUsername() {
- return username;
- }
- public String getAddress() {
- return address;
- }
- public double getBalance() {
- return balance;
- }
- public void setBalance(double balance) {
- this.balance = balance;
- }
- public double getWagered() {
- return wagered;
- }
- public void setWagered(double wagered) {
- this.wagered = wagered;
- }
- public double getProfit() {
- return profit;
- }
- public void setProfit(double profit) {
- this.profit = profit;
- }
- public int getBets() {
- return bets;
- }
- public void setBets(int bets) {
- this.bets = bets;
- }
- public int getWins() {
- return wins;
- }
- public void setWins(int wins) {
- this.wins = wins;
- }
- public int getLosses() {
- return losses;
- }
- public void setLosses(int losses) {
- this.losses = losses;
- }
- public double getWageredSession() {
- return wageredSession;
- }
- public void setWageredSession(double wageredSession) {
- this.wageredSession = wageredSession;
- }
- public double getProfitSession() {
- return profitSession;
- }
- public void setProfitSession(double profitSession) {
- this.profitSession = profitSession;
- }
- public int getBetsSession() {
- return betsSession;
- }
- public void setBetsSession(int betsSession) {
- this.betsSession = betsSession;
- }
- public int getWinsSession() {
- return winsSession;
- }
- public void setWinsSession(int winsSession) {
- this.winsSession = winsSession;
- }
- public int getLossesSession() {
- return lossesSession;
- }
- public void setLossesSession(int lossesSession) {
- this.lossesSession = lossesSession;
- }
- @Override
- public String toString() {
- return "UserStats [balance=" + balance + ", wagered=" + wagered
- + ", profit=" + profit + ", bets=" + bets + ", wins=" + wins
- + ", losses=" + losses + ", wageredSession=" + wageredSession
- + ", profitSession=" + profitSession + ", betsSession="
- + betsSession + ", winsSession=" + winsSession
- + ", lossesSession=" + lossesSession + "]";
- }
- public void updateProfitSession(double betProfit)
- {
- this.profitSession = this.profitSession + betProfit;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement