Giter VIP home page Giter VIP logo

c-coding-game's Introduction

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!

c-coding-game's People

Contributors

barandev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.