Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22476
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2013-02-24 02:27 -0800 |
| References | <638ed624-9eba-44eb-bcbf-68466e5bb5f1@googlegroups.com> |
| Message-ID | <42d76fca-d365-4030-ae8c-07a806eab87c@googlegroups.com> (permalink) |
| Subject | Re: BlueJ don't know what i did wrong |
| From | marvin.radke@htp-tel.de |
I hope that is what you meant by making it easierr to read:
public class RandomFigures
{
public String [] Name;
public int [] points;
public int [] assisting;
public int [] help;
public int [] helpstillyet;
public int [] stillthere;
public RandomFigures()
{
Name = new String [159];
assisting = new int [159];
points = new int [159];
stillthere = new int [159];
help = new int [159];
helpstillyet = new int [159];
Name[0] = "Cyprien Esenwein";
points[0] = 150;
assisting[0] = 0;
Name[1] = "Otonashi";
points[1] = 10;
assisting[1] = 0;
Name[2] = "Isamu";
points[2] = 10;
assisting[2] = 0;
Name[3] = "Kyntela Gwyn"; //Elf
points[3] = 20;
assisting[3] = 8;
helpstillyet[3] = 0;
help[1] = 49; //Sonlen
help[2] = 47; //Ulginesh
help[3] = 33; //Syvarris
help[4] = 32; //Jorhdawn
help[5] = 27; //Chardris
help[6] = 25; //Emirroon
help[7] = 11; //Arkmer
help[8] = 105; //Warriors of Ashra
Name[4] = "Marcu Esenwein";
points[4] = 20;
assisting[4] = 0;
Name[5] = "Dumutef Guard" ; //Devourer
points[5] = 25;
assisting[5] = 2;
helpstillyet[5] = 8;
help[9] = 4; //Marcu Esenwein
help[10] = 14; //Rechets of Bogdan
Name[6] = "Marrden Nagrubs"; //Hivelord
points[6] = 30;
assisting[6] = 2;
helpstillyet[6] = 10;
help[11] = 51; //Su-Bak-Na
help[12] = 55; //Tor-Kul-Na
Name[7] = "Fyorlag Spiders"; //Predator
points[7] = 40;
assisting[7] = 1;
helpstillyet[7] = 12;
help[13] = 123; //Wyvern
Name[8] = "Ashigaru Yari";
points[8] = 40;
assisting[8] = 0;
Name[9] = "Sonya Esenwein";
points[9] = 45;
assisting[9] = 1;
helpstillyet[9] = 13;
help[14] = 0; //Cyprien Esenwein
Name[10] = "Tarn Viking Warriors";
points[10] = 50;
assisting[10] = 0;
Name[11] = "Arkmer"; //Elf
points[11] = 50;
assisting[11] = 8;
helpstillyet[11] = 14;
help[15] = 49; //Sonlen
help[16] = 47; //Ulginesh
help[17] = 33; //Syvarris
help[18] = 32; //Jorhdawn
help[19] = 27; //Chardris
help[20] = 25; //Emirroon
help[21] = 3; //Kyntella Gwyn
help[22] = 105; //Warriors of Ashra
Name[12] = "Marro Warriors";
points[12] = 50;
assisting[12] = 0;
Name[13] = "Iskra Esenwein"; //Rechets of Bogdan
points[13] = 50;
assisting[13] = 1;
helpstillyet[13] = 22;
help[23] = 14; //Rechets of Bogdan
Name[14] = "Rechets of Bogdan"; //Iskra Esenwein
points[14] = 50;
assisting[14] = 1;
helpstillyet[14] = 23;
help[24] = 13; //Iskra Esenwein
Name[15] = "Marro Drudge";
points[15] = 50;
assisting[15] = 0;
Name[16] = "Ashigaru Harquebus";
points[16] = 60;
assisting[16] = 0;
Name[17] = "Izumi Samurai";
points[17] = 60;
assisting[17] = 0;
Name[18] = "Shiori";
points[18] = 60;
assisting[18] = 0;
Name[19] = "Marro Stingers";
points[19] = 60;
assisting[19] = 0;
Name[20] = "Zettian Guards";
points[20] = 70;
assisting[20] = 0;
Name[21] = "10th Regiment of Foot";
points[21] = 75;
assisting[21] = 0;
Name[22] = "Thorgrimm the Viking Champion";
points[22] = 80;
assisting[22] = 0;
Name[23] = "Finn the Viking Champion";
points[23] = 80;
assisting[23] = 0;
Name[24] = "Realin the Kyrie Varrior";
points[24] = 80;
assisting[24] = 0;
Name[25] = "Emirroon"; //Elf
points[25] = 80;
assisting[25] = 8;
helpstillyet[25] = 24;
help[25] = 49; //Sonlen
help[26] = 47; //Ulginesh
help[27] = 33; //Syvarris
help[28] = 32; //Jorhdawn
help[29] = 27; //Chardris
help[30] = 11; //Arkmer
help[31] = 3; //Kyntella Gwyn
help[32] = 105; //Warriors of Ashra
Name[26] = "Wolves of Badru"; //Darklord
points[26] = 80;
assisting[26] = 1;
helpstillyet[26] = 32;
help[33] = 154; //Werewolf Lord
Name[27] = "Chardris"; //Elf Wizard
points[27] = 90;
assisting[27] = 5;
helpstillyet[27] = 33;
help[34] = 3; //Kyntella Gwyn
help[35] = 11; //Arkmer
help[36] = 25; //Emirroon
help[37] = 32; //Jorhdawn
help[38] = 47; //Ulginesh
Name[28] = "Ne-Gok-Sa";
points[28] = 90;
assisting[28] = 0;
Name[29] = "Warden 816"; //Guard
points[29] = 90;
assisting[29] = 6;
helpstillyet[29] = 38;
help[39] = 20; //Zettian Guards
help[40] = 6; //Marrden Nagrubs
help[41] = 5; //Dumutef Guard
help[42] = 99; //Drow Chainfighter
help[43] = 110; //Blastatrons
help[44] = 127; //Granite Guardians
Name[45] = "Krav Maga Agents";
points[30] = 100;
assisting[30] = 0;
Name[31] = "Agent Carr";
points[31] = 100;
assisting[31] = 0;
Name[32] = "Jorhdawn"; //Elf Wizard
points[32] = 100;
assisting[32] = 5;
helpstillyet[32] = 45;
help[46] = 3; //Kyntella Gwyn
help[47] = 11; //Arkmer
help[48] = 25; //Emirroon
help[49] = 27; //Chardris
help[50] = 47; //Ulginesh
Name[33] = "Syvarris";
points[33] = 100;
assisting[33] = 0;
Name[34] = "Duend";
points[34] = 110;
assisting[34] = 0;
Name[35] = "Airborne Elite";
points[35] = 110;
assisting[35] = 0;
Name[36] = "Sgt. Drake Alexander";
points[36] = 110;
assisting[36] = 0;
Name[37] = "Moriko";
points[37] = 110;
assisting[37] = 0;
Name[38] = "Brunak";
points[38] = 110;
assisting[38] = 0;
Name[39] = "Templar Cavalry";
points[39] = 120;
assisting[39] = 0;
Name[40] = "Raelin the Kyrie Warrior";
points[40] = 120;
assisting[40] = 0;
Name[41] = "Grimnak"; //Orc Warrior
points[41] = 120;
assisting[41] = 1;
helpstillyet[41] = 50;
help[51] = 88; //Blade Gruts
Name[42] = "Deathwalker 8000";
points[42] = 130;
assisting[42] = 0;
Name[43] = "Grok Riders"; //Marror Warlord
points[43] = 130;
assisting[43] = 1;
helpstillyet[43] = 51;
help[52] = 28; //Ne-Gok-Sa
Name[44] = "Deathwalker 9000"; //Souldborg guard
points[44] = 140;
assisting[44] = 2;
helpstillyet[44] = 52;
help[53] = 20; //Zettian Guards
help[54] = 110; //Blastatrons
Name[45] = "Major Q10";
points[45] = 150;
assisting[45] = 0;
Name[46] = "Sir Dupis"; //Knights
points[46] = 150;
assisting[46] = 2;
helpstillyet[46] = 54;
help[55] = 39; //Templar Cavalry
help[56] = 114; //Phantom Knights
Name[47] = "Ulginesh"; //Elf Wizard
points[47] = 150;
assisting[47] = 5;
helpstillyet[47] = 56;
help[57] = 3; //Kyntella Gwyn
help[58] = 11; //Arkmer
help[59] = 25; //Emirroon
help[60] = 27; //Chardris
help[61] = 32; //Jorhdawn
Name[48] = "Mimring";
points[48] = 150;
assisting[48] = 0;
Name[49] = "Sonlen";
points[49] = 160;
assisting[49] = 0;
Name[50] = "Marro Hive"; //small/medium common marro squad
points[50] = 160;
assisting[50] = 3;
helpstillyet[48] = 61;
help[62] = 19; //Marro Stingers
help[63] = 15; //Marro Drudge
help[64] = 82; //Marro Dividers
Name[51] = "Su-Bak-Na"; //marro/wulsino army card (20ger Wuerfel Faehigkeit
points[51] = 160;
assisting[51] = 7;
helpstillyet[51] = 64;
help[65] = 59; //Tor-Kul-Na
help[66] = 50; //Marro Hive
help[67] = 28; //Ne-Gok-Sa
help[68] = 62; //Marrden Hounds
help[69] = 19; //Marro Stingers
help[60] = 12; //Marro Warriors
help[71] = 82; //Marro Dividers
Name[52] = "Sgt. Drake Alexander";
points[52] = 170;
assisting[52] = 0;
Name[53] = "Kato Katsuro"; //Samurai hero/squad
points[53] = 200;
assisting[53] = 3;
helpstillyet[53] = 71;
help[72] = 8; //Ashigaru Yari
help[73] = 16; //Ashigaru Harquebus
help[74] = 17; //Izumi Samurai
Name[54] = "Charos";
points[54] = 210;
assisting[54] = 0;
Name[55] = "Tor-Kul-Na";
points[55] = 220;
assisting[55] = 0;
Name[56] = "Johnny 'Shotgun' Sullivan";
points[56] = 65;
assisting[56] = 0;
Name[57] = "Saylind the Kyrie Warrior";
points[57] = 80;
assisting[57] = 0;
Name[58] = "Concan the Kyrie Warrior"; //Knights/Sentinels
points[58] = 80;
assisting[58] = 4;
helpstillyet[58] = 74;
help[75] = 65; //Sentinels of Jandar
help[76] = 46; //Sir Dupis
help[77] = 39; //Templar Cavalry
help[78] = 114; //Phantom Kights
Name[59] = "Shaolin Monks";
points[59] = 80;
assisting[59] = 0;
Name[60] = "MacDirk Warriors"; //Human Champion
points[60] = 80;
assisting[60] = 4;
helpstillyet[60] = 78;
help[79] = 22; //Thorgrimm the Viking Champion
help[80] = 23; //Finn the Viking Champion
help[81] = 66; //Alistair MacDirk
help[82] = 120; //Sir Hawthorne
Name[61] = "Gorillinators";
points[61] = 90;
assisting[61] = 0;
Name[62] = "Marrden Hounds";
points[62] = 90;
assisting[62] = 0;
Name[63] = "Deathwalker 7000";
points[63] = 100;
assisting[63] = 0;
Name[64] = "Microcorp Agents";
points[64] = 100;
assisting[64] = 0;
Name[65] = "Sentinels of Jandar";
points[65] = 110;
assisting[65] = 0;
Name[66] = "Alistair MacDirk";
points[66] = 110;
assisting[66] = 0;
Name[67] = "Spider-Man";
points[67] = 160;
assisting[67] = 0;
Name[68] = "Silver Surfer";
points[68] = 320;
assisting[68] = 0;
Name[69] = "Abomination";
points[69] = 320;
assisting[69] = 0;
Name[70] = "Thanos";
points[70] = 360;
assisting[70] = 0;
Name[71] = "Captain Amerika";
points[71] = 220;
assisting[71] = 0;
Name[72] = "Red Skull";
points[72] = 190;
assisting[72] = 0;
Name[73] = "Doctor Doom";
points[73] = 245;
assisting[73] = 0;
Name[74] = "Incredible Hulk";
points[74] = 370;
assisting[74] = 0;
Name[75] = "Mohican River Tribe"; //unique Tribesman hero
points[75] = 70;
assisting[75] = 1;
helpstillyet[75] = 82;
help[83] = 84; //Brave Arrow
Name[76] = "Omnicron Repulsor"; //Jandar Souldborg
points[76] = 40;
assisting[76] = 1;
helpstillyet[76] = 83;
help[84] = 97; //Omnicron Snipers
Name[77] = "The Axegrinders of Burning Forge"; //Dwarf Hero
points[77] = 70;
assisting[77] = 3;
helpstillyet[77] = 84;
help[85] = 86; //Migol Ironwill
help[86] = 109; //Darrak Ambershardd
help[87] = 132; //Morgrimm Forgehammer
Name[78] = "Venom";
points[78] = 150;
assisting[78] = 0;
Name[79] = "Iron Man";
points[79] = 240;
assisting[79] = 0;
Name[80] = "Capuan Gladiators"; //human Gladiator Hero /Gladiator
points[80] = 70;
assisting[80] = 0;
Name[81] = "Protectors of Ullar";
points[81] = 110;
assisting[81] = 0;
Name[82] = "Marro Dividers";
points[82] = 50;
assisting[82] = 0;
Name[83] = "Atlaga the Kyrie Warrior"; //Kyrie
points[83] = 90;
assisting[83] = 8;
helpstillyet[83] = 87;
help[88] = 65; //Sentinels of Jandar
help[89] = 81; //Protectors of Ullar
help[90] = 57; //Saylind the Kyrie Warrior
help[91] = 58; //Concan the Kyrie Warrior
help[92] = 24; //Raelin the Kyrie Warrior
help[93] = 40; //Raelin the Kyrie Warrior
help[94] = 90; //Kelda the Kyrie Warrior
help[95] = 92; //Taelord the Kyrie Warrior
Name[84] = "Brave Arrow"; //Scout
points[84] = 50;
assisting[84] = 4;
helpstillyet[84] = 95;
help[96] = 7; //Fyorlag Spyders
help[97] = 157; //Venoc Vipers
help[98] = 75; //Mohican River Tribe
help[99] = 126; //Elite Onyx Vipers
Name[85] = "Kumiko";
points[85] = 80;
assisting[85] = 0;
Name[86] = "Migol Ironwill";
points[86] = 110;
assisting[86] = 0;
Name[87] = "Tul-Bak-Ra"; //Marro Squad
points[87] = 130;
assisting[87] = 5;
helpstillyet[87] = 99;
help[100] = 19; //Marro Stingers
help[101] = 15; //Marro Drudge
help[102] = 82; //Marro Dividers
help[103] = 43; //Grok Riders
help[104] = 12; //Marro Warriors
Name[88] = "Blade Gruts"; //Orc Champion
points[88] = 40;
assisting[88] = 3;
helpstillyet[88] = 104;
help[105] = 94; //Tornak
help[106] = 106; //Nerak the Glacian Swog Rider
help[107] = 41; //Grimnak
Name[89] = "Arrow Gruts"; //Beast
points[89] = 40;
assisting[89] = 2;
helpstillyet[89] = 107;
help[108] = 48; //Mimring
help[109] = 117; //Ice Troll Berserker
Name[90] = "Kelda the Kyrie Warrior";
points[90] = 80;
assisting[90] = 0;
Name[91] = "Marcus Decimus Gallus"; //Soldier
points[91] = 100;
assisting[91] = 6;
helpstillyet[91] = 109;
help[110] = 96; //Roman Legionnaires
help[111] = 35; //Sgt. Drake Alexander
help[112] = 36; //Airborne Elite
help[113] = 52; //Sgt. Drake Alexander
help[114] = 71; //Catain Amerika
help[115] = 147; //Warforge Soldier
Name[92] = "Taelord the Kyrie Warrior";
points[92] = 180;
assisting[92] = 0;
Name[93] = "Venoc Warlord"; //Scout/frency power
points[93] = 120;
assisting[93] = 4;
helpstillyet[93] = 115;
help[116] = 7; //Fyorlag Spyders
help[117] = 157; //Venoc Vipers
help[118] = 75; //Mohican River Tribe
help[119] = 126; //Elite Onyx Vipers
Name[94] = "Tornak"; //Orc Warrior
points[94] = 100;
assisting[94] = 1;
helpstillyet[94] = 119;
help[120] = 88; //Blade Gruts
Name[95] = "Roman Archers";
points[95] = 55;
assisting[95] = 0;
Name[96] = "Roman Legionnaires"; //Warlords
points[96] = 50;
assisting[96] = 5;
helpstillyet[96] = 119;
help[120] = 91; //Marcus Decimus Gallus
help[121] = 92; //Taelord the Kyrie Warrior
help[122] = 93; //Venoc Warlord
help[123] = 132; //Morgrimm Forgehammer
help[124] = 28; // Ne-Gok-Sa
Name[97] = "Omnicron Snipers";
points[97] = 100;
assisting[97] = 0;
Name[98] = "Sahuagin Raider";
points[98] = 25;
assisting[98] = 0;
Name[99] = "Drow Chainfighter";
points[99] = 25;
assisting[99] = 0;
Name[100] = "Water Elemental";
points[100] = 30;
assisting[100] = 0;
Name[101] = "Air Elemental";
points[101] = 30;
assisting[101] = 0;
Name[102] = "Fire Elemental";
points[102] = 35;
assisting[102] = 0;
Name[103] = "Earth Elemental";
points[103] = 35;
assisting[103] = 0;
Name[104] = "Deathreavers";
points[104] = 40;
assisting[104] = 0;
Name[105] = "Warriors of Ashra";
points[105] = 50;
assisting[105] = 0;
Name[106] = "Nerak the Glacian Swog Rider"; //Orcs
points[106] = 50;
assisting[106] = 5;
helpstillyet[106] = 124;
help[125] = 88; //Blade Gruts
help[126] = 89; //Arrow Gruts
help[127] = 107; //Death Chasers of Thesk
help[128] = 94; //Tornak
help[129] = 41; //Grimnak
Name[107] = "Death Chasers of Theesk"; //Large and Wild Hero
points[107] = 55;
assisting[107] = 3;
helpstillyet[107] = 129;
help[130] = 106; //Nerak the Glacian Swog Rider
help[131] = 122; //Ogre Pulverizer
help[132] = 155; //Ogre Warhulk
Name[108] = "Greenscale Warriors";
points[108] = 60;
assisting[108] = 0;
Name[109] = "Darrak Ambershardd";
points[109] = 60;
assisting[109] = 0;
Name[110] = "Blastatrons"; //Gladiatrons/Vydar Souldborgs
points[110] = 60;
assisting[110] = 1;
helpstillyet[110] = 132;
help[133] = 45; //Major Q10
Name[111] = "Death Knights of Valkrill"; //small,medium or large relentless hero
points[111] = 60;
assisting[111] = 4;
helpstillyet[111] = 133;
help[134] = 4; //Marvu Esenwein
help[135] = 120; //Sir Hawthorne
help[136] = 92; //Taelord the Kyrie Warrior
help[137] = 101; //Air Elemental
Name[112] = "Mezzedemon Warmongers";
points[112] = 65;
assisting[112] = 0;
Name[113] = "Deepwyrm Drow";
points[113] = 70;
assisting[113] = 0;
Name[114] = "Phantom Knights";
points[114] = 70;
assisting[114] = 0;
Name[115] = "Horned Skull Brutes"; //small goblins
points[115] = 75;
assisting[115] = 1;
helpstillyet[115] = 137;
help[138] = 146; //Goblin Cutters
Name[116] = "Erevan Sunshadow";
points[116] = 80;
assisting[116] = 0;
Name[117] = "Ice Troll Berserker";
points[117] = 85;
assisting[117] = 0;
Name[118] = "Feral Troll";
points[118] = 90;
assisting[118] = 0;
Name[119] = "Brandis Skyhunter";
points[119] = 90;
assisting[119] = 0;
Name[120] = "Sir Hawthorne";
points[120] = 90;
assisting[120] = 0;
Name[121] = "Ogre Pulverizer";
points[121] = 100;
assisting[121] = 0;
Name[122] = "Ana Karithon";
points[122] = 100;
assisting[122] = 0;
Name[123] = "Wyvern";
points[123] = 100;
assisting[123] = 0;
Name[124] = "Pelloth"; //Drow
points[124] = 100;
assisting[124] = 3;
helpstillyet[124] = 138;
help[139] = 158; //Estivara
help[140] = 113; //Deepwyrm Drow
help[141] = 99; //Drow Chainfighter
Name[125] = "Deathstalker";
points[125] = 100;
assisting[125] = 0;
Name[126] = "Elite Onyx Vipers";
points[126] = 100;
assisting[126] = 0;
Name[127] = "Granite Guardians";
points[127] = 100;
assisting[127] = 0;
Name[128] = "Sharwin Wildborn";
points[128] = 110;
assisting[128] = 0;
Name[129] = "Quassatch Hunters";
points[129] = 100;
assisting[129] = 0;
Name[130] = "Evar Scarcarver";
points[130] = 110;
assisting[130] = 0;
Name[131] = "Fen Hydra";
points[131] = 120;
assisting[131] = 0;
Name[132] = "Morgrimm Forgehammer";
points[132] = 120;
assisting[132] = 0;
Name[133] = "Torin";
points[133] = 120;
assisting[133] = 0;
Name[134] = "Tandros Kreel";
points[134] = 120;
assisting[134] = 0;
Name[135] = "Siege";
points[135] = 120;
assisting[135] = 0;
Name[136] = "Greater Ice Elemental";
points[136] = 130;
assisting[136] = 0;
Name[137] = "Eltahal";
points[137] = 140;
assisting[137] = 0;
Name[138] = "Othkurik the black Dragon";
points[138] = 140;
assisting[138] = 0;
Name[139] = "Frost Giant of Morh";
points[139] = 140;
assisting[139] = 0;
Name[140] = "Master of the Hunt";
points[140] = 140;
assisting[140] = 0;
Name[141] = "Moltenclaw";
points[141] = 170;
assisting[141] = 0;
Name[142] = "Black Wyrmling"; //Wyrmling
points[142] = 30;
assisting[142] = 3;
helpstillyet[142] = 141;
help[142] = 143; //Red Wyrmling
help[143] = 144; //White Wyrmling
help[144] = 145; //Blue Wyrmling
Name[143] = "Red Wyrmling"; //Wyrmling
points[143] = 30;
assisting[143] = 3;
helpstillyet[142] = 144;
help[145] = 142; //Black Wyrmling
help[146] = 144; //White Wyrmling
help[147] = 145; //Blue Wyrmling
Name[144] = "White Wyrmling"; //Wyrmling
points[144] = 30;
assisting[144] = 3;
helpstillyet[142] = 147;
help[148] = 143; //Red Wyrmling
help[149] = 142; //Black Wyrmling
help[150] = 145; //Blue Wyrmling
Name[145] = "Blue Wyrmling"; //Wyrmling
points[145] = 35;
assisting[145] = 3;
helpstillyet[142] = 150;
help[151] = 143; //Red Wyrmling
help[152] = 144; //White Wyrmling
help[153] = 142; //Black Wyrmling
Name[146] = "Goblin Cutters";
points[146] = 50;
assisting[146] = 0;
Name[147] = "Warforge Soldiers";
points[147] = 80;
assisting[147] = 0;
Name[148] = "Heirloom";
points[148] = 90;
assisting[148] = 0;
Name[149] = "Iron golem";
points[149] = 100;
assisting[149] = 0;
Name[150] = "Mind Flayer Mastermind";
points[150] = 100;
assisting[150] = 0;
Name[151] = "Mika Connour";
points[151] = 110;
assisting[151] = 0;
Name[152] = "Rhogar Dragonspine";
points[152] = 110;
assisting[152] = 0;
Name[153] = "Kurrok the Elementalist"; //kleiner oder mittlerer Elemental
points[153] = 120;
assisting[153] = 4;
helpstillyet[153] = 153;
help[154] = 110; //Water Elemental
help[155] = 111; //Air Elemtental
help[156] = 112; //Fire Elemental
help[157] = 113; //Earth Elemental
Name[154] = "Werewolf Lord";
points[154] = 140;
assisting[154] = 0;
Name[155] = "Ogre Warhulk";
points[155] = 150;
assisting[155] = 0;
Name[156] = "Shurrok";
points[156] = 160;
assisting[156] = 0;
Name[157] = "Venoc Vipers";
points[157] = 40;
assisting[157] = 0;
Name[158] = "Estivara";
points[158] = 80;
assisting[158] = 1;
helpstillyet[158] = 157;
help[158] = 7; //Fyorlag Spiders
for (int i=0;i<=158;i++)
{
stillthere[i] = 1;
stillthere[6] = 2;
stillthere[15] = 2;
stillthere[19] = 2;
}
}
public void Random (int pointsperPlayer, int numberofplayers)
{
int pointsuntilnow = 0;
for(int j = 1; j<=numberofplayers; j++)
{
pointsuntilnow = 0;
System.out.println("Spieler" + j + ":");
while (pointsuntilnow < pointsperPlayer)
{
int k = (int) ((Math.random() * 158)+1);
if (stillthere[k]>=1&&k!=159)
{
System.out.println(Name[k]+" "+points[k]);
stillthere[k]=stillthere[k]-1;
pointsuntilnow=pointsuntilnow+points[k];
int chanceofhelpunit = (int) (Math.random()*10);
int chancefactor = 10;
while(chanceofhelpunit<7 && assisting[k]>0 && pointsuntilnow < pointsperPlayer)
{
int whohelps = (int) (((Math.random() * assisting[k]) +1) + helpstillyet[k]);
if (stillthere[help[whohelps]]!=0&&whohelps!=assisting[k]+1+helpstillyet[k])
{
System.out.println(Name[help[whohelps]]+" "+points[help[whohelps]]);
stillthere[help[whohelps]]=stillthere[help[whohelps]]-1;
pointsuntilnow=pointsuntilnow+points[help[whohelps]];
for (int l = whohelps;l<=assisting[k]-1;l++ )
{
help[l]=help[l+1];
assisting[k]=assisting[k]-1;
}
chanceofhelpunit = (int)(Math.random()*chancefactor);
chancefactor = chancefactor-1;
}
}
}
}
System.out.println("Your Points : " + pointsuntilnow);
System.out.println("-------------------------------------------");
}
}
}
it works if i just take the part up to the first time chanceofhelpunit with values up to pointsperplayer * numberofplayers = 12000
hope thats what you wanted to know
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
BlueJ don't know what i did wrong BlueJguywithoutskill <marvin.radke@htp-tel.de> - 2013-02-22 06:03 -0800
Re: BlueJ don't know what i did wrong Joerg Meier <joergmmeier@arcor.de> - 2013-02-22 15:55 +0100
Re: BlueJ don't know what i did wrong marvin.radke@htp-tel.de - 2013-02-22 07:13 -0800
Re: BlueJ don't know what i did wrong Joerg Meier <joergmmeier@arcor.de> - 2013-02-22 16:24 +0100
Re: BlueJ don't know what i did wrong marvin.radke@htp-tel.de - 2013-02-22 07:31 -0800
Re: BlueJ don't know what i did wrong Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-02-22 10:50 -0500
Re: BlueJ don't know what i did wrong markspace <markspace@nospam.nospam> - 2013-02-22 10:43 -0800
Re: BlueJ don't know what i did wrong marvin.radke@htp-tel.de - 2013-02-24 02:27 -0800
Re: BlueJ don't know what i did wrong Joerg Meier <joergmmeier@arcor.de> - 2013-02-24 14:54 +0100
Re: BlueJ don't know what i did wrong marvin.radke@htp-tel.de - 2013-02-24 06:15 -0800
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-24 15:04 +0000
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-24 16:29 +0000
Re: BlueJ don't know what i did wrong Joerg Meier <joergmmeier@arcor.de> - 2013-02-24 18:21 +0100
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-24 17:43 +0000
Re: BlueJ don't know what i did wrong Joerg Meier <joergmmeier@arcor.de> - 2013-02-24 20:04 +0100
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-24 19:24 +0000
Re: BlueJ don't know what i did wrong marvin.radke@htp-tel.de - 2013-02-25 01:52 -0800
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-25 11:10 +0000
Re: BlueJ don't know what i did wrong "John B. Matthews" <nospam@nospam.invalid> - 2013-02-25 07:50 -0500
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-25 13:35 +0000
Re: BlueJ don't know what i did wrong "John B. Matthews" <nospam@nospam.invalid> - 2013-02-25 13:52 -0500
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-25 19:54 +0000
Re: BlueJ don't know what i did wrong Lew <lewbloch@gmail.com> - 2013-02-25 14:26 -0800
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-26 09:08 +0000
Re: BlueJ don't know what i did wrong Arne Vajhøj <arne@vajhoej.dk> - 2013-02-25 22:05 -0500
Re: BlueJ don't know what i did wrong Arne Vajhøj <arne@vajhoej.dk> - 2013-02-25 22:08 -0500
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-26 09:23 +0000
Re: BlueJ don't know what i did wrong Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-26 05:59 -0400
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-26 11:30 +0000
Re: BlueJ don't know what i did wrong Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-27 06:45 -0400
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-27 11:58 +0000
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-27 12:24 +0000
Re: BlueJ don't know what i did wrong Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-27 22:40 -0400
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-28 08:53 +0000
Re: BlueJ don't know what i did wrong Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-28 17:14 -0400
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-01 08:45 +0000
Re: BlueJ don't know what i did wrong markspace <markspace@nospam.nospam> - 2013-02-26 08:33 -0800
Re: BlueJ don't know what i did wrong Arne Vajhøj <arne@vajhoej.dk> - 2013-02-25 22:19 -0500
Re: BlueJ don't know what i did wrong Arne Vajhøj <arne@vajhoej.dk> - 2013-02-25 22:02 -0500
Re: BlueJ don't know what i did wrong marvin.radke@htp-tel.de - 2013-02-25 09:54 -0800
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-25 18:25 +0000
Re: BlueJ don't know what i did wrong Joerg Meier <joergmmeier@arcor.de> - 2013-02-26 16:13 +0100
Re: BlueJ don't know what i did wrong lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-26 16:40 +0000
Re: BlueJ don't know what i did wrong Joerg Meier <joergmmeier@arcor.de> - 2013-02-26 18:19 +0100
Re: BlueJ don't know what i did wrong markspace <markspace@nospam.nospam> - 2013-02-25 08:34 -0800
Re: BlueJ don't know what i did wrong Lew <lewbloch@gmail.com> - 2013-02-24 12:38 -0800
csiph-web