Beta released
StudyDungeon is a Flashcard program to aid in study
Flashcard decks are stored in Decks/ and are loaded in upon lauching the program.
Once inside the program, you can start a study session by selecting Begin Study. This will then allow you to choose your starting deck to revise flashcards from.
Alternatively, you can add, edit, or remove decks through the Edit Decks menu.
A study session has 2 phases:
- Flashcard revision
- You will go through as many rounds of flashcard revision as you like. Each card that you answer correctly will influence the cards available to you in the study break card duel game.
- Study Break Card Duel
- A card duel game to play as a study break. The more cards you answer correctly from the flashcard revision, the better your playing cards will be in the card duel.
to add/edit decks in github:
- Go into the
Decks/directory - Select
Add file->Create new file - Name the file ensuring it has a suffix of
.deck - First line of the file is the deck name visible in the program
- add cards using the following template:
Q: <question>
A: <answer>
D: UNKNOWN
N: 0
-
Replace <question> with your question text and <answer> with your answer text. The line with only - denotes the end of each card.
D:is the card difficulty, options areUNKNOWN,EASY,MEDIUM, andHARDN:is the number of times the card has been answered
extensions:
- franneck94.vscode-c-cpp-dev-extension-pack
- github.vscode-github-actions
- Gruntfuggly.todo-tree
Open vscode using the "Developer Command Prompt"
cd <path to StudyDungeon>
code .In VScode to build:
A build task for cmake is defined in .vscode/tasks.json. CMakePresets.json contains a list of cmake presets that will populate the CMake extension with preset build options.
Shift + F7 should be the shortcut key for triggering a build. You will be prompted to select a "Target" - Choose "ALL_BUILD".
For debug building there are two main presets:
- Configure preset: "Visual Studio Community 2022 Release - x86_amd64"
- Build preset: "Debug: Visual Studio Community 2022 Release - x86_amd64"
The exe from the build process gets put into build/Visual Studio Community 2022 Release - x86_amd64/app/Debug/StudyDungeon.exe
Choosing the install target should build the exe and then place it (plus Deck/*) into bin/ at the project root.
mkdir -p build
cd buildRun the cmake generator for MSVC which will set up the workflow:
cmake -S ../ -B ./ -G "Visual Studio Community 2022"
Building:
# debug build
cmake -DCMAKE_BUILD_TYPE=Debug ../
# release build
cmake -DCMAKE_BUILD_TYPE=Release ../Pre-commit checks files for conformity to various stylings.
- install python (https://www.python.org/downloads/release/python-3125/)
- add to your path (https://realpython.com/add-python-to-path/) plus the
Scriptsdir
- add to your path (https://realpython.com/add-python-to-path/) plus the
- install pip (https://www.geeksforgeeks.org/how-to-install-pip-on-windows/)
- install pre-commit (https://pre-commit.com/)
pip install pre-commit
- in directory configure pre-commit
pre-commit install
- run pre-commit on all files initially
pre-commit run --all-files
- pre-commit will then run automatically on each commit checking the commited files for styling and auto fixing where it can.
.