The Greenfoot Network:  Greenfoot.org    The Greenroom

Password (Forgotten it?)
    2048
    last edited Aug 09 2014 by Michael Kadri

    Created by Michael Kadri. Other contributors:

    Short description:

    A popular number puzzle game created in March 2014 by 19-year-old Italian web developer Gabriele Cirulli, in which the objective is to slide numbered tiles on a grid to combine them and create a tile with the number 2048.

    Full description:

    The game is played on a 4×4 grid, with numbered tiles that slide smoothly when a player moves them using the four arrow keys. If two tiles of the same number collide while moving, they will merge into a tile with the total value of the sum of two tiles that collided. When a 2048 tile is created, the player wins.

    Level: (Intermediate/ Advanced)

    Teaches: (Two dimensional arrays, nested loops)

    This can be an interesting assignment perhaps after the AP exam. I started working on this assignment before my comment to Kevin Rowan about his impressive collection of assignments. Please feel free to comment, suggest and modify.

    Available when logged in (join via the front page, for free):
    • View 3 comments on this resource.
    • View resource history, links to related resources.
    • Leave feedback for the author(s), or help by editing the resource.

    Files:
    doc game_2048_V2.zip
    Working scenario (downloads: 162)

    doc game_2048.pdf
    Assignment sheet (downloads: 184)

    doc game_2048.docx
    Assignment sheet (downloads: 140)

    Download All
    Total downloads for all files (including previous versions): 972

    Sets:

    Created by Supported by
    Copyright King's College London, 2017. Contact us.