Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/W0ltage/HangIt
Browse files Browse the repository at this point in the history
  • Loading branch information
saygnpoyraz committed Dec 23, 2018
2 parents dde62d1 + f6caf20 commit cf69c5d
Show file tree
Hide file tree
Showing 2 changed files with 328 additions and 1 deletion.
317 changes: 317 additions & 0 deletions JSON.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,317 @@
[
{
"difficulty": "easy",
"words":[
"cool",
"flash",
"banjo",
"crypt",
"gypsy",
"oxygen",
"pajama",
"twelfth",
"unzip",
"waxy",
"wildebeest",
"yacht",
"zealeous",
"zigzagging",
"zippy",
"zombie",
"jump",
"climb",
"run",
"jogging",
"unworthy",
"whiskey",
"zipper",
"microwave",
"jackpot",
"nightclub",
"jinx",
"joking",
"flopping",
"thriftless",
"gossip",
"razzmatazz",
"strength",
"yummy",
"wizard",
"staff",
"syndrome",
"nowadays",
"jawbreaker",
"galvanize",
"fluffiness",
"euouae",
"faking",
"flapjack",
"foxglove",
"frazzled",
"quizzes",
"fixable",
"mystify",
"yachtsman",
"wristwatch",
"queue",
"icebox",
"keyhole",
"gabby",
"exhaust",
"extract",
"flying",
"swimming",
"dying",
"killing",
"crying",
"sobering",
"fire",
"water",
"wood",
"coke",
"fanta",
"sprite",
"ice",
"lemon",
"tea",
"solid",
"liquid",
"gas",
"unzip",
"transcript",
"stronghold",
"quorum",
"flyby",
"funny",
"angry",
"fast",
"furious",
"murdering",
"genocide",
"suicide",
"pesticide",
"battle",
"arcade",
"easy",
"medium",
"hard",
"bring",
"horse",
"cat",
"dog",
"diego",
"lopez",
"gum"
]
},
{
"difficulty": "medium",
"words":[
"amazing",
"tabletennis",
"awkward",
"bungler",
"croquet",
"Dwarwes",
"hyphen",
"ivory",
"jazzy",
"jiffy",
"jinx",
"rogue",
"sphinx",
"squawk",
"swiwel",
"toady",
"gnostic",
"menemonic",
"matrix",
"grogginess",
"flash",
"ivy",
"jaywalk",
"kazoo",
"knapsack",
"luxury",
"megahertz",
"gigahertz",
"pshaw",
"quartz",
"quiz",
"onyx",
"puzzling",
"woozy",
"zlich",
"unknown",
"subway",
"railway",
"crash",
"accident",
"road",
"avoid",
"refrain",
"prevent",
"xylophone",
"youthful",
"marquis",
"jovial",
"jaundice",
"galaxy",
"gizmo",
"buffoon",
"boxcar",
"layout",
"axiom",
"banjo",
"bikini",
"cockiness",
"cycle",
"dizzying",
"glyph",
"latrogenic",
"juicy",
"schnapps",
"buckaroo",
"transgress",
"uptown",
"voodoo",
"waltz",
"stymied",
"kazoo",
"rhurab",
"psyche",
"gabby",
"larynx",
"triphthong",
"vixen",
"abrupt",
"wavy",
"witchcraft",
"wild",
"voyeurism",
"flapjack",
"buffalo",
"axiom",
"numbskull",
"phlegm",
"lucky",
"bandwagon",
"rickshaw",
"quips",
"glowworm",
"blizzard",
"azure",
"scratch",
"askew",
"flash",
"blitz",
"glaour",
"duplex"
]
},
{
"difficulty": "hard",
"words":[
"cool",
"flash",
"bagpipes",
"awkward",
"fervid",
"fishhook",
"fjord",
"gazebo",
"haiku",
"haphazard",
"jukebox",
"kayak",
"kiosk",
"klutz",
"memento",
"mystify",
"numbskull",
"ostracize",
"phlegm",
"pixel",
"polka",
"quad",
"quip",
"rhythmic",
"bovver",
"puffing",
"propping",
"wheeziness",
"huff",
"zine",
"duff",
"hazing",
"queuing",
"fulfilling",
"beekeepers",
"shagginess",
"wigwagging",
"bowwowing",
"quipping",
"squabbing",
"woolliness",
"overjoying",
"sleeveless",
"parallaxes",
"alkalizing",
"doddering",
"jolliness",
"bubbliest",
"huzzahing",
"shivving",
"cockiness",
"jugged",
"faxes",
"flash",
"fuzzy",
"faffs",
"buffs",
"waxes",
"chumminess",
"skyjacking",
"mummifying",
"revivified",
"blabbering",
"jinxing",
"faze",
"junk",
"spam",
"boxy",
"cozy",
"joked",
"jives",
"buzzer",
"puppying",
"muzzling",
"grubbiness",
"dictionary",
"animal",
"household",
"dignity",
"novice",
"professional",
"competition",
"triumphant",
"huge",
"president",
"assembly",
"national",
"travelling",
"voyage",
"trip",
"springtime",
"burp",
"squat",
"heck",
"hell",
"thanksgiving",
"heaven",
"christmas",
"extreme",
"jealous"
]
}
]
12 changes: 11 additions & 1 deletion src/HangmanController.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class HangmanController implements ActionListener {

private HangmanModel model;
Expand All @@ -17,7 +18,6 @@ public HangmanController(HangmanModel model, HangmanView view) {

public void startGame() {
view.createLoginScreen();

}

@Override
Expand All @@ -29,6 +29,16 @@ public void actionPerformed(ActionEvent e) {
System.out.println(diffuculty);
model.setDifficultyType(diffuculty);
view.createGameScreen(model.getSecretWord());
for(int i = 0; i < view.getAnswerButtons().length; i++) {
view.getAnswerButtons()[i].addActionListener(new ActionListener() {

@Override
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub

}
});
}
view.getGuess().addActionListener(new ActionListener() {

@Override
Expand Down

0 comments on commit cf69c5d

Please sign in to comment.