News for hackers. Stuff that matters.
Re:Twenty years later I wrote a Tetris again by vzaliva on Sunday October 23, 2016 @02:30PM (#12774727)
I've implemented Tetris 5 or 6 times over the period of 20+ years. This is my standard exercise to learn/try a new platform. I wrote one in C for custom smart phone/PDA prototype we were developing in 1994, then I wrote one in assembly for Zaurus PDA, another one little later for Palm Pilot, few more I do not even remember, and the last one 2 years ago to learn some OCaml (text-based and SDL versions) https://github.com/vzaliva/otetris .

This is a great exercise.

Re:Twenty years later I wrote a Tetris again by blockoperation on Monday October 24, 2016 @03:00PM (#12781759)
Tetris is my go-to learning project as well.

I can read all the tutorials in the world, but I don't feel comfortable with a new language/platform/toolkit/etc until I've ported Tetris to it.

I go as far as making every implementation replay-compatible for ease of testing (and also because it's just really satisfying watching half a dozen entirely different implementations of the same game running in frame-perfect harmony).

Right now I'm working on a Haskell port, and as a beginner to FP, it's quite a mind-bending experience trying to implement something so familiar in such an alien language.

Re:Twenty years later I wrote a Tetris again by alfonsodev on Sunday October 23, 2016 @03:16PM (#12774956)
I use Tetris to learn too, here my last implementation in javascript, I've started to learn Nodejs and how to reuse code with browserify, the version worked in the terminal and the browser. I would like to take time to rewrite it again in ES6/7, and then start learning other things like AI. edit: https://github.com/alfonsodev/tetrinode/tree/dev-0.2