Skip to content

Instantly share code, notes, and snippets.

View slg123's full-sized avatar

Scott Gillespie slg123

  • NetIQ
  • Houston, TX USA
View GitHub Profile
void walk_board(int a[N][N]) {
knight_move moves[] = { 1,2, 2,1, 1,-2, 2,-1, -1,2, -2,1, -1,-2, -2,-1 };
int x = 1;
int y = 1;
int m = 1;
while (m <= 64) {
for (int i=0; i<sizeof(moves)/sizeof(moves[0]); i++) {
@slg123
slg123 / knights-tour.html
Created March 12, 2016 01:52 — forked from SoundLogic/knights-tour.html
javascript based solution for the Knight's Tour puzzle (http://en.wikipedia.org/wiki/Knight%27s_tour)
<html>
<head>
<style>
a {
color:#000;
display:block;
font-size:60px;
height:80px;
position:relative;
text-decoration:none;