A 'Tetris' JavaScript game in only 140 Bytes

Discussion in 'General Undergound Newz' started by GaryOPA, Feb 28, 2012.

By GaryOPA on Feb 28, 2012 at 9:38 AM
  1. 21,864
    1,921
    113
    GaryOPA

    GaryOPA Master Phoenix Admin Staff Member Top-Dog Brass

    Joined:
    Mar 18, 2006
    Media:
    15
    Occupation:
    Design Eng.
    Location:
    Tropical Island
    Home Page:
    Using a JavaScript function shorter than a tweet's length!

    [​IMG]

    An user from a website called 140byt.es managed to implement a JavaScript version of Tetris called 'Binary Tetris' using a function with less than 140 characters.

    Well, this is a surely interesting JavaScript approach. A website, called 140byt.es says it's possible to write a program in no more than a tweet's length.

    [​IMG]

    This is a Tetris variant with only two types of blocks, called "Binary Tetris".There is no rotation, but it the same basic idea.

    Yes, there are a few things to note, like the fact that the 'game' is pretty limited, and some people says it takes a few more bytes in order to call the routines. It also seems they aren't counting the number of libraries required to operate it, but it's a nice implementation that makes you remember the good old programming days.

    And, if you're bored, you can always participate at the 140byt.es website and go for a challenge.

    You can check the game's demo and its source code at the websites below.

    SOURCE CODE: http://jsbin.com/egiqul/49

    NEWS SOURCE: Tetris in 140 bytes (via) i-Programmer

    Our thanks to 'Gauss' for a neat news story!
     

Comments

Discussion in 'General Undergound Newz' started by GaryOPA, Feb 28, 2012.

Share This Page