Skip to content

jtkelm2/Hexlide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlide

Play it in your browser here!

This is an implementation of a hexagonal variant of the 15-tile sliding puzzle in Haxeflixel. Project is considered complete in its current stage.

Use either the mouse controls to move tiles around, or your keyboard (up, down, left, right). Keyboard may feel strange at first, but you'll get used to it better than the mouse over time. Puzzle can be reset/shuffled from the HUD or from backspace/spacebar, respectively. Press CTRL to toggle faster-moving tiles.

Rest assured that for all level sizes, the shuffling procedure yields all and exactly all solvable puzzles, with uniform probability distribution.

This repo may not be the best to learn from, in terms of code practice. I cobbled it together in a couple days with some over-engineered components from previous projects, and didn't bother to do a final cleaning. Nonetheless, the project should be bug-free.

Font used is HaxeFlixel default, together with Bebas Neue.

About

Hexagonal analogue of the 15-tile sliding puzzle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages