Skip to content

Commit

Permalink
* dev 8
Browse files Browse the repository at this point in the history
* documentation
  • Loading branch information
osamaz26 committed Feb 22, 2019
1 parent c92e9b5 commit e28af02
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/oz222am_hangman/Hangman.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,27 @@
import oz222am_hangman.UI.Layouts.Words.WordsLayout;
import oz222am_hangman.UI.View;

/**
* The type Hangman.
*/
public class Hangman {
private View view;
private Words words;

/**
* Instantiates a new Hangman.
*
* @param view the view
*/
public Hangman(View view) {
this.view = view;
}

/**
* Start.
*
* @param wordsPath the words path
*/
void start(String wordsPath) {
words = new Words(wordsPath);
try {
Expand Down
8 changes: 8 additions & 0 deletions src/oz222am_hangman/HangmanMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@

import oz222am_hangman.UI.Console;

/**
* The type Hangman main.
*/
public class HangmanMain {

/**
* The entry point of application.
*
* @param args the input arguments
*/
public static void main(String[] args) {
if (args.length != 1) {
System.err.println("Please set location of words text file in arguments");
Expand Down

0 comments on commit e28af02

Please sign in to comment.