GithubHelp home page GithubHelp logo

genchessimage's Introduction

GenChessImage

Console EXE to generate a chess board image based on FEN input.

Chess piece image sets from http://ixian.com/chess/jin-piece-sets/.

Dependencies .Net 4.5

Config File Most settings in the config file.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
  <appSettings>
    <!-- Name of the chess font image set used  -->
    <add key="ChessFont" value="alpha-02" />
    <!-- tile size. This sets the size of the chess font image set used 
    which in turn dictates the total size of the board. Board size =  tile size * 8  -->
    <add key="TileSize" value="40" />
    <!-- the directory to same images into  -->
    <add key="ImageDirectory" value="Images" />
    <!-- RGB color setting  -->
    <add key="BlackTileColor" value="209 , 139, 70" />
    <!-- RGB color setting  -->
    <add key="WhiteTileColor" value="255, 207, 161" />
    <!-- RGB color setting  -->
    <add key="BackGroundColor" value="252, 250, 227" />
    <!-- RGB color setting  -->
    <add key="TextColor" value="0, 0, 0" />
    <!-- RGB color setting  -->
    <add key="BorderColor" value="0, 0, 0" />
    <!-- RGB color setting  -->
    <add key="TileBorderColor" value="0, 0, 0" />
    <!-- Do you want a 1px border around each tile?
    <add key="DrawBorderTiles" value="false" />
  </appSettings>
</configuration>

Example Usage Input requres three arguments: fen, filename, and whether to add text border.

Sample Call

string[] args = {"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1", "chessboard", "true"}; GenChessImage.exe args

Sample Board

Sample Board

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.