Skip to content

jinlibao/Make-24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make-24

Using brutal force to make 24 in C.

Basic information

  • Maintainer: Libao Jin & Lingxiao Jia
  • Email: jinlibao@outlook.com
  • Create date: 06/28/2017
  • Update date: 05/19/2021
  • Current version: v3.2

Demo

We've provided a Makefile to make the compiling process much easier. Go to src, then run

cd src
make run

or

cd src && mkdir build && cd build
cmake ..
make
./game24   < ../../data/game24.in > ../../data/game24.txt
./game24_2 < ../../data/game24.in > ../../data/game24_2.txt

# interface 1: read numbers from command line
./make_24 1 number_1 number_2 number_3 number_4

# interface 2: read numbers from keyboard (default)
./make_24
./make_24 2
# enter "0 0 0 0" to exit

# interface 3: read data from/write data into files
./make_24 3 < ../../data/game24.in > ../../data/game24_3.txt