Skip to content

doronlh/knight-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knight Animation

A library for animating the movement of a knight on a chessboard. Outputs a GIF animation of the knight's movement and presents it in a browser.

Installation

$ pip install git+ssh://[email protected]/doronlh/[email protected]

Usage

The animate_knight() function takes a sequence of (x, y) coordinates of the chessboard, where top-left is (0, 0)

from knight_animation import animate_knight
moves = [(0,1), (1,3), (3, 4), (5, 3), (4, 1)]
animate_knight(moves)

will result in the following animated GIF being opened in a browser

animated knight

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages