GithubHelp home page GithubHelp logo

tc-chess-challenge's Introduction

Problem

The problem is to find all unique configurations of a set of normal chess pieces on a chess board with dimensions M×N where none of the pieces is in a position to take any of the others.

Run

mvn package
java -jar target/chess-solver-1.0-SNAPSHOT.jar -M 8 -N 8 -queens 8 --solver bruteforce --debug
java -jar target/chess-solver-1.0-SNAPSHOT.jar -M 7 -N 7 -kings 2 -queens 2 -bishops 2 -knights 1 --solver threading --debug

Usage

-M COLUMNS                : Number of columns
-N ROWS                   : Number of rows
-kings NUMBER             : Number of kings
-queens NUMBER            : Number of queens
-knights NUMBER           : Number of knights
-bishops NUMBER           : Number of bishops
-rooks NUMBER             : Number of rooks
-s (--solver) NAME        : Choose what solver to use, avaialbe: bruteforce, caching, threading or all (default: threading)
-d (--debug)              : Print debug information (default: true)
-p (--print)              : Print solved boards to screen (default: true)
-ps (--pool-size) SIZE    : Pool size for caching solver (default: 500)
-h (-help)                : Print help information (default: true)

tc-chess-challenge's People

Contributors

m4yers avatar

Watchers

 avatar  avatar  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.