Welcome to the C Code Challenge Game! This game is designed to help you improve your C programming skills by solving coding challenges and testing your code against predefined solutions. You can choose between two categories: "Loops" and "Arrays." Each category includes various challenges that will test your knowledge and coding abilities.
-
Clone or download this repository to your local machine.
-
Compile the code:
- To compile the game, use the following command:
gcc game.c -o game
- To compile the game, use the following command:
-
Run the game:
- Start the game with the following command:
./game
- Start the game with the following command:
-
Choose a category:
- You can select between "Loops" or "Arrays." Each category offers unique coding challenges.
-
Solve the challenge:
- After choosing a category, you'll receive a coding challenge. Write your C code to solve the challenge.
-
Test your code:
- Once you've written your solution, save it by typing "EOF" on a new line. The game will then compile and run your code to check if it meets the challenge requirements.
-
Get your score:
- The game will evaluate your code and display a success rate as a percentage.
-
Keep practicing:
- You can try the challenge again to improve your skills.
Choose the "Loops" category to practice loops in C programming. Challenges in this category include:
- Printing numbers using
for
loops. - Calculating factorials.
- Printing the Fibonacci series.
- and many more!
Select the "Arrays" category to practice working with arrays in C. Challenges include:
- Initializing and printing arrays.
- Finding maximum and minimum values.
- Calculating sums and averages.
- and more!
The game provides feedback on your code's success rate and helps you learn from your mistakes. You can keep practicing and refining your skills.
I hope you enjoy playing the C Code Challenge Game. Feel free to contribute, add new challenges, or make improvements to the game. Happy coding!
At this point there are nearly 20 questions for only 2 subjects. But i will add many more in the future!