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 fun app for all purposes!

Setup Install cargo-mobile2 cargo install --git https://github.com/tauri-apps/cargo-mobile2 To update the libray just run: cargo mobile update Now in

๐Ÿค– 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

zman is a CLI year (time) progress that small, fast, and just one single binary.
zman is a CLI year (time) progress that small, fast, and just one single binary.

zman zman is a CLI year (time) progress that small, fast, and just one single binary. Features Show year progress Show month, and week progress Show r

Just a UNIX's cat copy, but less bloated and in Rust.
Just a UNIX's cat copy, but less bloated and in Rust.

RAT The opposite of UNIX's cat, less bloated, and in Rust. About the project The idea of this CLI is "A CLI program that is basically UNIX's cat comma

A simple CLI I made while practicing rust to easily make QR codes with just one command, all in your terminal.
A simple CLI I made while practicing rust to easily make QR codes with just one command, all in your terminal.

Welcome to rust-qrcode-cli ๐Ÿ‘‹ A CLI I made while practicing rust to easily make QR codes with just one command, all in your terminal. Install git clon

A super simple prompt for Fish shell, just shows git info and Vi mode.
A super simple prompt for Fish shell, just shows git info and Vi mode.

vifi is a portmandeau of 'Vi' and 'Fish', because it's a prompt for Fish shell, primarily focused around showing proper indicators when using Vi key bindings.

Just a collection of tiny Rust projects I've did. None warrant a whole repo rn

Daily Rust I try to write some tiny programs daily to gradually improve my Rust skills! Current Program Descriptions first_prog.rs: My first program a

A visual novel engine written by Rust. Just Ayaka.
A visual novel engine written by Rust. Just Ayaka.

Ayaka Ayaka is currently a project for OSPP 2022. About the name The frontend is Ayaka. The runtime is Ayaka. The script is Ayaka. Just Ayaka. What we

๐ŸŽ Just a simple cross-platform neofetch for all the bronies out there.

โš ๏ธ (WIP) This project is not ready for any serious use right now. A cross-platform command-line interface (CLI) tool written in Rust to display system

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