-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
94 additions
and
22 deletions.
There are no files selected for viewing
13 changes: 9 additions & 4 deletions
13
src/main/java/croc/education/ws2023spb/knightsmove/Application.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
package croc.education.ws2023spb.knightsmove; | ||
|
||
/** | ||
* Приложение, проверяющее возможность прохождения последовательности клеток на шахматной доске ходом коня. | ||
* Приложение, проверяющее возможность прохождения последовательности клеток на | ||
* шахматной доске ходом коня. | ||
*/ | ||
public final class Application { | ||
|
||
/** | ||
* Основной метод приложения. | ||
* | ||
* @param args | ||
* аргументы | ||
* аргументы | ||
* @throws IllegalMoveException | ||
*/ | ||
public static void main(final String[] args) { | ||
// TODO: реализовать логику исполнения программы. | ||
System.out.print("Логика программы ещё не реализована"); | ||
try { | ||
KnightsMoveCheckerFactory.get().check(args); | ||
} catch (IllegalMoveException e) { | ||
System.out.print(e.getMessage()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/croc/education/ws2023spb/knightsmove/IllegalPositionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package croc.education.ws2023spb.knightsmove; | ||
|
||
public class IllegalPositionException extends Exception { | ||
public IllegalPositionException(String messege){ | ||
super(messege); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters