All Projects → arstropica → KnightsTour

arstropica / KnightsTour

Licence: GPL-3.0 license
PHP study of the knight's tour problem

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to KnightsTour

data sciences campaign
【数据科学家系列课程】
Stars: ✭ 91 (+810%)
Mutual labels:  algorithm-challenges
DailyCodingProblem
Problems with my solutions of Daily Coding Problem website
Stars: ✭ 41 (+310%)
Mutual labels:  algorithm-challenges
Codewars
CodeWars Solutions (Please leave a start. Thank you)
Stars: ✭ 156 (+1460%)
Mutual labels:  algorithm-challenges
Hacker-Earth
This is my HackerEarth Handle
Stars: ✭ 45 (+350%)
Mutual labels:  algorithm-challenges
codewars python solutions
My CodeWars solutions in Python.
Stars: ✭ 111 (+1010%)
Mutual labels:  algorithm-challenges
challenges
My solutions for random coding challenges 💪
Stars: ✭ 44 (+340%)
Mutual labels:  algorithm-challenges
datastructures-algorithms
List of Programs related to data structures and algorithms
Stars: ✭ 68 (+580%)
Mutual labels:  algorithm-challenges
AlgoDaily
just for fun
Stars: ✭ 118 (+1080%)
Mutual labels:  algorithm-challenges
cpalgorithms
Algorithms and Techniques for competitive programming
Stars: ✭ 16 (+60%)
Mutual labels:  algorithm-challenges
FacebookHackerCup-2019
🏃 Python Solutions of All 22 Problems in FHC 2019
Stars: ✭ 15 (+50%)
Mutual labels:  algorithm-challenges
Algorithm
📝 Daily accumulate of algorithm.
Stars: ✭ 74 (+640%)
Mutual labels:  algorithm-challenges
Weekly Events
Slides and other materials for club meetings
Stars: ✭ 17 (+70%)
Mutual labels:  algorithm-challenges
Data-Structures-and-Algorithms--A-Comprehensive-Guide
Data Structures & Algorithms - A Comprehensive Guide
Stars: ✭ 15 (+50%)
Mutual labels:  algorithm-challenges
Algorithm-in-JavaScript
Implementing all-time classic algorithmic problems in JS
Stars: ✭ 20 (+100%)
Mutual labels:  algorithm-challenges
codility
My solutions to exercises and tests at http://codility.com.
Stars: ✭ 66 (+560%)
Mutual labels:  algorithm-challenges
Algorithmic-Problem-Solving
Solutions of algorithmic type of programming problems from sites like LeetCode.com, HackerRank.com, LeetCode.com, Codility.com, CodeForces.com, etc. using Java.
Stars: ✭ 20 (+100%)
Mutual labels:  algorithm-challenges
LearnCPP
Learn Cpp from Beginner to Advanced ✅ Practice 🎯 Code 💻 Repeat 🔁 One step solution for c++ beginners and cp enthusiasts.
Stars: ✭ 359 (+3490%)
Mutual labels:  algorithm-challenges
geeks-for-geeks-solutions
✅ My own Amazon, Microsoft and Google SDE Coding challenge Solutions (offered by GeeksForGeeks).
Stars: ✭ 246 (+2360%)
Mutual labels:  algorithm-challenges
Cubes
Implementation of interesting algorithms in C++
Stars: ✭ 23 (+130%)
Mutual labels:  algorithm-challenges
Algorithms
Data Structures & Algorithms. Includes solutions for Cracking the Coding Interview 6th Edition
Stars: ✭ 89 (+790%)
Mutual labels:  algorithm-challenges

KnightsTour

Simple approach to solving the knight's tour problem based on Warnsdorff’s algorithm for minimum accessibility.

Installation

  • Clone into web root parent directory.
  • Point web document root to ./public folder.
  • Run composer dump-autoload in project root.
  • In ./dev, run npm install, then bower install && grunt to finish loading dependencies and build assets.

To Run

From Console

x: starting x coordinate (i.e. a or 1). Defaults to random.

y: starting y coordinate (i.e. 1). Defaults to random.

size: board size (squared). Defaults to 8

output: output results to console. Defaults to 1

php -f index.php x y size output

From Browser

  • map ./public folder to web root.
  • Go to root url in your browser.
  • Submit coordinates and size values, or leave blank for defaults.

Benchmark

Benchmark Results

To Do

  • Implement a prediction method for identifying closed tours
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].