Page 1 of 2

public class MafiaGame{ //Overfull

PostPosted: Sun Oct 26, 2008 11:00 am
by Fircoal
/*If you don't understand the title, I'm hosting a RANDOM!!!! mafia game. I need 7. ^_^

*1.
*2.
*3.
*4.
*5.
*6.
*7.
*
*(btw, I'm trying to revive myself in activity, I'm still doing UnMafia 2, but I want a game where people post. (and is random))
*/

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Sun Oct 26, 2008 11:05 am
by InkL0sed
Player InkL0sed = new Player(new Signup(true));

(what's with the Java code?)

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Sun Oct 26, 2008 11:12 am
by Fircoal
InkL0sed wrote:Player InkL0sed = new Player(new Signup(true));

(what's with the Java code?)


// Theme of the game. Random Java stuff XD

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Sun Oct 26, 2008 11:18 am
by InkL0sed
// In that case, you forgot:

Random r = new Random(); ;)

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Sun Oct 26, 2008 11:36 am
by Fircoal
InkL0sed wrote:// In that case, you forgot:

Random r = new Random(); //;)

// fixed

// With what I'm learning my java on (Eclipse) random class is static so I don't need to make a new random, so ha :P

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Sun Oct 26, 2008 6:00 pm
by animorpherv1
Fircoal = Random

/in???

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Sun Oct 26, 2008 6:41 pm
by pancakemix
Eh, why not.

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Sun Oct 26, 2008 7:11 pm
by sheepofdumb
Sign me up. (Must kill pancake)

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Tue Oct 28, 2008 4:32 am
by daydream
setNewPlayer(5, "daydream");

// what, none of you use getter and setter methods?

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Tue Oct 28, 2008 6:33 am
by mr. incrediball
i don't understand java.

is that a problem?

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Tue Oct 28, 2008 9:30 am
by /
In please, If only to confuse everyone with my scripting related name.

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Tue Oct 28, 2008 10:00 am
by ace1217
Umm.... /in?

Re: public class MafiaGame{ private int signUpNum = 7

PostPosted: Tue Oct 28, 2008 1:54 pm
by Fircoal
/* blargh, that's 10 I'll have to edit setup a bit but ok. I'll be sending out pms today, when I'm at home and have the file.

Re: public class MafiaGame{ //Overfull

PostPosted: Tue Oct 28, 2008 2:04 pm
by InkL0sed
public String toString(){
    String s = "";
    for(int i=0; i<players.length; i++){
      s += players[i].name + ", ";
    }
    s += "\n"
    return s;
}

Re: public class MafiaGame{ //Overfull

PostPosted: Tue Oct 28, 2008 2:06 pm
by Fircoal
InkL0sed wrote:public String toString(){
    String s = "";
    for(int i=0; i<players.length; i++){
      s += players[i].name + ", ";
    }
    s += "\n"
    return s;
}

// ACK FORLOOP!!!!! DON'T KNOW YET!!!!!! *shot*

Re: public class MafiaGame{ //Overfull

PostPosted: Tue Oct 28, 2008 2:45 pm
by InkL0sed
Fircoal wrote:
InkL0sed wrote:public String toString(){
    String s = "";
    for(int i=0; i<players.length; i++){
      s += players[i].name + ", ";
    }
    s += "\n"
    return s;
}

// ACK FORLOOP!!!!! DON'T KNOW YET!!!!!! *shot*


/* It's fairly simple really, it's pretty much a while loop. First part initializes a counter variable, second is the condition, third part increments i...

So it's the same as saying:
int i = 0;
while (i < players.length){
    ~~stuff~~
    i++;
}

*/

Re: public class MafiaGame{ //Overfull

PostPosted: Tue Oct 28, 2008 3:14 pm
by Fircoal
InkL0sed wrote:
Fircoal wrote:
InkL0sed wrote:public String toString(){
    String s = "";
    for(int i=0; i<players.length; i++){
      s += players[i].name + ", ";
    }
    s += "\n"
    return s;
}

// ACK FORLOOP!!!!! DON'T KNOW YET!!!!!! *shot*


/* It's fairly simple really, it's pretty much a while loop. First part initializes a counter variable, second is the condition, third part increments i...

So it's the same as saying:
int i = 0;
while (i < players.length){
    ~~stuff~~
    i++;
}

*/


maybe so but it's my first year.

btw - ink you doing nano this year?

Re: public class MafiaGame{ //Overfull

PostPosted: Tue Oct 28, 2008 3:15 pm
by InkL0sed
I direct you to this thread (the answer is yes): viewtopic.php?f=8&t=68125

Re: public class MafiaGame{ //Overfull

PostPosted: Wed Oct 29, 2008 7:01 am
by daydream
Fircoal wrote:
InkL0sed wrote:
Fircoal wrote:
InkL0sed wrote:public String toString(){
    String s = "";
    for(int i=0; i<players.length; i++){
      s += players[i].name + ", ";
    }
    s += "\n"
    return s;
}

// ACK FORLOOP!!!!! DON'T KNOW YET!!!!!! *shot*


/* It's fairly simple really, it's pretty much a while loop. First part initializes a counter variable, second is the condition, third part increments i...

So it's the same as saying:
int i = 0;
while (i < players.length){
    ~~stuff~~
    i++;
}

*/


maybe so but it's my first year.

btw - ink you doing nano this year?


i lol'd... we went further than that in our first lecture ;)
after our first week, we programmed snake. a very funny trial and error experience...

Re: public class MafiaGame{ //Overfull

PostPosted: Wed Oct 29, 2008 6:34 pm
by Fircoal
daydream wrote:
Fircoal wrote:
InkL0sed wrote:
Fircoal wrote:
InkL0sed wrote:public String toString(){
    String s = "";
    for(int i=0; i<players.length; i++){
      s += players[i].name + ", ";
    }
    s += "\n"
    return s;
}

// ACK FORLOOP!!!!! DON'T KNOW YET!!!!!! *shot*


/* It's fairly simple really, it's pretty much a while loop. First part initializes a counter variable, second is the condition, third part increments i...

So it's the same as saying:
int i = 0;
while (i < players.length){
    ~~stuff~~
    i++;
}

*/


maybe so but it's my first year.

btw - ink you doing nano this year?


i lol'd... we went further than that in our first lecture ;)
after our first week, we programmed snake. a very funny trial and error experience...


bah :evil:

Re: public class MafiaGame{ //Overfull

PostPosted: Tue Nov 11, 2008 11:20 pm
by InkL0sed
bump...

Re: public class MafiaGame{ //Overfull

PostPosted: Wed Nov 12, 2008 12:29 am
by Fircoal
InkL0sed wrote:bump...


I think I'm not going to run this until Dec. 1 ;)

Re: public class MafiaGame{ //Overfull

PostPosted: Wed Nov 12, 2008 5:22 pm
by dittoeevee8888
Fircoal wrote:
InkL0sed wrote:bump...


I think I'm not going to run this until Dec. 1 ;)


So then why can't you postpone Unmafia until dec. 1st?

Re: public class MafiaGame{ //Overfull

PostPosted: Thu Nov 13, 2008 3:16 pm
by Fircoal
dittoeevee8888 wrote:
Fircoal wrote:
InkL0sed wrote:bump...


I think I'm not going to run this until Dec. 1 ;)


So then why can't you postpone Unmafia until dec. 1st?


I could, but it seems that that game is dead regardless though. :(

Re: public class MafiaGame{ //Overfull

PostPosted: Thu Nov 13, 2008 7:52 pm
by dittoeevee8888
Fircoal wrote:
dittoeevee8888 wrote:
Fircoal wrote:
InkL0sed wrote:bump...


I think I'm not going to run this until Dec. 1 ;)


So then why can't you postpone Unmafia until dec. 1st?


I could, but it seems that that game is dead regardless though. :(


mass replacements. Or you mass prod.