Page 1 of 2
		
			
				public class MafiaGame{ //Overfull
				
Posted: 
Sun Oct 26, 2008 11:00 amby 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
				
Posted: 
Sun Oct 26, 2008 11:05 amby InkL0sed
				Player InkL0sed = new Player(new Signup(true));
(what's with the Java code?)
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Sun Oct 26, 2008 11:12 amby 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
				
Posted: 
Sun Oct 26, 2008 11:18 amby InkL0sed
				// In that case, you forgot:
Random r = new Random();  

 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Sun Oct 26, 2008 11:36 amby 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 

 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Sun Oct 26, 2008 6:00 pmby animorpherv1
				Fircoal = Random
/in???
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Sun Oct 26, 2008 6:41 pmby pancakemix
				Eh, why not.
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Sun Oct 26, 2008 7:11 pmby sheepofdumb
				Sign me up. (Must kill pancake)
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Tue Oct 28, 2008 4:32 amby daydream
				setNewPlayer(5, "daydream");
// what, none of you use getter and setter methods?
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Tue Oct 28, 2008 6:33 amby mr. incrediball
				i don't understand java.
is that a problem?
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Tue Oct 28, 2008 9:30 amby /
				In please, If only to confuse everyone with my scripting related name.
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Tue Oct 28, 2008 10:00 amby ace1217
				Umm.... /in?
			 
			
		
			
				Re: public class MafiaGame{ private int signUpNum = 7
				
Posted: 
Tue Oct 28, 2008 1:54 pmby 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
				
Posted: 
Tue Oct 28, 2008 2:04 pmby 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
				
Posted: 
Tue Oct 28, 2008 2:06 pmby 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
				
Posted: 
Tue Oct 28, 2008 2:45 pmby 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){
}
*/
 
			
		
			
				Re: public class MafiaGame{ //Overfull
				
Posted: 
Tue Oct 28, 2008 3:14 pmby 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){
}
*/
 
maybe so but it's my  first year.
btw - ink you doing nano this year?
 
			
		
			
				Re: public class MafiaGame{ //Overfull
				
Posted: 
Tue Oct 28, 2008 3:15 pmby InkL0sed
				I direct you to this thread (the answer is yes): 
viewtopic.php?f=8&t=68125 
			
		
			
				Re: public class MafiaGame{ //Overfull
				
Posted: 
Wed Oct 29, 2008 7:01 amby 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){
}
*/
 
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
				
Posted: 
Wed Oct 29, 2008 6:34 pmby 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){
}
*/
 
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  

 
			
		
			
				Re: public class MafiaGame{ //Overfull
				
Posted: 
Tue Nov 11, 2008 11:20 pmby InkL0sed
				bump...
			 
			
		
			
				Re: public class MafiaGame{ //Overfull
				
Posted: 
Wed Nov 12, 2008 12:29 amby Fircoal
				InkL0sed wrote:bump...
I think I'm not going to run this until Dec. 1 

 
			
		
			
				Re: public class MafiaGame{ //Overfull
				
Posted: 
Wed Nov 12, 2008 5:22 pmby 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
				
Posted: 
Thu Nov 13, 2008 3:16 pmby 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
				
Posted: 
Thu Nov 13, 2008 7:52 pmby 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.