Program to count points for a BLIND TEST
roro56
-
[Dal] Posted messages 6122 Registration date Status Contributor Last intervention -
[Dal] Posted messages 6122 Registration date Status Contributor Last intervention -
Good evening,
On Saturday, December 16, I have to host an event, and I am organizing a blind test.
I would like to know if there is a scoring software available, or if there isn't, how I could create a similar program.
I need to display the scores on a big screen.
(there are 10 teams)
Could you help me? Thank you in advance.
On Saturday, December 16, I have to host an event, and I am organizing a blind test.
I would like to know if there is a scoring software available, or if there isn't, how I could create a similar program.
I need to display the scores on a big screen.
(there are 10 teams)
Could you help me? Thank you in advance.
4 answers
-
Hi roro56 and Whismeril,
To do this kind of thing, where a graphical interface is required, the simplest way is still to use your browser along with some HTML and JavaScript.
To create a simple counter, a few years ago I suggested this: https://forums.commentcamarche.net/forum/affich-26349714-compteur-sur-pc#1 for someone looking for a simple way to count calls by clicking.
It displays a big red button with a number, which is incremented when clicked. You just need to adapt it to display several buttons of different colors and increment 10 different variables, and there you go :-)
Adapted for several teams and buttons, it would look like this:<html> <head> <style type="text/css"> .equipe{display: inline-block;margin: 30px} .bouton1{width:100px;height:100px;border-radius:50px;font-size:20px;color:#fff;line-height:100px;text-align:center;background:red} .bouton2{width:100px;height:100px;border-radius:50px;font-size:20px;color:#fff;line-height:100px;text-align:center;background:blue} </style> <script type="text/javascript"> function incrementer(IDcompteur) { compteur = document.getElementById(IDcompteur).innerHTML; compteur++; document.getElementById(IDcompteur).innerHTML = compteur; } </script> </head> <body> <div> <div class="equipe"> <h1>Team 1</h1> <div class="bouton1" onclick="incrementer('IDCompteur1')"><span id="IDCompteur1">0</span></div> </div> <div class="equipe"> <h1>Team 2</h1> <div class="bouton2" onclick="incrementer('IDCompteur2')"><span id="IDCompteur2">0</span></div> </div> </div> </body> </html>
Dal-
As indicated in my previous message:
Save this in Notepad in a file named "compteur.html", for example.
Then double-click on this file, which should open in your default browser. The code uses a CSS3 property "border-radius" to make a circle. If your browser is not recent or does not support this property, you will see a square, but you can still click on it :-)
To create the 10 teams, just:
- in the "style" section, create the remaining button styles .button3, .button4, etc., by changing the color to colors you like (https://www.w3schools.com/colors/colors_names.asp)
- in the "body" section, add <div class="team"> blocks (a block is, for example, from line 23 to 28) using these buttons and incrementing the number of the relevant counter
Dal -
-
-
-
-
-
Good evening
Do you have any programming fundamentals?- If yes, it’s just about managing 10 collections and displaying the sum.
- If not, I recommend using a spreadsheet: Libre Office, Numbers, Excel, etc...
--
When I was young, the Dead Sea was only sick.
George Burns -
Hello
Thank you for keeping in mind that CodeS-SourceS and CCM are communities of mutual assistance. All responses on the forum are provided by volunteers who give their free time to help solve problems.
We will not do the work for you.
If you think you can learn a programming language well enough in less than 2 weeks to create your app, then start by reading this article
https://www.commentcamarche.net/faq/457-programmation-comment-debuter-quel-langage
--
When I was a kid, the Dead Sea was just sick.
George Burns -
If you are on Windows, you can check here, you say what you want and we will do it for you (for free)
http://libertybasic.fr/forum/index.php