# Tetris Clone in Processing

**URL:** <https://discourse.processing.org/t/tetris-clone-in-processing/9363>\
**Category:** Gallery\
**Created:** [March 17, 2019, 1:26am UTC](https://discourse.processing.org/t/tetris-clone-in-processing/9363 "2019-03-17T01:26:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naeloob](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@Naeloob](https://discourse.processing.org/u/Naeloob)\
**Post date:** [March 17, 2019, 1:26am UTC](https://discourse.processing.org/t/tetris-clone-in-processing/9363/1 "2019-03-17T01:26:31Z")

</div>

Pretty new to Github and these forums but here’s my attempt to do Tetris alone:

> **[OnionBadger/Processing](https://github.com/OnionBadger/Processing/tree/2019/Tetris)**
>
> Contribute to OnionBadger/Processing development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 17, 2019, 6:52pm UTC](https://discourse.processing.org/t/tetris-clone-in-processing/9363/2 "2019-03-17T18:52:08Z")

</div>

You are close, but it is not a valid sketch in the form:

/Tetris/Sirtet.pde

The folder and the main sketch tab pde file must have the same name, either:

/Tetris/Tetris.pde  
/Sirtet/Sirtet.pde

Try downloading it yourself and opening it in Processing PDE to see.

You have also put your sketch into the 2019 branch – not your master branch. That means anyone going to your repo and clicking download will not find they sketch – they will only get the Readme file, which is the only thing in master.

Use git merge (or your desktop tool of choice, I like SourceTree) to merge branch 2019 into branch master.

Thanks for sharing the game!

One suggestion – your pieces freeze the instant that they touch a surface. If you play another Tetris implementation you will often find that there is a short window for sliding left-right, which lets you fit pieces into spots you couldn’t ordinarily reach. So, a piece freezes not when it is first directly above another piece, but when it tries to move into a cell occupied by another piece.
