Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erthium/chess
Chess environment created in SDL2 with C++
https://github.com/erthium/chess
chess cpp sdl2
Last synced: about 1 month ago
JSON representation
Chess environment created in SDL2 with C++
- Host: GitHub
- URL: https://github.com/erthium/chess
- Owner: erthium
- License: gpl-3.0
- Created: 2023-12-08T11:45:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T19:23:29.000Z (11 months ago)
- Last Synced: 2024-06-04T00:00:00.998Z (7 months ago)
- Topics: chess, cpp, sdl2
- Language: C++
- Homepage:
- Size: 1.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chess
An attemp to create a chess environment with C++ and SDL2. The project is still being worked on, check [issues](https://github.com/ErtyumPX/chess/issues) and [milestones](https://github.com/ErtyumPX/chess/milestones) for the process.
## License
This project is licensed under the [GNU GPL-3.0](https://github.com/ErtyumPX/chess/blob/main/LICENSE) license.
## Setup
Project is currently compiled with GNU G++ 13.2.1.
The only third-party dependency is SDL2. Used version of SDL2 in project is 2.28.5, should work as long as is SDL2 and not SDL.
For compiling and linking rules GNU Make 4.4.1 was used. After downloading dependencies, make sure to change the include paths inside the Makefile.
```
# change the paths for '-I'
CC := g++
CFLAGS := -Wall -std=c++11 -I/usr/include/SDL2 # here
TEST_CFLAGS := -Wall -std=c++11 -Iinclude/SDL2 -Isrc/ # and here
LDFLAGS := -lSDL2 -lSDL2_image
...
```After fulfilling dependencies, download or clone the project and use Makefile to easily compile:
```
> make all
> make run
```To run tests and check if everything works:
```
> make test
```Since SDL2 is a cross-platform media library, output should work on Windows, MacOS and Linux.
## Project
For now, looks like this:
----------
![screenshot-2023-12-26_02:37:12](https://github.com/ErtyumPX/chess/assets/49292808/79e8ca6b-f34f-47a5-bbc9-d6ece3a45670)
----------
Details will be written soon...