2D checkers, extremely simple version.
Checkers is a board game for two players where they take turns moving their checkers around a square board and attempting to capture the opponent's checkers. players win by forcing their opponent into a position where they have no more available moves or lose all of their checkers.
Playing Field
: Checkers are played on a square 8x8 field, the main game is played on dark squares.Pieces
: Each player has 12 checkers of one color (usually white and black).Initial Arrangement
: Checkers are placed on the first three rows on each side, occupying only dark cells.Game Progress
:- Players take turns.
- Checkers can only move forward one square diagonally.
Eating Checkers
:- If the opponent's checker is next to it and there is a free cell diagonally behind it, the player can "eat" the opponent's checker by jumping over it.
- If several eats are possible in one move, the player must perform them all.
King
:- If a player's checker reaches the opponent's last row, it becomes a "King".
- A King can move both forward and backward, and also jump over the opponent's checkers in any direction.
Win
: The game ends when one of the players cannot make a move (all his checkers are eaten or blocked).Draw
: If the game is at an impasse and the players cannot make a single move, a draw is declared.
- Go 1.22.5
- ebiten 2.7.8
- Clone the remote repository and go to it:
git clone https://github.com/linkoffee/checkers-2d.git
cd checkers-2d
- Install all dependencies in the main directory:
go mod tidy
- Build the
.exe
file for Windows or file without or file without extension for Linux/macOS:
go build
As a result of executing this command we get an executable file, it will look like this on Windows:
checkers.go.exe
Or like this on Linux/macOS:
checkers
- Run it on Windows:
start checkers.go.exe
Or Linux/macOS:
./checkers
After that the game file will start, you can rename it as you want, it will not affect its operation.
Tip
At the bottom of the screen you can turn off all sounds or music - if suddenly you get tired of them
Note
The cell on which the selected checker is located, is highlighted in Blue #0000ff
, the available or possible moves of the selected checker are highlighted in Green #00ff00
, and the unavailable or impossible moves of the selected checker are highlighted in Red #ff0000
Author: Mikhail Kopochinskiy