Skip to content

A recreation of the study tool Quizlet, built entirely in Swift, through the CLI.

Notifications You must be signed in to change notification settings

bearwithtea/Swiftlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiftlet

A Quizlet clone built entirely with Swift and accessible through the CLI

Why

One of my favorite studying tools is Quizlet. It is one of the few applications that I find the premium version worth paying for. It makes it easy to create flashcards and review them.

However, since it is a web application and rich with features, there can be quite a lot of bloat. Sometimes, Quizlet seems to just shut down and throws me into a white screen, which is frustrating when I am in the study "flow."

Because of this, I wanted to recreate the fundamentals of Quizlet with stripped down functionality to just what I needed: flashcards.

How

The way that Quizlet is setup lends itself well to a file system. There are sets (files) which are stored in folders (directories). This made my choice of platform easy, as the terminal is the quickest way to interact with your computer's files. This also means that Swiftlet is entirely local and personal.

My choice of language was a bit more esoteric and personal. I like Swift a lot, it has a beautiful type set and is easy to interact with. It is also wicked fast, which lent itself to the project at hand.

Result

Questions
Swiftlet question creation

This code is responsible for getting a user's question and respective answer, and then storing it into a dictionary with a question number as a key.

Answers
Swiftlet AnswerCode

This code compares the user's answer to a question. If the answer is correct, a point is added to their score. If the answer is incorrect, the user is given a chance to correct their mistake. If the corrected answer is still wrong, a point is deducted from their score.

Demo
Swiftlet_Demo.mov

About

A recreation of the study tool Quizlet, built entirely in Swift, through the CLI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages