Visualises statistics to determine which gender has better memory (recall) and includes a memory game. Built with C++.
Please feel free to 🌟star, fork or contribute to an issue in this repository.
✲ About
✲ Case Study/Problem
✲ Files Explained
✲ Features Explained
✲ TODO - things to implement later, bugs & issues
Name: Rehannah Baptiste
Title: Memory vs Gender Analysis Game
Description: This program visualises statistics on which gender has better memory (recall)
and allows users to play a memory game which adds to the data.
Version 1.0: December 5th 2020
Current version: 1.5 (2022)
License: Open Source MIT
- Do females have better memory than males?
- In one study, it was found that women aged 45-55 years remember better than men of the same age range. Other studies have found that the average person’s short-term memory lasts 15-30 seconds and is able to store 5-9 items at a time.
- Statistics from these studies were used to implement this program and test whether these claims can be replicated.
“highscores.txt”
is the input data file listing the name, gender, number of words remembered and number of attempts by x number of users/players, terminated by "-1".“words.txt”
is a word list containing the words for the memory game, terminated by "END".“newhighscores.txt”
is the output data file containing all high scores for all players, which includes any new data and is terminated by "-1".
- Main Menu to aid in navigation in the program.
- Statistics:
- Find the sum of words recalled by males and females. (Menu option 1)
- Find the average number of words recalled by males and females. (Menu option 1)
- Find the total number of attempts and the percentage of attempts made by males and females. (Menu option 2)
- Find the top player, i.e., the person with the highest score in the least number of attempts. (Menu option 3)
- Find the highest male and female score. (Menu option 4)
- Find the number of players who recalled x words or more. (Menu option 6)
- Rename a player. (Menu option 5)
- Generate a graph visualising all player data. (Menu option 7)
- View all saved high scores. (Menu option 9)
- Surprise feature: Play a memory game. (Menu option 8)
The memory game tests the player's ability to recall words. Their score is saved as a new value in the data file.
How to play:
- When you start the game, words will flash on-screen one by one.
- After all the words have been displayed, enter as many of those words as you can remember in any order.
- Your score will be equal to the number of words you correctly recalled.
- When you start the game, words will flash on-screen one by one.
See more info on contribution guidelines in the CONTRIBUTING.md file.
- more efficient data structures for storing the data.
- allow for a bigger word bank, so that the word list can be randomised.
- include a larger data set of player data.
- update README.md
- Menu option 5 does not work.
- Menu option 8 does not work.
- Menu option 9 does not work.