Code Snippets

Under the hood

Sentence/Word Type Test:

This test retrieves words from a database of words, and according to the number of words an user wants, outputs them in either a list, or a line format them for a set amount of time.

Word Test Function met_string (string_count,type)

The user then inputs the words to his/her memory’s capability, and the accuracy is handled by accuracy function [acc_time_test_str()] of code. It converts the word into a list format, and checks the words to the original word list.

Input Word Accuracy Test Function - acc_time_test_str()

Character Test:

This test retrieves various characters from a database of alphanumeric characters, and according to the number of characters an user wants, concatenates them into a single string and outputs them for a set amount of time.

Character/Alphanumeric Test Function - met_character(character_count)

The user then inputs the words to his/her memory’s capability, and the accuracy/timing is handled by character accuracy [ acc_time_test_chr()] function of code. It takes the user input, and checks the words to the original word list.

Alphanumeric Code Accuracy Test Function acc_time_test_chr()

Pi Test

In this test, the user is given a set digit of Pi, and once those digits are shown for a set amount of time, the user must input them. If they are correct, more digits of Pi are shown and the process repeats.

It Takes Account For Certain Parameters Such As Digit Increment ( Number Of Digits To Be Increased Per Round ), Remembrance Time : Amount Of Time Given To The User To Remember The Digits. Once The User Loses It Calculates The User's Accuracy -It also Displays A Graph Based On The Data.

accuracy_pi() function, containing accuracy calculations and graphical representation

Last updated