https://github.com/vpayno/gophercises-quizgame
Gophercises Quiz Game Implementation
https://github.com/vpayno/gophercises-quizgame
example-project golang learn-by-doing learning-golang
Last synced: 6 days ago
JSON representation
Gophercises Quiz Game Implementation
- Host: GitHub
- URL: https://github.com/vpayno/gophercises-quizgame
- Owner: vpayno
- License: mit
- Created: 2022-07-31T22:30:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-07T20:23:42.000Z (almost 4 years ago)
- Last Synced: 2025-01-19T06:26:20.238Z (over 1 year ago)
- Topics: example-project, golang, learn-by-doing, learning-golang
- Language: Go
- Homepage:
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/vpayno/gophercises-quizgame)
[](https://github.com/vpayno/gophercises-quizgame/actions/workflows/go.yml)
[](https://github.com/vpayno/gophercises-quizgame/actions/workflows/bash.yml)
[](https://github.com/vpayno/gophercises-quizgame/actions/workflows/git.yml)
[](https://github.com/vpayno/gophercises-quizgame/actions/workflows/links.yml)
[](https://github.com/vpayno/gophercises-quizgame/actions/workflows/woke.yml)


# Gophercises Quiz Game Implementation
## Gophercises Info
- [Website](https://courses.calhoun.io/lessons/les_goph_01)
- [GitHub](https://github.com/gophercises/quiz)
## How to Install
Using `go install`
```
$ go install github.com/vpayno/gophercises-quizgame/cmd/gophercises-quizgame@latest
```
or
```
$ git clone https://github.com/vpayno/gophercises-quizgame.git
$ cd gophercises-quizgame
$ make install
```
## Usage
```
$ go run ./cmd/gophercises-quizgame/gophercises-quizgame.go --help
Usage of /tmp/go-build172411189/b001/exe/gophercises-quizgame:
-csv string
a csv file in the format of 'question,answwer' (default "./data/problems.csv")
-limit int
the time limit for the quiz in seconds (default 30)
-shuffle
shuffle the questions
-version
show the app version
```
## How to Play
You have 30 seconds to answer all the questions.
```
$ go run ./cmd/gophercises-quizgame/gophercises-quizgame.go
Gophercise Quiz App Version 0.0.0
You have 30 seconds to answer 12 question.
1) 5+5 =
Time's up!
You scored 0 out of 12 points (0%).
```
```
$ go run ./cmd/gophercises-quizgame/gophercises-quizgame.go
Gophercise Quiz App Version 0.0.0
You have 30 seconds to answer 12 question.
1) 5+5 = 10
2) 1+1 = 0
3) 8+3 = 11
4) 1+2 = 3
5) 8+6 = 14
6) 3+1 = 4
7) 1+4 = 5
8) 5+1 = 6
9) 2+3 = 5
10) 3+3 = 6
11) 2+4 = 6
12) 5+2 = 7
You scored 11 out of 12 points (92%).
```