Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JavaFX and Java 8 version of the 2048 game

DZone's Guide to

JavaFX and Java 8 version of the 2048 game

· DevOps Zone ·
Free Resource

Learn more about how CareerBuilder was able to resolve customer issues 5x faster by using Scalyr, the fastest log management tool on the market. 

I've been "busy" this weekend doing several things. But nothing more important than playing the addictive game 2048 (web javascript version) that Gabriele Cirulli created and published the source code on GitHub in his repository. After  several hours  few minutes playing with it on my phone, I decided to write a JavaFX version called 2048FXso you can learn how to code a game like this and also several new features of Java SE 8 and JavaFX!

Now why a JavaFX version? Well, why not? I will give you a few reasons for you to look into the source code of 2048FX:

  • opportunity to learn Java SE 8
  • learn Lambda expressions
  • learn Stream API
  • learn JavaFX 8
  • learn JavaFX CSS basics
  • learn JavaFX animations
There you go! A simple project that will teach you all that :-)  Have fun!
PS: a few bugs to solve and features to implement, but feel free to  pull request!

Source 

Find out more about how Scalyr built a proprietary database that does not use text indexing for their log management tool.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}