Skip to content

This C-based game challenges the user to guess the correct number within the range of 0 to 15 in three attempts, employing while loops for implementation.

Notifications You must be signed in to change notification settings

JoelMoyal/guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project status: Final.

Technologies Used: C

GUESSING GAME IN C

A game where the user has three attempts to guess the correct number between the range of 0 and 15. This game is written in C, utilizing while loops for its implementation.

Table of Contents

Installation

  1. Clone the repository:
 git clone /~https://github.com/JoelMoyal/guessing-Game.git
  1. Install dependencies:

macOS:

To compile and run the project on macOS, you'll need to install GCC. Here's how you can do it:

  • Install Homebrew
brew install gcc

Windows

To compile and run the project on Windows, you can use MinGW, a port of the GNU Compiler Collection (GCC). Here's how you can do it:

  1. Download the MinGW installer
  2. Select GCC during installation.
  3. Add MinGW to PATH.

Usage

Prerequisite

  • Have C compiler installed

How to Run and Build the Project:

Option 1 - Terminal

Steps:

  1. Navigate to the directory of the project
cd [your_project_directory]
  1. Run the following command to build the project
  gcc -o main main.c
  1. Run the following command to run the project
  ./main

Option 2 - Program

Steps:

  1. Navigate to the directory of the project
  2. Run the batch file by double clicking or right click and select #run#

About

This C-based game challenges the user to guess the correct number within the range of 0 to 15 in three attempts, employing while loops for implementation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages