# Sudoku This is a terminal-based Sudoku game. It was written in C using vim. ## How to Compile You will need gcc to compile the code. If you Do Not have it installed you can do it like this: *Linux (Ubuntu/Debian): sudo apt install gcc *Linux (Arch/Manjaro): sudo pacman -S gcc *macOS: xcode-select --install *Windows: Install [MinGW](https://www.mingw-w64.org/) and add it to your PATH, then use `gcc` in the command prompt. ## How to Run Once you have it installed, you can compile. You only have to do this once: gcc sudoku.c -o sudoku Then, to run the game: ./sudoku ## How to Play When the game starts, it will ask you to choose between 3 possible puzzles by writing 1, 2 or 3. Then it will present the puzzle. The empty spots are marked with a dot (.) and you will only be able to put numbers there, as the other spots already have their numbers. On each turn, you will be asked to select a square by writing the numbers of the row and column similarly to this example: 1 9. After which you will be able to input your guess. If your guess is correct, it is added to the table. If your guess is incorrect, you are given a chance to try again. The game ends once you have filled all the cells. ## Notes The game is 1-indexed (1-9) Invalid inputs will be rejected. Extra numbers typed will be ignored. (Only the first number(s) will count) If needed, you can stop the game prematurely with Ctrl+c ## Contact My name is Alexander Apikyan I can be reached through this address: alexander_apikyan@edu.aua.am