Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Search the Community

Showing results for tags 'gamble'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • TRiBot
    • News and Announcements
    • Old School Scripts
    • Help and Guidance
    • Development
    • Bugs and Errors
    • Tutorials
  • Scripters' Forums
    • Scripter Application
  • RuneScape®
    • General
    • Guides/Tutorials
    • Achievements
  • General
    • General
    • Questions
    • Discussions & Debates
    • Introductions
    • Suggestions
    • Feedback
  • The Black Market
    • Disputes
    • Repository Credits
    • Gold Exchange
    • Item Exchange
    • Membership Sales
    • Services
    • Other
    • Middleman Services


  • Getting Started With TRiBot
  • The Best Way To Get Rid Of Termites
  • How to Generate Real Estate Leads Using Twitter
  • A Guide to Landing Pages
  • Dog Grooming in Sydney – 5 steps to finding a grooming salon
  • Cheap RS 2007 Gold for Spring 2020!
  • Logo Design Mistakes- Your Business Should Avoid at All Cost
  • Effective Pest Control Measures
  • В Алматы карантин из-за коронавируса: жизнь в условиях пандемии
  • Preschool Educational Toys, Helping One's Child Prepare For the Future
  • Automating Tribot
  • Payment error
  • Animal Crossing: New Horizons Cuts Player Interest Rates
  • network-security-engineer
  • The best place to buy Animal Crossing Bells
  • Major Content of Escape from Tarkov Patch Optimizations
  • You need to rest properly when playing Rocket League
  • Escape from Tarkov hits 200k concurrent players
  • List of Rocket League Ranking System
  • Should I need to run a paid ad campaign, when organically I rank well?
  • How to play Rocket League
  • Twitch Drops Come Back in Escape from Tarkov
  • The Path of Exile game features
  • Be more seen
  • Rocket League Took Actions to Fight Racism and Discrimination in the Game 
  • Rocket League camera setting 
  • Animal Crossing -List of Wedding Season Rewards
  • What WoW Classic race and sophistication is best?
  • FIFA 21 Coming to Steam
  • The Ideal Place for Global Players to Buy and Sell Rocket League Items 
  • Customize furniture in Animal Crossing: New Horizons
  • ABOUT NBA 2K20
  • Purchase Cheap RL Items from Lolga.com to set aside bunches of Cash 
  • Ethan Smith
  • How much does WoW Classic cost?
  • Special Olympics NY partners with Mission Control for Rocket League competitions
  • Rocket League:Premium Challenges and Rewards
  • The things Psyonix has made for this occasion are generally birthday-themed
  • Epic Games Store version of Rocket League
  • The Rocket League people group quickly got their pitchforks and took to Reddit
  • The arrival of cross-platform progression means changes to player-to-player trading
  • will Rocket League Credits stay dynamic

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Found 2 results

  1. Hello i'm a new Java coder and im starting to make one of my firsts "cool" Java projects. It's a flower game program. It works as follows: •You first choose one number which would equal a flower colour, for example number 1 would equal red. •You then choose an ammount to bet. •A random color pops on the console. If you guessed it then your bet multiplies by 2. Else, you loose. I would really appriciate if some one would help me create a "Wallet System". You would basically start with a default wallet. If you win, your bet multiplies by 2 as the program already does, but your wallet is now higher, and you can eventually bet more. If you loose, your wallet's balance would go down and you will now have to bet lower.. I would like to do it so that every time you run the program, your wallet does not reset. I would like to know how can i instead of typing a number to select my flower colour, i could just type in the flower's name. Like red, or yellow. I'l leave you my game's code down here: import java.util.Random; //Imports import java.util.Scanner; public class main { public static String[] flowerGame = {"Red" , "Purple", "pastel", "yellow", "orange", "rainbow"}; //Array. public static Random rand = new Random(); //Makes new Random number Gen. public static Scanner scan = new Scanner(System.in); //Makes new Scanner. public static int random; public static int number; public static int bet; public static int doublebet; public static void main(String[] args) { System.out.println("Please enter a number 0 to 5"); System.out.println("Red = 0 Purple = 1 Pastel = 2 yellow = 3 Orange = 4 Rainbow = 5 "); //Flower which equals user's number pick. number = scan.nextInt(); //Number user picks . random = rand.nextInt(flowerGame.length); //Creates a random index number. Max random number would be max index number. if(number > (flowerGame.length)){ System.out.println("Sorry the number was too high."); } //If user's number is higher than any index number then Exit program. else{ //Opens first else Statement. System.out.println("Please enter how much gold would you like to bet"); bet = scan.nextInt(); /* Takes gold bet */ System.out.println(flowerGame[random]); //Print's flower color. if(random == number){ //If they number picked and index random number were equal doublebet = bet*2; //Multiplies gold bet by 2 System.out.println("You win " + doublebet + " gold!"); //Win message }else{ //If they were not equal System.out.println("You loose."); //You loose } } //Closes first else statement. } //Closes Main method. } //Closes class. Thank's every one who is willing to help.
  • Create New...