Skip to content

This is a C program for a full implementation of the 24 game.

Notifications You must be signed in to change notification settings

juebenjamin/TwentyFour-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Twenty-Four 2

This is a C implementation of the TwentyFour Part Two game where the player is given a set of four numbers and the goal is to use basic mathematical operations (+, -, *, /) to get a result of 24. The player must use each number exactly once.

Features

  • Three difficulty levels: easy, medium, and hard
  • Validation of user input
  • Evaluation of expressions
  • Random puzzle selection from a text file

Requirements

  • C Compiler (e.g., GCC, Clang)

Installation

  1. Clone the repository: git clone https://github.com/juebenjamin/TwentyFour-2.git
  2. Navigate to the project directory: cd TwentyFourPartTwo
  3. Compile the program: gcc -o twentyfour2 TwentyFour2.c

Usage

  1. Run the complied program: ./twentyfour2
  2. Follow the prompts to select a difficulty level and enter your solution.
  3. To exit the program, choose the "exit" option when prompted.

About

This is a C program for a full implementation of the 24 game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages