Hangman Game

In: Computers and Technology

Submitted By jamie271095
Words 593
Pages 3
import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.util.Random;

class Hangmangame extends Applet implements ActionListener{

static final int DEAD=13; // amount of errors till loss private int errors; // amount of errors private String message; // error or victorie private String information; // information of the message private String rword; // the rword private StringBuffer gword;// the gword private Button bStart; // Button "Restart" private Button bGo; // Button "Go" private TextField tfLetter; // letter box private Font fnt; // common font

public void init(){ fnt = new Font( "Monospaced", 0, 12 ); // Create textbox for guess letter tfLetter = new TextField(); // Create buttons and labels bStart = new Button("Restart"); bGo = new Button("Go"); // Add the graphical elements to the applet add(bStart); add(new Label("Guess a letter:")); add(tfLetter); add(bGo); // Buttons are events: bStart.addActionListener(this); bGo.addActionListener(this); // Start first game initGame(); } public void initGame(){ /* Setting the errors to 0 */ errors=0;

/* Enter the wordslist, separated by a | here: */ String str =…...

Similar Documents

Games

...Note: ----- Cheat codes can also be entered while the game is paused. This way you can enter cheat codes when you have to enter them quickly. Code Result ---------------------------------- MIAMITRAFFIC - Aggressive Drivers NUTTERTOOLS - All ''heavy'' weapons THUGSTOOLS - All ''light'' weapons PROFESSIONALTOOLS - All ''medium'' weapons IWANTITPAINTEDBLACK - All cars are black AHAIRDRESSERSCAR - All cars are pink GREENLIGHT - All traffic lights are green BIGBANG - Blow up nearby cars SEAWAYS - Cars can drive/hover over water COMEFLYWITHME - Cars can fly STILLLIKEDRESSINGUP - Change Skin/Clothes ICANTTAKEITANYMORE - Commit Suicide LEAVEMEALONE - Decrease Wanted Level ABITDRIEG - Dense Clouds AIRSHIP - Fast boats can fly for short periods of time CANTSEEATHING - Foggy Weather PRECIOUSPROTECTION - Full Armor ASPIRINE - Full Health CHICKSWITHGUNS - Girls Carry Guns PROGRAMMER - Gives Tommy girly arms/legs FANNYMAGNET - Ladies Man, Women Follow You APLEASANTDAY - Light Clouds ONSPEED - Makes everything faster BOOOOOORING - Makes everything slower DEEPFRIEDMARSBARS - Makes Tommy......

Words: 760 - Pages: 4

Game

...contexts and can be imprecise. Instead, terms such as 'pathological gambling' or 'substance abuse' are used in the diagnosis of addiction related diseases. Video Game Addiction Researchers have explored the notion of video game addiction since the mid eighties, however the research on the topic is disparate and preliminary. Research is accelerating now. Due to the abovementioned shortfalls of the term 'addiction', the phenomnon has also been referred to in research by other prefixes and suffixes such as excessive, intemperate, overuse, pathological, compulsive and problematic. Researchers turned attention to the topic after reports surfaced of arcade gamers becoming alarmingly preoccupied with gaming and displaying anti-social behaviours to support play, including stealing to fund play and neglecting social responsibilities such as school or work. It is yet to be determined how severe the negative consequences are of video game addiction, compared to other syndromes which have research more research attention. Pathological Gambling Applied to Video Game Addiction It is useful to illustrate how behavioural addiction has been studied by first looking at pathological gambling. Pathological gambling is an example of a behavioural addiction, and is also the model most used to explore excessive video game play. Pathological gambling is well recognised by medical authorities and it has a diagnosis in the Diagnostic and Statistical Manual of Mental Disorders (or DSM,......

Words: 2385 - Pages: 10

Game

... Contents Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapter 1 How Game Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Chapter 2 Simple Steps To Being Natural . . . . . . . . . . . . . . . . 9 Confidence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Abundance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Sexual Escalation . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Chapter 3 The Importance of Opening . . . . . . . . . . . . . . . . . . . 15 Chapter 4 The Myths of Seduction . . . . . . . . . . . . . . . . . . . . . . 19 Chapter 5 The Format To Meeting During The Day . . . . . 23 The Situational Opener . . . . . .. . . . . . . . . . . . 2 4 Chapter 6 Day Game – Live Approach Broken Down . . . 27 Introduction My experiences have given me a massive edge in dating and attracting the women I wanted. I don’t rely on a bunch of pre-scripted lines and techniques but rather on applying real psychological theory based on real-life scientific studies. Not only have I learned what triggers attraction but I have the in-field experience to know firsthand which techniques work and which ones don’t. When you understand the principles of dating and attraction you can turn it on whenever you want. Not only will you never be alone but you will also be able to get the kind of girlfriend you’ve always wanted. In this manual, I’ve broken these steps down into a......

Words: 7728 - Pages: 31

Tom Long - Hangman

...was induced to set out on his life of killing. He was serving a term in the Auckland gaol in 1887 when he was promised remis¬sion of his sentence and a sum of money, if he would agree to act as the hangman. The Irish-born Long, who claimed to have hanged several people in Australia, readily agreed to the terms and John Caffrey and Henry Penn became the first of Long's 13 New Zealand victims. Caffrey and Penn had committed a bizarre murder on Great Barrier Island. The two men had hatched a plan to kid¬nap Elizabeth Seymour, a woman Caffrey had become besotted with, although she did not return his affections. They intended to sail away with her into the South Pacific, to live together on a trop¬ical island. The crime was ludicrously botched from start to finish and Caffrey and Penn ended up shooting and killing Elizabeth Seymour's father, Edward Taylor. They made their getaway in the ship they had planned to take to their tropical island, raising a pirate flag and heading for America. Their sailing skills matched their crimi¬nal aptitude and, after contrary winds, the pair were washed ashore in Australia, cap¬tured and returned to New Zealand for trial. They were found guilty and sentenced to hang. Newspapers reported the double hang¬ing in graphic detail, noting the hangman, disguised behind a black crepe bandage and as yet not known to the general public, was "of middle height and of powerful build". They also noted he was not at all ner¬vous, nor impatient - he......

Words: 1661 - Pages: 7

Games

...healthy lifestyle with a healthy eating habits and lost of exercise can bring about health. Therefore, games should be made compulsory in schools. Games promote positive qualities like team work and sportsmanship. In games which involves in team like football, volleyball and basketball, players must cooperate with one another to ensure the success of their team. There is no place for selfish desires and personal glory. On the other hand, when the team loses, all the teammates share the blame. Games and sport make the school life interesting. They add variety. Imagine having to study a whole day and then having to sit for exams. It will be both monotonous and boring, just as the saying goes ‘All work and no play makes Jack a dull boy.’ Every game has its own set of rules and regulations. Players must adhere to these rules and regulations. If a player goes against any of them, he will be penalized. Games, thus, help students to be disciplined. Similarly, students become aware that as they grow older, they have to conform to the norms of society. If they do not, they run the risk of being ostracized. Games which are held after school hours will keep students occupied. They will not have time to pursue undesirable activities such as loafing and watching blue movies. This proves the adage, ‘An idle mind is the devil’s workshop.’ Taking into consideration the numerous benefits games and sports have to offer, it is imperative that they be included in the school curriculum....

Words: 320 - Pages: 2

Game

...daily basis. All e-mail correspondence must take place over Kendall e-mail; e-mailing your instructor from a personal e-mail account will not receive a response. If your instructor receives any email from an unknown source it will automatically be removed by the junk mail filter. If you have any technical problems, you can contact the Information Technology (IT) Department at (312) 752-2548 or by e-mail at itsupport@kendall.edu. Please act in a professional manner by refraining from using electronic devices for purposes other than class activities during class time. Students using any laptop, tablet (e.g., iPad), cellphones, or smartphones for purposes other than class activities (e.g., Facebook, text messaging, personal e-mails, games, etc.) will be asked to close their device and put it away. Such activity will have an adverse effect on your grade and be reflected in the class participation portion of your grade. If you are a repeat offender, then you may be asked to leave the class for the remainder of the class session. The use of cell phones, smart phones, and music and video players is prohibited at all times during class, unless otherwise noted by the instructor. All cell phone and smart phones should be turned off and put away, so you will not disturb the class. General Course Policies In this class, you will be expected to do the following: 1. Access the course content in Blackboard. Be sure to pay attention to changes in the syllabus......

Words: 2636 - Pages: 11

The Game

...playing a game in the square when suddenly the sky turns dark. A boy runs through the square yelling, “The world is ending! The wise men say the world will end in less than one hour!” The first man jumps to his feet and says, “I must go to the temple and pray!” The second man jumps up and says, “I must go home and be with my family!” The third man looks at them both and says, “As for myself, I shall finish the game.” I can’t count the number of times I have looked back on my life with regret for one reason or another. I have made promises I never intended to keep. I have hurt those I cared about the most. I have sinned against my Lord with something I have done, or not done. I have not lived as I should at all times. I would do or say something stupid or wrong, and I would tell myself, “I’ll fix it later.” But James warned us not to fall prey to that attitude. We are told in James 4:13,14 that we should not say we will do this or that tomorrow, for we don’t even know if tomorrow will come. We are not promised our next heartbeat, so why do we put off until tomorrow what needs to be done today? Why do we put off until later something that needs to be done now? What would you do right now if you were told the world would end in less than an hour? Would you run to the temple to get things right with God? Would you run home to make amends with your spouse or your children? Or would you be able to say, “I am living as I should. I shall finish the game.”...

Words: 308 - Pages: 2

Games

... Longherst English 101 April 30, 2012 From One Controller to Another Video games and computer games use game controllers as the input device that directs movements and actions of on-screen objects. The commonly used game controllers are gamepads and motion-sensing game controllers (Joyce). Game controllers not only enrich the gaming experience but also aid in the movements and actions of players. A gamepad is held by the player with both hands, allowing the player to control the movement or actions of the objects in the video or computer games. Players press buttons on the gamepad, often with their thumbs, to carry out actions. Some gamepads have swiveling sticks that also can trigger events during the game play (Cortez 20-24). Some gamepads include wireless capabilities; others connect via a cable directly to the game console or a personal computer. Motion-sensing game controllers allow the user to guide on-screen elements or trigger events by moving a handheld input device in predetermined directions through the air. These controllers communicate with a game console or personal computer via wired or wireless technology. A variety of games, from sports to simulations, use motion-sensing game controllers. Some of these controllers, such as baseball bats and golf clubs, are designed for only one specific kind of game; others are general purpose. A popular general-purpose, motion-sensing game controller is Nintendo’s Wii Remote. Shaped like a television remote control......

Words: 346 - Pages: 2

The Game

...Game Time What is a commercial? A commercial is a paid advertisement on television or radio, or something related to doing business or for business purpose. I think without commercials a lot of things would not be sold in this world. When would be the best time to let everyone know what businesses are selling, the Super Bowl? In most commercials I think they use sex to sell or catch our attention to see what they are selling. As I watched the Super Bowl there was a lot of commercials and most of them if not all was advertising to sell something. One commercial that caught my attention was a coca-cola commercial. I think it was selling a lot and also showing that this product has been around for a long time. In this commercial to me it showed that the world has diversity by showing that different cultures also love to drink this product. Seeing that would make me want to buy their product because to me it shows that it’s not just one culture that buys this product and also it wants everyone to be satisfied with their product. This commercial also sold me by showing a family spending time together and really it looks like they’re enjoying the time their spending together drinking a soda that everyone in the family enjoys. It also shows that this product is good to have during a gathering because it seems so refreshing. Another thing this commercial used to sell this product was bright colors to catch the eye. It was showing that family should spend more time together. A......

Words: 748 - Pages: 3

Game

...Once you have the Buggy, go back to Costa Del Sol while in the Buggy and take the ship back to the first continent. Go east from Junon and follow the river until you reach a place where you can cross it. Go north and you’ll see a cave. Go inside and check how many times you’ve fought. If the number of times you’ve fought has the last two digits the same (like 388 or 511) then the guy there will give you an item. If you go in with say, 244 and you get a Bolt Ring, go outside, fight exactly 11 times and go back in. He should give you Mithril. If he gives you Mithril first time, lucky you. Oh and sometimes he just says how many times you’ve escaped or whatever, so go outside, battle once and go back in. After getting the Mithril, go through the game and get the Tiny Bronco. Once you have that, go to the right of Gold Saucer and you’ll see a hut. Go in the hut and give the guy there the Mithril. Then go to the second floor and open the safe-like thing there to get Great Gospel. This makes all party members invincible for the battle and restores all their Hit Points and Magic Points. Level 1: Sled Fang- Automatically activated. Red XIII dashes at and attacks a single enemy. Lunatic High- Activated after using Sled Fang 9 times. Red XIII casts Haste on the whole party. Level 2: Blood Fang- Activated after defeating 80 enemies with Red XIII. Red XIII dashes at a single enemy and his Hit Points and Magic Points are regained according to the opponent’s Magic Points. Stardust......

Words: 1948 - Pages: 8

Game

...For hundreds of years game animals have been hunted throughout the world. Deer, elk, rabbit, squirrel, ducks, geese and wild turkeys are hunted in the United States. Unregulated hunting has seriously threatened some species of wildlife. Here are a few examples. Herds of buffalo that once numbered in the millions were nearly wiped out by hunters in the 19th century. They were killed for enjoyment and profit. By 1895 only 400 remained in the United States. In the west pronghorn and deer populations were nearly wiped out to feed the growing population. Some game birds such as the passenger pigeon were hunted to extinction. After all of these animal populations were decimated some people began to take notice. The general public caused some states to pass laws protecting some animals. The government also started to set aside land for national parks and wildlife refuges. In 1872 Ulysses S. Grant signed a bill that created Yellowstone National Park. This was the first ever national park. Several other national parks were created shortly after. Other laws were passed to set dates for hunting seasons and set bag limits. These laws also outlawed inhumane hunting methods. Once protected by laws and regulations game animals began to flourish. The spreading of human settlements also helped animals flourish. The settlers killed off predatory animals like wolves and grizzly bears. The animals that spread the most were elk and deer. These animals spread so rapidly that the area they were...

Words: 318 - Pages: 2

Games

... Issue  1,  pp.122-­‐128,  2013 THE IMPACT OF VIDEO GAMES ON STUDENT GPA, STUDY HABITS, AND TIME MANAGEMENT SKILLS: WHAT’S THE BIG DEAL? Jordan Weaver, Walsh University, jordanweaver@walsh.edu Philip Kim, Walsh University, pkim@walsh.edu Richard L. Metzer, Robert Morris University, rlmst26@mail.rmu.edu Julie M. Szendrey, Walsh University, jszendrey@walsh.edu ABSTRACT Playing video games has become one of the largest leisure activities in the world. This study examines the effects video games have on college students, their grade point averages, time management, and study habits. Existing literature has linked video game usage as being negatively correlated with each of these three variables. This research, using a sample of the undergraduate student population at a private university in northeast Ohio, found a statistically significant correlation between video game usage and grade point average. Statistically significant relationships were not found between video game usage and the variables of time management skills or study habits. It is important that college students are aware of these possible negative effects of video game usage on their academic performance. This research can serve as a foundation for future research on the impact of video game playing and student performance. Keywords: Videogames, GPA, Study Habits, Time Management Skills, Student Performance INTRODUCTION The video game industry has flourished to become the world’s......

Words: 3326 - Pages: 14

Games

...Video Games First off, you would imagine how thrilled our team was to have to write a paper during the holidays, with a deadline just two days after the winter break, so we came up with a clever way to bypass all the research work needed and just start writing about things we already knew and also loved doing, in order to grasp a more subjective approach on the chosen topic. People often say that if you don’t truly believe in the things you are working on and don’t have fun whilst doing them, you won’t be successful in any of your endeavors. This means you have to work with passion, because the first person you are ultimately going to sell the idea of the finished product is yourself, and if you can’t fully embrace the concept, it’s going to be even harder to pitch it to someone else. That being said, we quickly searched for a topic that each member of our team could relate to, and also provide valuable insight upon his experience and personal preferences on the subject at hand. In the end we settled on the topic of video games, due to the wide variety available these days. Figure 1. Pacman machine Figure 1. Pacman machine The first ever commercially produced video games were arcade games back in the early ‘70s in the United States, and I think we all remember in movies those huge machines that took up quite a lot of space in pubs, where people could play games such as Pacman, Space Invaders or Donkey Kong. They were very successful and in fact,......

Words: 1628 - Pages: 7

Game

...The Video Game Industry An Industry Analysis, from a VC Perspective Nik Shah T’05 MBA Fellows Project March 11, 2005 Hanover, NH The Video Game Industry An Industry Analysis, from a VC Perspective Authors: Nik Shah Nik.Shah@Dartmouth.edu Tuck Class of 2005 Charles Haigh Charles.Haigh@Dartmouth.edu Tuck Class of 2005 • The video game industry is poised for significant growth, but many sectors have already matured. Video games are a large and growing market. However, within it, there are only selected portions that contain venture capital investment opportunities. Our analysis highlights these sectors, which are interesting for reasons including significant technological change, high growth rates, new product development and lack of a clear market leader. The opportunity lies in non-core products and services. We believe that the core hardware and game software markets are fairly mature and require intensive capital investment and strong technology knowledge for success. The best markets for investment are those that provide valuable new products and services to game developers, publishers and gamers themselves. These are the areas that will build out the industry as it undergoes significant growth. • A Quick Snapshot of Our Identified Areas of Interest • Online Games and Platforms. Few online games have historically been venture funded and most are subject to the same “hit or miss” market adoption as console games, but as this segment grows, an......

Words: 15586 - Pages: 63

Games

..._________________________________________________________________________________________________ Game Outline High Concept You are ninja. You must use your special assassin abilities to overturn the mutant cakes and take back the city in the final battle of the bulge. As ninja, the player must work her way through four different lands to conquer the mutant cakes before they take over the final landscape – the city. 1. Gameplay Goal There are four main worlds within the game which progress in a parallel layout (Adams, E. & Rollings, A. 2007). The four main worlds, Country, Residential, Industrial and City must be saved from the mutant cakes that slowly take over each world. As the player traverses each landscape destroying cakes, the enemy also continues alongside her defying being completely hunted down and destroyed. The player encounters evolved mutant cakes at the end of each world level and must defeat it before gaining access to the next world. The ultimate goal is to stop the mutant cakes from reaching the City World and conquering civilization. _____________________________________________________________________________________________      2 INFT6300 – Assignment 2: Game Script Report Daniel Michael, 3103360 UoN Trimester 1, 2010 _________________________________________________________________________________________________ The following table describes the high level game progression through each of the four worlds and the required skill level......

Words: 4857 - Pages: 20