Coder Social home page Coder Social logo

chess-hamilton's Introduction

chess-hamilton

Uruchomienie

Wymagania:

Instalacja zależności i kompilacja

yarn install
yarn build

Uruchomienie

$ node ./index.js

Aplikacja wyszukująca Cykl Hamiltona

  Cykl jest wyszukiwany na szachownicy ruchem skoczka szachowego.

Opcje

  -n, --boardSize bigint   Szerokość szachownicy
  -s, --start string       Punkt startowy w formacie a,b np. 1,3
  -f, --first              Zatrzymaj na pierwszym znalezisku
  -h, --help               Wyświetla tę pomoc

Przykład użycia

  node index.js --boardSize=6 --start=0,0

  node index.js -n 6 -s "0,0" -f

Stats

Command i9-9900K 32GB HDD WSL2 i5-7200U 20GB SSD
yarn start -n 6 -s 0,0 Przekroczono limit czasu 10800000ms (w sumie 7091 Cykli Hamiltona, 6831 cykl po ok. 6480s) Przekroczono limit czasu 10800000ms (w sumie 6831 Cykli Hamiltona po ok. 9500s)
yarn start -n 6 -s 0,0 -f ~ 4,3076s ~ 6,3501s

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.