Project

rb2048

0.0
No release in over a year
2048 command line game build by ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 1.4.4
 Project Readme

Rb2048

Ruby 2048 Game

Install

gem install rb2048

Help

Usage: rb2048 [options]
        --version                    verison
        --size SIZE                  Size of board: 4-10
        --level LEVEL                Hard Level 2-5

Game Screen


           -- Ruby 2048 --

 -------------------------------------
 |    16  |    16  |     2  |    16  |
 -------------------------------------
 |     0  |     0  |     0  |     0  |
 -------------------------------------
 |     0  |     0  |     0  |     2  |
 -------------------------------------
 |     0  |     0  |     0  |     0  |
 -------------------------------------

 Score: 16              You:UP



 Control: W(↑) A(←) S(↓) D(→) Q(quit) R(Restart)

Game Model Lightspot

Not just a main thread to create TUI Game.

This is a experiment for just testing Ruby3 Thread & Queue.

I build this game that UserI/O, Data Computing, TUI Render use 3 different threads & message channel to work together.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Mark24Code/rb2048.

License

The gem is available as open source under the terms of the MIT License.