Skip to content

RadhiRasho/german-quiz-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go

German Quiz

German Quiz CLI

Installation

go install github.com/RadhiRasho/german-quiz-cli@latest

I recommend renaming the binary to german or german-quiz for easier access

mv $GOPATH/bin/german-quiz-cli $GOPATH/bin/german
OR
mv $GOPATH/bin/german-quiz-cli $GOPATH/bin/german-quiz

Description

A simple game to learn German words. The game will display the English definition of the word along with a sentence in English that uses the word. The player must then type the German word that corresponds to the English definition.

How to play

  1. Run the game
  2. Enter the number of words you want to learn

There are two modes

  1. Normal Mode: The game will display the English definition of the word along with a sentence in English that uses the word. The player must then type the German word that corresponds to the English definition. The list of words is from the ./data/KnownWords.json file.
  2. Challenge Mode: The game will display the English definition of the word along with a sentence in English that uses the word. The player must then type the German word that corresponds to the English definition. The list of words is from the ./data/Top1000.json file.

How to add more words

  1. Open the ./data/KnownWords.json file
  2. Add the words you want to learn in the following format:
{
  "word": "ich",
  "EnglishSentence": "I like rain.",
  "pos": ["pronoun"],
  "definition": ["I"],
  "description": "First person singular pronoun. Used to refer to oneself."
}
  1. Run the game

How to remove words

  1. Open the ./data/KnownWords.json file
  2. Remove the word you want to remove
  3. Run the game

How to update words

  1. Open the ./data/KnownWords.json file
  2. Update the word you want to update
  3. Run the game

CLI Commands

  • --help | -h: Display the help menu
  • --challenge | -c: Play the game in challenge mode (default is normal mode)

Command Examples

german --help | german -h
---------------------------------------------
german --challenge | german -c

About

CLI and eventually website to test your self in German

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages