Skip to content

C Code Challenge Game: Improve C programming through code writing, compilation, and scoring in a fun, educational challenge-based environment.

License

Notifications You must be signed in to change notification settings

BaranDev/c-coding-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Code Challenge Game

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.

Getting Started

  1. Clone or download this repository to your local machine.

  2. Compile the code:

    • To compile the game, use the following command:
      gcc game.c -o game
      
  3. Run the game:

    • Start the game with the following command:
      ./game
      

How to Play

  1. Choose a category:

    • You can select between "Loops" or "Arrays." Each category offers unique coding challenges.
  2. Solve the challenge:

    • After choosing a category, you'll receive a coding challenge. Write your C code to solve the challenge.
  3. 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.
  4. Get your score:

    • The game will evaluate your code and display a success rate as a percentage.
  5. Keep practicing:

    • You can try the challenge again to improve your skills.

Supported Categories and Challenges

Loops

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!

Arrays

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!

Challenge Feedback

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.

Enjoy the Game!

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!

P.S.

At this point there are nearly 20 questions for only 2 subjects. But i will add many more in the future!

About

C Code Challenge Game: Improve C programming through code writing, compilation, and scoring in a fun, educational challenge-based environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages