Simple puzzle with rotating circles

Ilya Portnov 236a1a1756 Update Readme. 1 year ago
src 3822acf1e5 All equations should be really all now. 1 year ago
.gitignore 4caf3350db Initial commit. 1 year ago
ChangeLog.md 4caf3350db Initial commit. 1 year ago
LICENSE 4caf3350db Initial commit. 1 year ago
README.md 236a1a1756 Update Readme. 1 year ago
Setup.hs 4caf3350db Initial commit. 1 year ago
package.yaml 4caf3350db Initial commit. 1 year ago
stack.yaml 4caf3350db Initial commit. 1 year ago

README.md

circles puzzle

A relatively simple 2D puzzle with rotating circles.

It has three colored intersecting circles:

Illustration

Each circle can be rotated by 60 degrees clockwise or counterclockwise. Segments are moving correspondingly. If you rotate each circle some random number of times, segments will be moved to some random position.

The goal is to return segments into initial positions after that.

Installation

$ sudo apt-get install stack
$ git clone https://github.com/portnov/circles-puzzle.git
$ cd circles-puzzle/
$ stack install

Controls

Keyboard: letters w, a, d to rotate left, top and right circle clockwise; W, A, D to rotate them counterclockwise.

Mouse: point over one of circles (thick border will indicate that circle is selected) and press left mouse button to rotate it counterclockwise, or right mouse button to rotate it clockwise.

Also controls provided by Gloss library to manipulate the viewport are available:

  • Quit

    • esc-key
  • Move Viewport

    • arrow keys
  • Zoom Viewport

    • page up/down-keys
    • control-left-click drag
    • mouse wheel
  • Rotate Viewport

    • home/end-keys
  • Reset Viewport r-key