Giter VIP home page Giter VIP logo

ctwc's Introduction

ctwc

This repo holds all coding projects related to the CTWC (Classic Tetris World Championships). To start, I've uploaded the "CTWC Video Analyzer" project.

Resources

Here is the YouTube link to all CTWC videos:
https://www.youtube.com/channel/UC-8BAEcWSEs4-KQp1ULVnaQ/videos

Here is the Twitch link to CTWC's stream:
https://www.twitch.tv/classictetris/videos/all

Analyzer

To run the CTWC Video Analyzer:

C:\code\ctwc>python -m analyzer.runner

Tasks

  • Parse the score from a frame.
  • Parse the next piece that's about to be dropped.
  • Parse if a line clear is a single/double/triple/Tetris.

Extra Notes

ROI = image[y1:y2, x1:x2]

In Part01, the first game starts at 2:12 (132,000 ms)

ctwc's People

Contributors

r002 avatar

Stargazers

 avatar  avatar  avatar

ctwc's Issues

Perform OCR to read Score, Level, Lines Cleared.

Perform OCR to read the following:

  • Score
  • Line
  • Level

Even if the "No-Code Revolution" is upon us and amazing tools now exist for laypeople everywhere to be more productive than ever before, some tasks are always simply going to need more specific elbow grease and technical know-how.

Low-level extraction of Tetris game data scraped from recorded YouTube videos is one such challenge. ๐Ÿ™‚

If you're looking for a task to get your hands dirty with Python and OpenCV, this is the job for you!

Collect Tetris Game Stats

Stats to Collect:

  1. Number of single/double/triple/Tetris clears
  2. Transition score
  3. Is the player a press-down player? (Yes/No)
  4. Number of times a J dependency was created and J was not the next piece
  5. Number of times a L dependency was created and L was not the next piece
  6. Number of times an I dependency was created and I was not the next piece
  7. Number of times a last-second micro-adjustment was made to accommodate the next piece
  8. Number of gaps formed in stack
  9. How many times the well was capped
  10. Average duration (piece-turns)that a well is left capped
  11. Number of overhangs created
  12. Number of tucks & spins (and at what level)
  13. Average stack height (broken down by individual columns)
  14. Number of "wasted" I pieces (need to think about this one more...)
  15. Average number of skims before Tetris'ing or capping the well?
  16. Number of times (and maybe even broken down by piece), "stack optionality" was needlessly reduced. (Need to take into account the next piece too.)
  17. Stack health-- a single number (possible?) that indicates the stack integrity & accommodability
  18. Piece distribution.
  19. Tetris rate (of lines cleared, how many were Tetrises?)
  20. Burned lines (lines cleared no Tetrises)
  21. Drought Counter-- piece durations without an I-piece.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.