Over a million developers have joined DZone.

JavaFX and Java 8 version of the 2048 game

· DevOps Zone

The DevOps zone is brought to you in partnership with Sonatype Nexus. The Nexus suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

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!


The DevOps zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today


Published at DZone with permission of Bruno Borges. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}