This repository contains a collection of simple console-based applications written in the C programming language. Each project is a standalone program that demonstrates basic C concepts.
A classic Tic-Tac-Toe game where you can play against the computer. The computer makes random moves.
To compile the program, use a C compiler like GCC:
gcc -Wall TicTacToe.c -o tictactoeExecute the compiled file from your terminal:
./tictactoe- The board is a 3x3 grid.
- You play as 'X' and the computer plays as 'O'.
- When prompted, enter the row number (1-3) and then the column number (1-3) to place your mark.
- The game ends when a player gets three in a row (horizontally, vertically, or diagonally), or when the board is full (a tie).
- After each game, you'll be asked if you want to play again.
A simple command-line tool to convert units for temperature, currency, and mass.
Note: The currency conversion rates are hardcoded and based on values from December 2022.
gcc -Wall unit_converter.c -o converter./converter- Select a category:
Tfor TemperatureCfor CurrencyMfor Mass
- Select a conversion type:
- Temperature:
1for Celsius to Fahrenheit,2for Fahrenheit to Celsius. - Currency:
1for EUR to USD,2for EUR to GBP,3for EUR to CNY. - Mass:
1for Kg to Pounds,2for Grams to Ounces.
- Temperature:
- Enter the numeric value you wish to convert. The program will display the result and then exit.
A console version of the classic "Rock, Paper, Scissors" game against a computer opponent. The first player to reach 10 points wins.
gcc -Wall rock_paper_scissors.c -o rps_game./rps_game- Enter your name/nickname.
- Enter a name for your AI opponent.
- Choose your move by typing:
Rfor RockPfor PaperSfor Scissors
- The game continues until either you or the computer scores 10 points.
- A summary of each round is displayed at the end of the match.
- Tic-Tac-Toe: Implement a more challenging AI instead of random moves.
- Unit Converter: Add more conversion categories (e.g., data storage, speed) and allow for reverse conversions (e.g., USD to EUR).
- Rock, Paper, Scissors: Allow the user to set the winning score instead of a fixed 10 points.
- New Projects: Add other classic console games like Hangman or a number guessing game.
- Name: Exarchou Athos
- Student ID: it2022134
- Email: it2022134@hua.gr, athosexarhou@gmail.com
This project is licensed under the MIT License.