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)

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 (SDL2, SDL image, SDL mixer, SDL ttf, SDL net);
  5. Download and extract archieve library - libzip (build by you own), required: 1. zlib, 2. bzip (came with GNU), 3. libzip itself, 4. Build libzip using cmake to folder, 5. Run 'make', 'make install' (as administrator);
  6. (Optional) Code editor Visual Studio Code (for better usage) (Recomended to use with plugins on c++ and cmake).

Point 4 with all last builded libraries is located at releases (Development-kit).

Instalation for own use (linux-like)

  1. Check availability of [make] and [cmake];
  2. External SDL libraries (SDL2, SDL image, SDL mixer, SDL ttf, SDL net);
  3. External archieve library - libzip (build by you own), required: libzip;
  4. (Optional) Code editor Visual Studio Code (for better usage).

Used external libraries: