In Progress

Java Chess: Find the Checkmate in one

The project is to create 'states' in the chessboard where checkmate is possible in only one move (the next move).

Take a look at [url removed, login to view] for such examples.

The aim is to find an algorithm that produces such states in reasonable time, maybe through a genetic algorithm or pattern matching or efficient trial&error approach.

What I expect is a software that creates various cases that will be used in a multiple choice game of the type: Which of the following moves leads to a checkmate in one? for teaching purposes. To succeed this I need a software where:

The input of the program is an integer 'n' that indicates "how many different states" to produce.

The implemented algorithm is supposed to create 'n'-sized "one-move checkmate states". I expect that the output will NOT only create simple variations of a specific case of checkmate. I need variety in results (and not the same pattern again and again), so chessboard initialization state should be random enough to create various checkmate in one cases (eg by moving the queen or the bishop or the pawn etc). Thus, I need a reasonable number of different patterns (for this project at least 20 different patterns) that lead to checkmate. I highlight that the algorithm should be scalable to support other patterns in the future, so I need a short tutorial how to attach a new pattern in the future.

The output of the program will be a ('n'-sized) set/list of objects, where each object will have the following attributes:

a) a data structure (eg an array [8][8]) that represents the current chessboard state (GUI is not required),

b) a variable that indicates who's turn is it (eg Black Plays)

c) a list of possibles moves that lead to a checkmate (in one move)

d) a list of possible moves that lead to a stalemate (in one move)

e) a list of possible moves that place the king in check, but it is not a checkmate (in one move)

Just to know, this is only a part of the real project, thus a number of similar freelancer job posts will follow in the next weeks.

*Also, I would be happy to hear any new ideas for other possible multiple-choice chess-related games (or other popular (strategy/mind) board games) that can be answered in less than 30 seconds. In case some of your ideas are really interesting, I will post a new project ASAP.

Skills: Algorithm, Java, Pattern Matching

See more: java chess checkmate, checkmate algorithm, checkmate board gui java, software find checkmate, java game checkmate, chess checkmate algorithm, checkmate java games, algorithm checkmate, check chess java, program board find checkmate move, checkmate java game, chess check checkmate, checkmate games java, java find checkmate, genetic algorithm pattern matching java, checkmate algorithm java, www support freelancer, www freelancer eg, www freelancer com find freelancer, www freelancer com eg, www find freelancer com, where to find java, where to find a job for freelancer, where to find a job, where to find a freelancer

About the Employer:
( 6 reviews ) Oraiokastro, Greece

Project ID: #4199975

Awarded to:


I have been programming for over 10 years and during my computer science degree I developed, among others, a full chess engine in Java. I believe I can get this done. We can discuss implementation details as PM. I guar More

$200 USD in 10 days
(10 Reviews)

10 freelancers are bidding on average $165 for this job


Hello, I am expert and dedicated in JAVA Development.I am very much interested for your project. I can complete your project quickly and efficiently in time. Details will be discussed in the message.

$100 USD in 3 days
(168 Reviews)

Hello, Please view PMB. Ashwin

$250 USD in 5 days
(39 Reviews)

consider it done.. Thanks

$180 USD in 5 days
(65 Reviews)

Hi, I can make use of GA for the simulation of Darwinian evolution to build program. Pls Check PM

$250 USD in 15 days
(5 Reviews)

I am very good at java programming, please let me do it.

$125 USD in 5 days
(8 Reviews)

Wow this looks like a fun project! I am an avid chess player, and an expert in Java. I would love to do this for you.

$150 USD in 5 days
(1 Review)

Let expert do it for you. Please have a look at the private message box.

$250 USD in 7 days
(3 Reviews)

I have over 10 years of experience in Java and have good analytical skills and I will be able to provide a thorough solution which allows for easy extension of the program to more user-input patterns.

$140 USD in 5 days
(1 Review)

I am a Master student in Artificial Intelligence and my field of thesis is in Genetic like algorithms. (Memetic Algorithms and hyper heuristics) I assure you I will do this project very professionally on time with f More

$150 USD in 15 days
(0 Reviews)

Let me help you. Please check your PMB for more details.

$100 USD in 10 days
(0 Reviews)