-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b3096f9
Showing
4 changed files
with
925 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode/ | ||
build/ | ||
info.txt | ||
notes.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.5.0) | ||
project(tetris VERSION 0.1.0 LANGUAGES C) | ||
|
||
add_executable(tetris main.c) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Tetris Game | ||
|
||
This is a simple Tetris game implemented in C, designed to be played on Windows. It is built using CMake and consists of a single source file. | ||
|
||
## Prerequisites | ||
|
||
To run this game, you need to have the following installed on your system: | ||
- Windows operating system | ||
- CMake | ||
|
||
## Installation | ||
|
||
1. Clone this repository to your local machine. | ||
2. Open a command prompt and navigate to the project directory. | ||
3. Run the following commands to build the game: | ||
``` | ||
cmake . | ||
cmake --build . | ||
``` | ||
4. Once the build is successful, you can run the game by executing the generated executable file. | ||
## Usage | ||
The game can be played using the following controls: | ||
- Left Arrow: Move the current piece to the left | ||
- Right Arrow: Move the current piece to the right | ||
- Down Arrow: Move the current piece down faster | ||
- Up Arrow: Rotate the current piece | ||
- ```tetris --help```: Display the help menu | ||
## Contributing | ||
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. | ||
## License | ||
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT). |
Oops, something went wrong.