Skip to content

qw/2048-reactive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048-reactive

Note: This project requires javafx, I recommend using java 1.8.

Reactive & Responsive 2048 game made with the MVVM paradigm using Google's ReactiveX framework. The left view is the normal game view, and the right one is a normalized view. Both views subscribe to the same view model, while the view model observes the game model.

This project was used to practice:

  • Responsive programming using ReactiveX
  • Better abstractions for less coupling
  • Applying design patterns such as:
  • Using states for GUI interaction

How To Play

  • Enter the game size and press Enter to start the game.
  • Arrow keys to shift tiles
  • During any time, press R to restart, and ESC to quit.
  • When the game is over (no empty slots and cannot be shifted in any direction), press R or Y to restart, or N to quit.

Thanks To

About

2048 game made in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages