GithubHelp home page GithubHelp logo

tetris-placer's Introduction

tetris-placer

테트리스 빌드를 연구할 수 있도록 자유롭게 테트로미노들을 배치할 수 있는 툴입니다.

How to run?

우선 이 프로젝트의 폴더를 다운로드 받아주세요.

이 프로젝트는 pygame에 의존성이 있습니다. 다음 명령어를 사용해 설치할 수 있습니다.

pip install pygame

이후 main.py를 실행하면 됩니다.

cd tetris-placer
python src/main.py

아래와 같이 --col 옵션을 사용해 보드의 컬럼 수를 조정할 수도 있습니다.

python src/main.py --col=20

아래와 같이 --mix 를 사용하면 가방을 섞을 수 있습니다.

python src/main.py --mix

How to use?

  • Mouse Left Click (And Drag): Place 1x1 block
  • Mouse Right Click (And Drag): Remove 1x1 block
  • Drag and Drop: Place tetrimino
  • C: Rotate clockwise
  • X: Rotate counterclockwise
  • A: Rotate 180 degrees
  • Ctrl + Z: Undo
  • Ctrl + Y: Redo
  • ESC: Restart
  • Q: Quit

Screenshots

프로그램 실행 화면

tetris-placer's People

Contributors

rhseung avatar

Watchers

 avatar

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.