Introduction
This document includes the user manual of how to run our program on a Windows computer. This document takes into consideration that you have followed the installation guide. If your system lacks the necessary software to run the program, this guide also shows how to download this. Follow the “Windows Install Manual” before this manual. This manual only takes place in a bash CLI terminal.
The User Manual
- The program is now up and running and you will be treated with a menu. The menu will show what type of user you are logged in as and display the different possibilities you have based on your user state. If you are logged in as an administrator you will have more options than if you are logged in as a regular user.
This is the meny you first will be treated with when the program starts
You are now logged in as -Guest-
---Menu---
(S) Current matches per tournament
(R) Output results from previous tournaments
(H) Write out location for each tournment
(L) Login to a user
(Q) Quit the program
-
To enter a command you simply just enter the charachter that is inside the parathesis and push the enter button.
-
When finsihed using the program, get to the main manu and press -Q- and enter. The program now saves your results and quits the program. Next time you are going to boot up the program you can enter
football.cpp
, which you did earlier to start up the program
The different features
S) This is a command that shows all the tournaments that are playing now. In the terminal it will be displayed on the top where the tournament is played, and further down which teams are playing against each other. As the tournament progresses it will be displayed less teams as more get eliminated. When the tournament is finished the team will be removed and the winner will be added to the (R)esult option
R) This command displays all the winners that have won a tournament with team-name and the number of trophies they have.
H) Feature that allows the user to see where the different tournaments are located. This is a smart feature since, when running a tournament (K), it is essential to know where the tournament is located to have control.
L) This is a feature that allows the program to know if the user is an administrator or just a regular user (Note that “Guest” is standard and will have the same permissions as a regular user). When pressing “L” and enter the user will be prompted with “Username: “ and “Password: “. If a existing username and corresponding password is entered you will now get logged in as this User. If logged in as an administrator, you have now the permissions to create and run a tournament.
Features for administrator users
When logged in as to a administrator user, the menu will change and these features will be available as well as the others listed over. You can also wee that the user is logged in as Eskil
, which is an administrator user.
You are now logged in as -Eskil | adm-
---Menu---
(N) Create new tournament
(K) Run tournament
N) This feature allows the user to create a new tournament. You will be prompted with “Add the location of the tournament: “. This is a way to know where each tournament is hosted and have control. NB: The name needs to be at least 5 characters long. Once the name has been typed in, the tournament will be created and added to the database.
PS
If the program were to contain get stuck for some reason, the is a quick fix for this. Press CTRL + C. This should cancel the program. Remember that this form of quitting will not save any progress to the tournament.