MIT License

项目介绍

mevdschee/2048.c 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 MIT License 许可证,目前获得 672 个 Star、217 次 Fork。

仓库全名
mevdschee/2048.c
开源许可证
MIT License
Star 数
672
Fork 数
217
未关闭 Issue
1

README 摘要

2048.c ====== Spanish Console version of the game "2048" for GNU/Linux Gameplay You can move the tiles in four directions using the arrow keys: up, down, left, and right. All numbers on the board will slide into that direction until they hit the wall and if they bump into each other then two numbers will be combined into one if they have the same value. Each number will only be combined once per move. Every move a…

完整内容见 GitHub 原始 README 或本页 。

常见问题

2048.c 用什么语言开发?

主要使用 C 编写,采用 MIT License 许可证,目前有 672 个 Star。

2048.c 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 2048.c 的源码?

可以直接克隆仓库:git clone https://github.com/mevdschee/2048.c.git,默认分支为 main;安装与运行步骤见仓库 README。

2048.c 最近还在维护吗?

仓库最近一次更新为 10月7日,当前有 1 个未关闭 Issue;Star 数为 672,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Console version of the game "2048" for GNU/Linux

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1135
价值分
471
活跃状态
活跃

语言占比

C
Makefile
Shell

Release

README

2048.c

Spanish

screenshot

Console version of the game “2048” for GNU/Linux

Gameplay

You can move the tiles in four directions using the arrow keys: up, down, left, and right. All numbers on the board will slide into that direction until they hit the wall and if they bump into each other then two numbers will be combined into one if they have the same value. Each number will only be combined once per move. Every move a new number 2 or 4 appears. If you have a 2048 on the board you have won, but you lose once the board is full and you cannot make a move.

Requirements

  • C compiler

Tested on: GNU/Linux, FreeBSD, OpenBSD

Installation

On Debian (based) systems:

sudo apt install 2048

Or compile from source (recommended):

wget https://raw.githubusercontent.com/mevdschee/2048.c/master/2048.c
gcc -o 2048 2048.c
./2048

Running

The game supports different color schemes. This depends on ANSI support for 88 or 256 colors. If there are not enough colors supported the game will fallback to black and white (still very much playable). For the original color scheme run:

./2048

For the black-to-white color scheme (requires 256 colors):

./2048 blackwhite

For the white-to-black color scheme (requires 256 colors):

./2048 whiteblack

For the blue-to-red color scheme (requires 256 colors):

./2048 bluered

Show the version information

./2048 --version

Show help message (shows all supported command line options):

./2048 --help

Contributing

Contributions are very welcome. Always run the tests before committing using:

$ ./2048 test
All 13 tests executed successfully

Compile with extra warnings using:

gcc -std=c99 -Wextra -o 2048 2048.c

评论

暂无评论