|
|
Does anyone have a Hangman java code for use in edit plus java program?
I am using the program edit plus, and i am suppose to make a java program that after writing the code for a hangman (line drawing after compiled) im suppose to make it so that if you compile the program in the CMD it will ask u if you want to enter 1 for 1/3rd of the hangman, 2 for the other 1/3, and 3 for the last part, and if no then it will ask again. Can you give me the code so i can do this?
The hangman picture itself code is this:
import TurtleGraphics.*;
class HangmanView
{
public static void main (String args[])
{
StandardPen pen = new StandardPen();
pen.home();
// code for circle
int x = 1;
while(x <= 100)
{
pen.move (4);
pen.turn (4);
x++;
}
{
//Gallow Stand
pen.home ();
pen.up ();
pen.setDirection (180);
pen.move (60);
pen.setDirection (90);
pen.move (60);
pen.down ();
pen.move (50);
pen.setDirection (0);
pen.move (150);
pen.setDirection (270);
pen.move (400);
pen.setDirection (180);
pen.move (50);
pen.setDirection (0);
pen.move (100);
// Right Eye (Triangle
pen.home();
pen.setDirection (180);
pen.up();
pen.move (50);
pen.down();
pen.setDirection (45);
pen.move (10);
pen.setDirection (-45);
pen.move (10);
pen.setDirection (180);
pen.move (12);
// Left Eye (Triangle)
pen.up();
pen.move (50);
pen.down();
pen.setDirection (45);
pen.move (10);
pen.setDirection (-45);
pen.move (10);
pen.setDirection (180);
pen.move (12);
//Nose (Trianle shape)
pen.up();
pen.setDirection (0);
pen.move (30);
pen.down();
pen.setDirection (-135);
pen.move (10);
pen.setDirection (0);
pen.move(10);
pen.setDirection (135);
pen.move (10);
// Mouth (Square Shaped)
pen.up();
pen.setDirection (270);
pen.move (20);
pen.down();
pen.move (25);
pen.turn (90);
pen.move (25);
pen.turn (90);
pen.move (25);
pen.turn (90);
pen.move (25);
pen.turn (90);
//Neck and (Facing You) Left Hand
pen.up ();
pen.home ();
pen.setDirection (180);
pen.move (60);
pen.setDirection (270);
pen.move (58);
pen.down ();
pen.move (30);
pen.setDirection (180);
pen.move (40);
pen.setDirection (135);
pen.move (10);
pen.setDirection (360);
pen.move (10);
pen.setDirection (180);
pen.move (10);
pen.setDirection (-270);
pen.move (10);
// Right Hand (Facing You)
pen.up ();
pen.home ();
pen.setDirection (180);
pen.move (60);
pen.setDirection (270);
pen.move (58);
pen.down ();
pen.move (30);
pen.setDirection (0);
pen.move (40);
pen.setDirection (45);
pen.move (10);
pen.setDirection (90);
pen.move (10);
pen.setDirection (270);
pen.move (10);
pen.setDirection (180);
pen.move (10);
//Left Leg (Facing You)
pen.up ();
pen.home ();
pen.setDirection (180);
pen.move (60);
pen.setDirection (270);
pen.move (58);
pen. down ();
pen.move (100);
pen.setDirection (210);
pen.move (70);
//Right Left (Facing You)
pen.up ();
pen.home ();
pen.setDirection (180);
pen.move (60);
pen.setDirection (270);
pen.move (58);
pen. down ();
pen.move (100);
pen.setDirection (330);
pen.move (70);
}
}
}
You may contact a java expert live at website like ijug.net ,etc .
There must be a formula to it, which are the most common letters and which order would you use them in?i have it for a l.a project/.. and i am 20 pages away frm the ennding but i don'T HAVE TIME TO READ THE REST.any difficult to think of, but that are easy to remember.
(eg. czar, cyst, pygmy... etc)The word is
Edge_a_s the avaliable letters are : F H J K P Q U W X Y Z
So out of those letters could--- ---- ---- ------ ---- ----
there's five letters in my name pick a letter and if it's thereWhen user has input too many wrong goes it crashes and comes up yellow at the line 'index = thisword.word.IndexOf(letter,
|
Funny Laughter
Pixar Cars
|
|