📜 ⬆️ ⬇️

Boat for checkers (part 1)

After reading the post on the Chess Bot Habré , I wanted to make my own, but since I thought that chess would not work right away, I decided to practice on checkers (so that there was more motivation I took the famous Russian Stripes).
Unlike the above mentioned post, where only a few screenshots and video, I will try to tell you more ...

Probably more pictures would not allow censorship.

Description

The goal is a program that instead of us will play (and preferably win) checkers against the computer (“Girls” mode) or the player (“Duel” mode). In principle, you can even run two programs and let them play.
To begin with, let's look at what functional parts we will have (given associations with a real player, in the spoiler - more specifically):

Result


It turned out a program that can play checkers in almost any environment: an online game in a browser, a program like in a photo or something else. Just before the start, she will need to be taught how the figures and the field look. A lot more needs to be added, for example:

Afterword

The program was written with a friend (wait soon for Habré), for 3 hours. Please do not throw shoes, as they wrote after the working day and “just4fun”. Comments, comments, suggestions are welcome ...
Tomorrow I will add a video of the game process.
The program is written in Java (the first thing that came to hand and in principle came up).
Result on github
Here is the game, with everyone's Friday!

')

Source: https://habr.com/ru/post/171277/


All Articles