https://github.com/seycileli/checkmate_funnychessgame
Knight vs King Checkmate Challenge
https://github.com/seycileli/checkmate_funnychessgame
board checkmate-funnychessgame chess chess-puzzle friends java king king-checkmate-challenge knight piece position
Last synced: 8 months ago
JSON representation
Knight vs King Checkmate Challenge
- Host: GitHub
- URL: https://github.com/seycileli/checkmate_funnychessgame
- Owner: seycileli
- Created: 2019-10-31T16:31:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T02:53:54.000Z (almost 6 years ago)
- Last Synced: 2025-01-15T10:24:26.298Z (9 months ago)
- Topics: board, checkmate-funnychessgame, chess, chess-puzzle, friends, java, king, king-checkmate-challenge, knight, piece, position
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Checkmate_FunnyChessGame
Knight vs King Checkmate Challenge
--------------------
Helping your friend:
--------------------
One of your friends is playing this funny chess game and he/she needs your help knowing that you're a software engineer. He/she wants you to tell him/her all the possible moves/jumps of the knight. Your friend also wants to know if the king is in check from the static position of the knight.
Now assume that in a funny chess play we have only 2 pieces, knight and the king. The king and knight stay at a static position (but not in the same position) and can not move at all.
----------
The Board:
----------
The chess board has 8 rows and 8 columns. The coordinate of a piece i.e knight, the king can be denoted as a {row number, column number}.
For example, in the first diagram, the coordinate of the black horse is {4,1} and the white horse is {6,5}
-------------
Sample input:
-------------
You will be provided two String, one is the king's coordinate and one for the knight.
[String one:] x, y
[String two:] x, y
WHERE: 8>= x and y >=1
--------------
Sample output:
--------------
The possible moves of the knight: {3,3}, {5,3}, {2,3}, {6,2}
Checkmate possible - Yes or No