Some mini games written in C language have the most functions with the least code and are extremely short and playable . Don’t you pay attention to such a fun project?
14 rows of snakes, 22 rows of Tetris, 22 rows of 2048, 24 rows of minesweeping...
Instructions for use:
.c file, no third-party library is used , copy and paste it-std=c99.c , and some codes will report errors in .cppUsing Clang-format format, the code should be very standardized
You can really learn a lot of knowledge, here you can learn a lot of operations that you can't see in normal times~
It is very suitable for practicing as a small project for getting started, and then I will do animation to explain these codes...
Currently, only relevant videos are published in bilibili
bilibili ID: You are already a big shot, chat with the newbies (portal)
If you want to communicate, please join the author's QQ communication group: 957964924
Currently only videos are published in bilibili
| Video content | Folder name | Video link |
|---|---|---|
| Tetris | Tetris | BV13f4y1r7zn |
| Greedy snake | GluttonousSnake | av372394997 |
| Gozi Chess | Five-in-a-row | av969124292 |
| Minesweeping | Minesweeper | av87216317 |
| 2048 | 2048 | av89592082 |
| Window Game | WindowGame | av90604701 |
| Walking in the maze | Maze | av370410413 |
| Tetris_old | Tetris | av85378627 |
| Snake _old | GluttonousSnake | av85378627 |
This repository uses MIT open source protocol code mainly for communication and learning use. It can be used for secondary creation or commercial use. Just indicate the original author. It is best to tell me...
There are many versions of each game, and it is sorted out in a mess, so let's just make do with it... (It's still being added and sorted out)
tiny (very small): a version that meets certain specifications, implements functions with minimal code
chaos : only satisfy 80 characters per line, implementing the function with the least characters
color : Add some color to the console, making it more playable
old : Almost outdated versions will be marked with old
I don't want to maintain this anymore, the timeline is too messy... I plan to redesign
| date | content |
|---|---|
| 2021.1.15 | Maze (compressed 21 lines) |
| 2020.12.13 | Maze (tiny 25 lines) |
| 2020.11.15 | Snake (Updated screen) |
| 2020.10.25 | Greedy snake (std line 52) |
| 2020.10.5 | Reorganize Goji series |
| 2020.10.3 | Reorganize the minesweeping series & 2048 series |
| 2020.10.2 | Remove unnecessary folders, reclassify, reorganize Tetris series |
| 2020.10.1 | Greedy snake (color 17 lines), reorganize Greedy snake series |
| 2020.9.20 | Tetris (chaos 10 lines) |
| 2020.9.19 | Tetris (color 26 lines) and 2048 (color 24 lines) |
| 2020.9.13 | Tetris (tiny 24 lines) |
| 2020.9.4 | Gozi AIv1.1 (interface optimization) |
| 2020.8.10 | Goko AIv1 (30 lines) |
| 2020.7.24 | Gozi Chess (19 lines) |
| 2020.7.17 | 2048 (lines 22) |
| 2020.7.4 | Optimize Tetris (tiny 30 lines) and minesweeping (keyboard 25 lines) |
| 2020.7.4 | Snake (tiny 14 lines), mine sweeping (Linux 31 lines) |
| 2020.6.26 | Minesweeping (keyboard 25 lines) |
| 2020.6.19 | Snake (chaos 5 lines) |
| 2020.6.13 | Tetris (tiny 30 lines) (chaos 11 lines) |
| 2020.6.13 | Greedy snake (tiny line 15) (chaos line 6) (sneaky update ~) |
| 2020.4.30 | Window game (source code) |
| 2020.4.24 | Walking the maze (26 lines) |
| 2020.3.18 | Generate all the previous codes into the .exe executable program and summarize them in the exe folder |
| 2020.3.3 | Window Game (.exe) |
| 2020.2.21 | Snake (screen version) |
| 2020.2.17 | 2048 (lines 28) |
| 2020.2.15 | Minesweeping (236 lines) |
| 2020.2.6 | Minesweeping (29 lines) |
| 2020.2.3 | Created a new folder Older version |
| 2020.1.29 | Tetris (2 versions), and an old version of 38 lines |
| 2020.1.28 | Snake (3 versions) |
| 2019.12.27 | Tetris (48 lines) |
| 2019.12.15 | Snake gluttonous (25 lines) |