CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: faithz
import java.awt.Dimension;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
 
import javax.swing.JFrame;
 
 
public class ResizeEvent extends ComponentAdapter {
    @Override
    public void componentResized( ComponentEvent event ) {
by faithz   August 11, 2011 @ 1:14pm
Tags:
36 Views
no comments
 
/*    mastermind (hamster) - version 0.1
    by jan langer */
 
//konstante für spieloptionen
public final static int CODE_STELLEN = 4;
public final static int VERSUCHE = 10;
//erstellt den zufallscode
int[] createCode() {
    int[] code=new int[CODE_STELLEN];
    for(int index=0;index<CODE_STELLEN;index++) {
by faithz   April 01, 2010 @ 8:59am
Tags:
136 Views
no comments
 
/*    mastermind (hamster) - version 0.1
    by jan langer */
 
//konstante für spieloptionen
public final static int CODE_STELLEN = 4;
public final static int VERSUCHE = 10;
//erstellt den zufallscode
int[] createCode() {
    int[] code=new int[CODE_STELLEN];
    for(int index=0;index<CODE_STELLEN;index++)
by faithz   March 25, 2010 @ 9:46pm
Tags:
125 Views
no comments
 
// jan - aufgabe 2 (tictactoe)
// variante 2 (version 0.3) medium
 
//__________konstante______________
//************************************************
//wieviele körner repräsentieren kreis und kreuz *
//************************************************
public final static int KREIS = 3;
public final static int KREUZ = 12;
//************************************************
by faithz   March 23, 2010 @ 6:09pm
Tags:
202 Views
no comments
 
// jan - aufgabe 2 (tictactoe)
// variante 2 (version 0.3) medium
 
//__________konstante______________
//************************************************
//wieviele körner repräsentieren kreis und kreuz *
//************************************************
public final static int KREIS = 3;
public final static int KREUZ = 12;
//************************************************
by faithz   March 23, 2010 @ 6:08pm
Tags:
126 Views
no comments
 
// jan - aufgabe 2 (tictactoe)
// variante 2 (version 0.3) medium
 
//__________konstante______________
//************************************************
//wieviele körner repräsentieren kreis und kreuz *
//************************************************
public final static int KREIS = 3;
public final static int KREUZ = 12;
//************************************************
by faithz   March 23, 2010 @ 5:54pm
Tags:
216 Views
no comments
 
// jan - aufgabe 2 (tictactoe)
// variante 1 (version 0.1) noob
 
//__________konstante______________
//************************************************
//wieviele körner repräsentieren kreis und kreuz *
//************************************************
public final static int KREIS = 3;
public final static int KREUZ = 12;
//************************************************
by faithz   March 21, 2010 @ 6:03pm
Tags:
124 Views
no comments
 
// jan aufgabe 1
// version 1
 
void drehUm() {
    linksUm();
    linksUm();    
}
 
void rechtsUm() {
    drehUm();
by JanL   March 19, 2010 @ 3:31pm
Tags:
135 Views
no comments
 
// Benni Aufgabe 1
 
void rechtsUm() {
       linksUm();
       linksUm();
       linksUm();
}
 
 
int kachelFressen() {
by faithz   March 18, 2010 @ 5:49pm
Tags:
127 Views
no comments
 
// Bens Uebungsaufgaben - Hamster (Java)
// Aufgabe 1 - Blatt 2
// copyright: Nils Schomburg
// created: 19/03/2010
 
 
 
void main() 
    {
     int anzkoerner = 0;
by faithz   March 18, 2010 @ 5:43pm
Tags:
135 Views
no comments
 
// Benni Aufgabe 1
 
void rechtsUm() {
       linksUm();
       linksUm();
       linksUm();
}
 
 
int kachelFressen() {
by faithz   March 15, 2010 @ 1:03pm
Tags:
119 Views
no comments
 
/* bubblesort v2.0 aufgabe 28 */
 
// eine kachel fressen und gefressene körner zurückgeben
int kachelFressen(int koerner) {
    for(;kornDa();koerner++)
        nimm();
    return koerner;
}
// kachel für kachel fressen und gezählte körner ins array schreiben
int[] koernerEinlesen() {
by JanL   March 09, 2010 @ 11:53am
Tags:
129 Views
no comments
 
/* bubblesort v2.0 ;) aufgabe 28 */
 
// eine kachel fressen und gefressene körner zurückgeben
int kachelFressen() {
    int koerner=0;
    for(;kornDa();koerner++)
        nimm();
    return koerner;
}
// kachel für kachel fressen und gezählte körner ins array schreiben
by faithz   February 28, 2010 @ 7:50am
Tags:
119 Views
no comments
 
/*************************
 * bubble-sort           *
 * in hamster imperativ  *
 * by jan langer         *
 *************************/            
 
// variablen
int momfeld=0; // anzahl körner momentanes feld
int nextfeld=0; // anzahl körner folge feld
int run=0; // anzahl von vertauschten feldern für den aktuellen durchgang
by JanL   February 26, 2010 @ 8:21am
Tags:
167 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate