Giter Club home page Giter Club logo

knighttour's Introduction

README

History

  • 3rd: C# version for console testing
  • 2nd: C# version for Silverlight
  • 1st version: C++ for DOS console

Old notes from DOS version

  • Use Borland C++ Compiler Only
  • One of the interesting puzzlers for chess buffs is the Knight's Tour problem, originally proposed by the mathematician Euler. The question is: Can the chess piece called the knight move around an empty chessboard and touch each of the 64 squares once and only once?

  • An array 9x9 will be created to simulate the chessboard, subscript 0 will be reserved for further development. Put a 1 in the first square you move to, a 2 in the second square, a 3 in the third...

  • Each potential move will be tested to make sure it doesn't land off the board and doesn't revisit the old move.

  • This program will use accessibility heuristic. Accessibility of a square will be equal precisely to the number of squares from which that square may be reached. At any time, the knight should move to the square with the lowest accessibility.

  • When encountering a tie in accessibility between two or more squares, decides what square to choose by looking ahead to those squares reachable from the "tied" squares. The program should move to the square for which the next move would arrive at a square with the lowest accessibility number.

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.