Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.19 KB

File metadata and controls

41 lines (30 loc) · 1.19 KB

GUI FOR TILINGS

REQUIRES:

pyglet tilescopethree

RUN:

python pyglet_main.py basis

Example: python pyglet_main.py 1234_1324

CONTROLS:

  • S to toggle shading empty cells
  • O to toggle crossing obstructions
  • L to toggle localized obstructions/requirements
  • P to toggle pretty points
  • C to toggle highlighting on obstructions in cell
  • ctrl+click+drag to move obstruction (no restriction on movement)
  • shift+click+drag to move points
  • Ctrl+S to print tiling string
  • Ctrl+R to print tiling repr
  • Left/right to switch strategies, strategy is visible in window title
  • Left click to apply strategy at mouse position (right click for obstruction in cell insertion)
  • Backspace to go back
  • R to go forward (when applicable)
  • Escape to close

macOS Mojave (outdated warning)

There are issues on Mojave with PyGame. Install with these steps (uninstall pygame first if you have it)

  1. brew install sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf
  2. cd python3.7.2/lib/python3.7/site-packages (Note: you can find the site packages directory with python -m site)
  3. git clone https://github.com/pygame/pygame.git
  4. cd pygame
  5. python setup.py -config -auto -sdl2
  6. python setup.py install