2048 in `tui`, just for fun

Overview

TUI 2048 - Have a relax at anytime - ๐Ÿ˜Ž

2028

2028-gif

^_^

How to run

repo

  1. clone this repo, git clone https://github.com/WanderHuang/game-2048-tui.git
  2. cd game-2048-tui
  3. cargo run
  4. (option) build binary, cargo build --release

Purpose

I have been learning Rust for some time, I should make an app to check if I have accepted those Rust knowledges. So come out this simple game app.

If you love this repo, thank you for one star or leave an issue to contact me. Let's keep learning together~

Furthermore

Rust is a good language, hope me get more experienced on it.

terminal is termion, windows is not supported now!

LICENSE

MIT

You might also like...
A hackable, minimal, fast TUI file explorer, stealing ideas from nnn and fzf.
A hackable, minimal, fast TUI file explorer, stealing ideas from nnn and fzf.

xplr A hackable, minimal, fast TUI file explorer, stealing ideas from nnn and fzf. [Quickstart] [Features] [Plugins] [Documentation] [Upgrade Guide] [

Rust TUI client for steamcmd
Rust TUI client for steamcmd

Steam TUI About Just a simple TUI client for steamcmd. Allows for the graphical launching, updating, and downloading of steam games through a simple t

Another TUI based system monitor, this time in Rust!
Another TUI based system monitor, this time in Rust!

Another TUI based system monitor, this time in Rust!

๐Ÿค– just is a handy way to save and run project-specific commands.

just just is a handy way to save and run project-specific commands. (้žๅฎ˜ๆ–นไธญๆ–‡ๆ–‡ๆกฃ,่ฟ™้‡Œ,ๅฟซ็œ‹่ฟ‡ๆฅ!) Commands, called recipes, are stored in a file called justfile

A user-friendly TUI client for Matrix written in Rust!

Konoha A user-friendly TUI client for Matrix written in Rust! Notice: The client is currently not usable and is only hosted on GitHub for version cont

TUI image viewer
TUI image viewer

Picterm TUI image viewer install $ cargo install picterm or $ git clone https://github.com/ksk001100/picterm $ cd picterm $ cargo install --path . usa

A cli prepared with TUI that facilitates your operations.
A cli prepared with TUI that facilitates your operations.

โš ๏ธ For linux only โš ๏ธ Helper CLI A cli prepared with TUI that facilitates your operations. Click me to learn more about the theme system. If you just w

A tui to test regexes on the rust regex crate

regex-tui Structure src/ โ”œโ”€โ”€ app.rs - holds the states and renders the widgets โ”œโ”€โ”€ event.rs - handles the terminal events (key press, mouse cl

Parse hex colors to tui::style::Color

Color - Tui Parse hex colors to tui rgb colors #c3f111 - Color::Rgb(195,241,17) Note that the indexed colors are NOT HEX #142 - Color::Indexed(142)

Comments
  • random tiles added even when no updates

    random tiles added even when no updates

    When it is not possible for some tiles to combine or move, even then a random tile is added. I think original 2048 ignored such inputs.

    example: initially the grid is

    0 0 0 0
    0 0 0 0
    2 0 0 0
    4 2 0 0
    

    then if user gives down input, there is no possible combination or movement possible, still a random tile is added when instead the move should be ignored.

    A simple fix is to check if the res is same as the original grid here, that is, no updates have happened, and then return a bool from the function which is checked by this before doing a random insert.

    opened by abhikjain360 1
Owner
wander
Leave a mark for life
wander
A template for bootstrapping a Rust TUI application with tui-rs & crossterm

rust-tui-template A template for bootstrapping a Rust TUI application with tui-rs & crossterm. tui-rs The library is based on the principle of immedia

Orhun Parmaksฤฑz 72 Dec 31, 2022
A rust binary that will flip one or more bits of a file (mostly for messing with images for fun).

file-bitflipper A rust binary that will flip one or more bits of a file (mostly for messing with images for fun). Example (bitflipped bentley) Usage $

null 1 Aug 31, 2022
A fun rust terminal program so you can make Christmas trees!

Xmastree 2021 A fun christmas tree where you can add ornaments! Then, you can export the file into either: a rust file a txt file About Taking a break

Junhao 2 Dec 21, 2021
82 fun and easy to use, lightweight, spinners for Rust, with minimal overhead.

Spinners for Rust 82 fun and easy to use, lightweight, spinners for Rust, with minimal overhead, all the way from simple dots, to fun emoji based "spi

Juliette Cordor 2 May 17, 2022
Rust port of https://github.com/hunar4321/life_code with some fun features.

Smarticles A Rust port of Brainxyz's Artificial Life simulator with some fun features. A simple program to simulate primitive Artificial Life using si

Chevy Ray Johnston 15 Dec 24, 2022
collaboration project focusing on rust. Made for fun

Collaboration space for on rust project(s) setup Pull down the repo first then do the following steps cd into lil-devils cargo fetch cargo build cargo

Blake Costa 2 Nov 8, 2022
An operating system written in Rust (for fun and educational purposes)

Prestige Prestige is an operating system written for fun and educational purposes in Rust. It targets the x86-64 architecture and can run on common em

binds 3 Nov 14, 2022
๐Ÿš€ TaskFly - The Fun Cron Alternative

?? TaskFly - The Fun Job Scheduler Daemon Experience a whole new way of scheduling tasks with TaskFly. Representing tasks' urgency with emojis, TaskFl

Zohar Yzgiaev 4 Jul 1, 2023
Simple Programming Language for fun.

Chap Chap is an Easy to learn, dynamic, interpretive, isolated, and keywordless scripting language written in Rust. It is useful when you want your us

Ali Ghahremani 36 Oct 6, 2023
My own image file format created for fun! Install the "hif_opener.exe" to open hif files. clone the repo and compile to make your own hif file

Why am i creating this? I wanted to create my own image format since I was 12 years old using Windows 7, tryna modify GTA San Andreas. That day, when

hiftie 3 Dec 17, 2023