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

Download the blueprint that can take a company of any maturity level all the way up to enterprise-scale continuous delivery using a combination of Automic Release Automation, Automic’s 20+ years of business automation experience, and the proven tools and practices the company is already leveraging.

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 

Download the ‘Practical Blueprint to Continuous Delivery’ to learn how Automic Release Automation can help you begin or continue your company’s digital transformation.

Topics:

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

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}