Hello, might do this in JavaScript or PHP/MySQL. First choice would run in the browser and the main source code may be copied to another website, but it would run very fast. The second choice, would require each action to wait for server's response, but the source code will be hidden and it will be harder to manipulate the scoreboard result.
Best Regards
Al