|
|
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 .
I need some good ideas of words that are really hard to guess for hangman. Any suggestions please?Hi all
I saw the film 'Downfall' about the final days of the Third Reich, much was made of Hangman in traditionalHow do I program hangman with out exact letter lengths? I can get the program to work by using an exact length of words,Huh...
So what do you think of the lagging problems in this multiplayer co-op mission,i been getting kick out from thewhat is this 4 letter word, fill in the blank!
A_ANi'm thinking of a 3 word phrase......o.O
|
|
|