This project is a simple quiz application written in Go.
- Clone the repository:
git clone https://github.com/yourusername/go-quiz.git
- Navigate to the project directory:
cd go-quiz
To run the quiz application, execute the following command:
go run main.go -csv=problem.csv -shuffle=true -limit=30
To build and run the quiz:
go build . && ./go-quiz -csv=problem.csv -shuffle=true -limit=30
- csv flag is the csv to load.
- shuffle randomize the quiz order every time it is executed.
- limit is the duration of quiz.
The main.go
file contains the main logic for the quiz application. It includes:
- Loading quiz questions from a file.
- Displaying questions to the user.
- Collecting and evaluating user responses.
- Displaying the final score.
- Stop as soon as the time limit has exceeded