M
M
Maxim Bilan2017-05-24 18:01:37
Java
Maxim Bilan, 2017-05-24 18:01:37

Chess in Java. How can streams be used?

I am finishing my semester work on programming and now I realized that it is necessary to use flows in a reasonable way. There are two ideas:
- make a chess clock using streams (but you will have to add support for the pgn format)
- make a network game, at least at the local level, on neighboring computers, or on one (for a test, just enter the same ip for the client and server )
I would like to hear the opinion of more experienced programmers, how can I "connect" the implementation of threads to my project? Write a separate class from which some object will be created that will receive and send packets, in the case of a network game?
Ps can't attach link from gitlab to show code if needed.
Pps chess with GUI :)
I'll attach a project diagram, maybe it can tell something about the structure of my program.
71075f3bac9a47c08564d1d796173d34.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2017-05-24
@xmoonlight

Computer adversary (AI/AI): recursively check the branches of the "tree" to determine the effectiveness of the next move: each iteration is a separate thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question