/hanoi

Primary LanguageJavaScript

Tower-of-Hanoi made with Ebitengine

Tower-of-Hanoi game made with Ebitengine.

How to play with Tower-of-Hanoi

How to start the game

Local

$ go run main.go

Web

https://hamao0820.github.io/hanoi

Rules

  • You can move only one disk at a time.
  • You can move a disk only if it is the uppermost disk on a tower.
  • You can move a disk only to another tower.
  • You cannot place a larger disk on top of a smaller disk.
  • You win the game by moving all disks from the first tower to the third tower.

How to play

  • Click a tower to select it.
  • Click another tower to move the selected disk to it.
  • Click the selected tower again to unselect it.