Welcome to the C Games repository! This repository contains two classic games implemented in C: Tic Tac Toe and Connect 4. Both games are implemented in a simple text-based format.
Tic Tac Toe is a classic game where two players take turns marking spaces in a 3x3 grid, aiming to get three in a row horizontally, vertically, or diagonally.
Connect 4 is a two-player connection game in which players choose a color and then take turns dropping colored discs from the top into a vertically suspended grid. The objective is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.
To play any game, follow these steps:
- Compile the
<game>.c
file using a C compiler.gcc <game>.c -o connect4
- Run the compiled executable.
./<gane>
- Follow the on-screen instructions to play the game.
This project is licensed under the MIT License. See the LICENSE file for details.