From d9b0f00ebec0c90a70bc823f8d3eb5af1128a605 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 6 Feb 2023 20:11:03 -0800 Subject: committing before pull --- doc/.tetris3.1.swp | Bin 0 -> 12288 bytes doc/tetris3.1 | 35 +++++++++++++++++++++++++++++++++++ tetris.c | 11 +++++++++++ tetris.h | 1 + 4 files changed, 47 insertions(+) create mode 100644 doc/.tetris3.1.swp create mode 100644 doc/tetris3.1 diff --git a/doc/.tetris3.1.swp b/doc/.tetris3.1.swp new file mode 100644 index 0000000..2028b77 Binary files /dev/null and b/doc/.tetris3.1.swp differ diff --git a/doc/tetris3.1 b/doc/tetris3.1 new file mode 100644 index 0000000..493ba4d --- /dev/null +++ b/doc/tetris3.1 @@ -0,0 +1,35 @@ +.TH TETRIS3 1 "23 Feb 06" "Tetris3 version 1.0" +.SH NAME +tetris3 \- small command line tetris program + +.SH SYNOPSIS +\fBtetris3\fP [--version] [--help] + +.SH DESCRIPTION + +.SS Options +\fB--version\fP +\-\- Displays version info, and license information. + +\fB--help\fP +\-\- Displays the usage information for the tetris3 program. + +\fB--size\fP +\-\- Sets the board size - the board is a square so only one number is taken as an input. + +\fB--speed\fP +\-\- Sets the speed of the snake - up to 10. + +\fB--obstacles\fP +\-\- Sets the amount of obstacles that are generated. + +.SH AUTHORS +Developed and maintained by Kai Stevenson and Preston Pan. +See https://www.aberrantflux.xyz/cgit/snake3.git for the newest version +of the software. + +.SH BUGS +Once in a while, you will notice that the snake goes through the food that it is trying to eat. This is not that annoying but it's a bug. + +.SH "SEE ALSO" +vi(1) diff --git a/tetris.c b/tetris.c index 6b3446c..88a99f3 100644 --- a/tetris.c +++ b/tetris.c @@ -1,6 +1,8 @@ #include #include #include +#include +#include #define UNUSED(x) (void)(x) @@ -12,12 +14,21 @@ void interrupt_handler(int sig) { g_int_ctrl_c = 1; } +void parse_args(int argc, char **argv) { + +} +void die(void) { + +} int main (int argc, char **argv) { + parse_args(argc, argv); int width; int height; /* handle SIGINT interrupts */ signal(SIGINT, interrupt_handler); + /* Hide cursor */ + print("\033[?251"); /* Game Loop */ while (1) { } diff --git a/tetris.h b/tetris.h index b321186..3a201fa 100644 --- a/tetris.h +++ b/tetris.h @@ -1,4 +1,5 @@ #ifndef TETRIS_H #define TETRIS_H void interrupt_handler(int sig); +void die(void); #endif -- cgit v1.3.1