Skip to content

Turn a CSV of questions and answers into a quiz game in your command line interface. The quizzer will read in a CSV file and start the quiz with a default timer of 30 seconds unless instructed otherwise with a flag. This implementation is written in Golang.

Notifications You must be signed in to change notification settings

cjsidler/go-cli-quizzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Golang CLI Quizzer

Turn a CSV of questions and answers into a quiz game in your command line interface!

Table of Contents
  1. About The Project
  2. Getting Started
  3. License
  4. Contact
  5. Acknowledgments

About The Project

The Golang CLI Quizzer will read in a quiz provided by a CSV file. The CSV file must be in "question,answer" format. The player will be provided with one question at a time providing feedback as to whether each answer was correct or not. At the end of the quiz, the player will be shown the number of questions they answered correctly and how many questions there were in total.

The CSV file defaults to "problems.csv", but the user can choose a different csv file by using the "-csv" flag followed by the name of the file.

The time limit defaults to 30 seconds, but the user can choose a different time limit by using the "-timer" flag followed by a time limit in seconds.

Your quiz will stop as soon as the time limit has exceeded. Any unanswered questions will be deemed incorrect once the time limit is reached.

(back to top)

Built With

Go

(back to top)

Getting Started

Prerequisites

Installation

  1. Clone the repo
    git clone https://github.com/cjsidler/go-cli-quizzer.git
  2. Build an executable
    go build -o "go-cli-quizzer.exe" main.go
  3. Run the executable. Flags are optional. Default csv filename is "problems.csv". Default time limit is 30 (seconds).
    .\go-cli-quizzer.exe -csv "my-quiz.csv" -timer 20

(back to top)

License

MIT License

(back to top)

Contact

Contact me via email, LinkedIn, or GitHub:

Email LinkedIn GitHub

(back to top)

Acknowledgments

(back to top)

About

Turn a CSV of questions and answers into a quiz game in your command line interface. The quizzer will read in a CSV file and start the quiz with a default timer of 30 seconds unless instructed otherwise with a flag. This implementation is written in Golang.

Topics

Resources

Stars

Watchers

Forks

Languages