To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example is a LabVIEW version of the number game 2048.
Description
A LabVIEW implementation of the game 2048 (http://en.wikipedia.org/wiki/2048_(video_game)). Use the left, right, up, and down arrows to slide number tiles along a grid. A new tile appears each time you slide. Tiles containing the same number add together to make larger values. Create a tile with the value 2048 to win.
Mac keyboards produce different keycodes for arrows, so, not working in mac.
Requirements
Steps to Implement or Execute Code
Additional Information or References
Front Panel of 2048.vi
VI Block Diagram of 2048.vi
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.