Skip to content

Python tool to screenshot Tetris boards and generate fumen strings from it

License

Notifications You must be signed in to change notification settings

anthonys01/snip2fumen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snip2fumen

Python tool to screenshot Tetris boards and generate fumen strings from it

yPKOXhMqX4

Description

snip2fumen is a python tool to take screenshots of your Tetris board and generate a fumen code with it (from tetris-fumen)

It was tested with jstris, four-tris and tetr.io with default skins. It should work for tetris games using the standard tetris color schemes + having a visible grid (which means this tool is not compatible with TGM games).

It should work even if you don't take a nicely cropped screenshot, or even if you don't take a full board.

Installation

Developed and tested on python 3.9 (it should work with python 3.6+).

The dependencies are listed in the requirements.txt files :

  • opencv-python
  • numpy
  • pyqt5
  • pyperclip
  • pillow
  • pynput

Use pip to install them :

pip install -r requirements.txt

Usage

Once installation is done, run the snip2fumen module (you need to be in the same folder as this README)

python -m snip2fumen

Then use your mouse to select your game board (like any sniping tool). The resulting fumen link will be printed as a result, and will be set in you clipboard.

Should be working on all operating systems, but was only tested on Windows 10.

See more options :

python -m snip2fumen --help

Additionally, if you can run it, there is a standalone snip2fumen.exe executable in dist/.

About

Python tool to screenshot Tetris boards and generate fumen strings from it

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages