Hello =)

Recently began to learn Java. For now, I’m only "plodding" at the beginning =), while reading up Ekkel's Java Philosophy. This semester took the topic of the course project: the game "Checkers". I am completely not familiar with the development of visual applications in Java, so I decided to ask you about the best way to implement Checkers. I heard, for example, about the "internal" Swing ... But will I have enough of it for normal implementation? I just want to clearly understand what means I will be given the opportunity to realize a simple and enjoyable game, at least for myself, given that I am a beginner, and there is less and less time left =).

Thank you so much in advance;)

Closed due to the fact that off-topic participants are Regent , LEQADA , Peter Olson , xaja , Vladimir Glinskikh 15 Oct '15 at 10:11 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • " Questionnaires are forbidden on Stack Overflow in Russian . To get an answer, rephrase your question so that it can be given an unambiguously correct answer." - Regent, LEQADA, Peter Olson, xaja, Vladimir Glinskikh
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 6
    Google code ready, you can’t master it yourself - Gorets

2 answers 2

Specifically, I can not advise the literature, because I have not written in Java yet, but I can give a couple of tips. You are already familiar with the classes, judging by your questions, and writing a visual program will be much easier. I do not know what components are in Java, but in Delphi / C # I would do it through 1 component Image and image list. After the move, the image will be updated from list + cell partitions will be added. In my opinion quite well.

The option is more complicated: XNA / OpenGl loaded field textures, tiles and fences. Arranged for them in advance and with animation (by + -2 pixels we move along X, Y). Will be generally gorgeous).

Intellect, unfortunately, never did, but I would do 3 levels of complexity and the higher the less chance of being mistaken. For example, 40%, 20%, 5%, respectively.

PS there was an idea with a group mate to write a sea battle 2 versions, each writing their own intellect and implementing a server that will throw the original data of each version and send the new source data to the other side, respectively). How would someone smarter write. Perhaps you will be interested and also want to write.

    Regarding gui, try gtk +. Java is good friends with it. As for the "brain" of the game, read the discrete mathematics, in particular, the minimax algorithm. Look for its application to games. Checkers are often given as examples.

    • one
      Thank you, Pasha. I hope you will help him at the lecture which thread to implement: D - horcrux