Skip to content

kolyaka32/SDL-net-chess

Repository files navigation

The standard "Chess" game on c++ using SDL2

ru

This repository contains sources for standart chess game, I made based on SDL2 library. Mostly this repository is need for my own study, training and preparing for bigger projects. Also this creating projects unifed "game engine".

Screenshot of game

Installing of game

  1. Download archieve from releases, unzip and run 'Chess.exe'!
  2. You can build project by yourself, watch point 'Instalation for own use'.

Usage

Classical game "chess" for two players, now ported on computer. Rules are simple: your goal to checkmate the opponent's king and save your own. You can move all your figures at game field (8x8), each move and attack by his own way. Also there some additions:

  • Awalable castling for king and rook;
  • Pawn at edge position conevrt to queen (can be more than one);

Game have 3 game variants:

  • Singleplayer (playing with bot (now not work));
  • Local two-person mode (for two people at one machine);
  • Internet two person mode (for two people at two different machines, by LAN); Also you can change start configuration and other usefull things from "settings5.ini" file.

Supported languages

  • English
  • Russian (Русский)
  • German (Deutsch) (WIP)
  • Bellarussian (Беларускі) (WIP)

Screenshot of menu

Instalation for own use (windows)

  1. Install C++ compiler (such as MSYS2);
  2. Install Make;
  3. Install CMake;
  4. Download and extract external SDL libraries: 4.1. SDL3; 4.2. SDL3-image; 4.3. SDL3-mixer; 4.4. SDL3-ttf;
  5. Extra library - libzip (build by your own), required: 5.1. zlib; 5.2. bzip (came with GNU); 5.3. libzip itself; 5.4. Build libzip using cmake to 'build/' folder; 5.5. Run 'make' and 'make install' at command line at builed folder (as administrator);
  6. (Optional) Code editor Visual Studio Code (for better usage) (Recomended to use with plugins on c++ and cmake).

Instalation for own use (unux systems)

  1. Check availability of compilers[g++], [make] and [cmake];
  2. Check availability of [git];
  3. Install all necesery external libraries:
  4. External SDL libraries (SDL3, SDL3-image, SDL3-mixer, SDL3-ttf, SDL3-net);
  5. External archieve library - libzip (build by you own), required: libzip;
  6. (Optional) Code editor Visual Studio Code (for better usage).

Prepaired sources

Sources with all builded libraries can be located at releases (Development-kit).

Used external libraries: