Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Release]Simple Java Video Tutorial

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ravicus
Master Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 464

PostPosted: Mon Mar 19, 2007 10:27 am    Post subject: [Release]Simple Java Video Tutorial Reply with quote

Hey guys, I made a tutorial for Java, I know it sucks, but if you havn't coded Java before, its something.
http://axusgames.110mb.com/java1.htm

_________________
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Mon Mar 19, 2007 4:26 pm    Post subject: Reply with quote

I REALLY don't think anyone would need a video tutorial to write a "hello world" program. The thousands of text tutorials on the net are enough.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
ravicus
Master Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 464

PostPosted: Mon Mar 19, 2007 4:28 pm    Post subject: Reply with quote

K. I won't make any more tutorials then.
_________________
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Mon Mar 19, 2007 5:03 pm    Post subject: Reply with quote

Good, should save you some time for other stuff.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
reignofsb
Grandmaster Cheater Supreme
Reputation: 0

Joined: 09 Oct 2006
Posts: 1205
Location: no where

PostPosted: Sat Mar 24, 2007 10:35 am    Post subject: Reply with quote

no continue!
_________________
Back to top
View user's profile Send private message
--Pillboi--
Grandmaster Cheater Supreme
Reputation: 0

Joined: 06 Mar 2007
Posts: 1383
Location: I don't understand the question. Is this a 1 to 10 thing?

PostPosted: Sat Mar 24, 2007 12:03 pm    Post subject: Reply with quote

ravicus wrote:
K. I won't make any more tutorials then.

Nooooo. Please don't stop. This really helped me. Although the program isn't very, well, eh, productive, it taught me the basics of Java. Thanks ravicus.

--Pillboi--

_________________

Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sat Mar 24, 2007 12:18 pm    Post subject: Reply with quote

Basics of Java can be learned with the help of Google by finding other tutorials that are already written. Encouraging ravicus to write tutorials that have been done thousands times over would only encourage him to waste his time in creating something that would add to the pool of countless "Hello world" tutorials.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
ravicus
Master Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 464

PostPosted: Sun Mar 25, 2007 4:40 pm    Post subject: Reply with quote

Yeah, I suggest buying a book. Did wonders for me. My latest program, a slot machine with ASCII SLOT MACHINE GRAPHICS!!!
Code:
//Import Dem Functions!
import java.util.Random;
import java.util.Scanner;
import static java.lang.System.out;
 
public class SlotMachine {
   
    public static void main(String[] args) {
     //Declare Dos Variables!
        Scanner s = new Scanner(System.in);
    Random slotspin = new Random();
    int Slot1 = 0;
    int Slot2 = 0;
    int Slot3 = 0;
    int coins = 10;
    int bet = 0;
    boolean playagain = true;
    int round = 1;
    int multiplier = 1;
    int multedbet = 0;
    int play2 = 0;
   
   
   
        //Write dat code!
        out.println ("Welcome to slot machine!");
            out.println();
         while (playagain == true) {
             out.println ("You have " + coins + " coins.");
                out.print ("Please place a bet: ");
                bet = (s.nextInt());
                out.println ();
                    while (bet > coins || bet <=  0 && bet != 1 && bet != 2 && bet != 3) {
                        out.print ("You entered an invalid number, please place a valid bet: ");
                            bet = (s.nextInt());
                   
                    }
                out.println ("Bet registered");
                    out.println ();
                    out.println ("Spinning Slots...");
                    Slot1 = slotspin.nextInt(3) + 1;
                    Slot2 = slotspin.nextInt(3) + 1;
                    Slot3 = slotspin.nextInt(3) + 1;
                    out.println ("_________");
                    out.println ("|       |");
                    out.println ("| " + Slot1 + "|" + Slot2 + "|" + Slot3 + " |");
                    out.println ("|_______|");
                    if (Slot1 == Slot2 && Slot1 == Slot3 && Slot2 == Slot3) {
                        out.println ("You won round " + round);
                        round++;
                        multiplier = Slot1;
                        multedbet = (bet * multiplier + 10);
                        out.println ("The multiplier is " + multiplier + " and you get a 10 coin bonus so you get " + multedbet + " coins");
                        coins = coins + multedbet;
                    } else {
                        out.println ("You lost round " + round);
                        round++;
                        out.println ("You lost " + bet + " coins.");
                        coins = (coins - bet);
                    }
                 
                     multiplier = 1;
                      multedbet = 0;
                     
    }
           
    }
       
   
    }

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites