GithubHelp home page GithubHelp logo

cpp_chess's Introduction

Chess C++

Updated version of "Let's make 16 games in C++: Chess" https://www.youtube.com/watch?v=_4EuZI8Q8cs from FamTrinli

Updates

Original code calls CreateProcess() from <windows.h> but newer compiler versions don't accept parameters char* vs LPWSTR.
I tried many other compiler options to make it work, but after a couple of days I still couldn't find an answer.
Then I decided to create a modern approach. The decision was to make the code to open "stockfish.exe" as a background Process from System::Diagnostics, and this is the final project.

Visual Studio Configuration

To run this project, you need to download SFML https://www.sfml-dev.org/. Currently I have SFML-2.5.1. Place it anywhere, I placed at D:\SFML-2.5.1. To configure just SFML:

Menu Project >
    "Project" Properties >
        Configuration - Debug >
        Platform - Win32 or x64 >
            Configuration Properties >
                C/C++ >
                    General >
                        Additional Include Directories >
                            D:\SFML-2.5.1\include
                    Preprocessor > 
                        Preprocessor Definitions >
                            SFML_STATIC;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
                            or
                            SFML_STATIC;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
                Linker >
                    General >
                        Additional Library Directories >
                            D:\SFML-2.5.1\lib
                    Input >
                        Additional Dependencies >
                            opengl32.lib;freetype.lib;winmm.lib;gdi32.lib;sfml-graphics-s-d.lib;sfml-window-s-d.lib;sfml-system-s-d.lib;%(AdditionalDependencies)

For this project, a few more options are needed:

Menu Project >
    "Project" Properties >
        Configuration Debug >
        Platform Win32 and x64 >
            Configuration Properties >
                Advanced >
                    C++/CLI Properties - Common Language Runtime Support >
                        Common Language Runtime Support /clr
                C/C++ >
                    Command Line >
                        Additional Options > (write in the box)
                            /Zc:twoPhase-

cpp_chess's People

Contributors

brccabral avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.