in Java SwingBy Gilbert Le Blanc | Published Wednesday, 2 April 2014Recently, I came across a game called 2048. The game wascreated by Gabriele Cirulli. It’s an interesting variation on a 4 x 4sliding puzzle.Here’s a screenshot of my Java Swing version of 2048. It will helpyou understand the rules.The 2048 game starts with an empty 4 x 4 grid. Two tiles areplaced on the grid at random location
...[Show More]
in Java Swing
By Gilbert Le Blanc | Published Wednesday, 2 April 2014
Recently, I came across a game called 2048. The game was
created by Gabriele Cirulli. It’s an interesting variation on a 4 x 4
sliding puzzle.
Here’s a screenshot of my Java Swing version of 2048. It will help
you understand the rules.
The 2048 game starts with an empty 4 x 4 grid. Two tiles are
placed on the grid at random locations. The tiles will either have a
2 value or a 4 value. There’s a 90% chance that a new tile will have
the 2 value and a 10% chance that a new tile will have the 4 value.
You use the arrow keys, or the WASD keys if you’re left handed, to
slide the tiles up, left, down, or right. All of the tiles move as far as
they can in that direction.
When two tiles of the same value are next to each other, and you
Recent Posts
Stock Picker Using
Java Swing
Help
Learning
Java Swing File
Browser
Spirograph using
Java Swing
Centering a String
in a Bounding
Rectangle
Qlocktwo with Java
Swing
2048 Game in Java
Swing
John Conway’s
Game of Life in
Java Swing
Dice Game
Recent
Comments
Alex on 2048 Game
in Java Swing
CJ on Traffic Signal
GUI
CJ on Traffic Signal
GUI
christian wall art
decor on Sudoku
Solver Swing GUI
LittleJavaChild on
About Gilbert Le
Blanc
[Show Less]