CodingTrain / CodingTrain/Suggestion-Box

The Trapped Knight, Numberphile Video

Open
#1,188 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Numberphile just posted a video explaining the trapped knight. An infinitely large chess board is numbered in a counter clockwise fashion so you end up with something like this...

5 4 3 ....
6 1 2 11
7 8 9 10

The knight starts on 1 and moves to the square of the smallest value. This continues until the knight is no longer able to move. A sequence is formed from this,

1, 10, 3, 6, 9, 4, 7, 2, 5, 8....

A p5.js visualization of the path would be neat to see. They show the path in the video. Other configurations of chessboards would be interesting to see as well.

https://www.youtube.com/watch?v=RGQe8waGJ4w

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.