Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question