This program allows a coach (or an assistant) to keep track of basketball players' activity during a game. It has a row for each player (and one - the first one - for the entire opposing team) with buttons to record points, rebounds, etc. The coach can sort the players by time played or by roster order. The "1 pt" is clicked when a player makes a free throw. When this button is clicked the program automatically also counts a free throw attempt (FTA). One only clicks the FTA button when a free throw is missed. The "2 pt" and "3 pt" buttons work similarly.
Note each row starts of with a pair of radio buttons. The left button is called the "in" button and the right button is called the "out" button. For the game clock in and out could well be called on and off respectively. Note that the first row after the clock is for the entire opposing team. The following row is for players on your team. Those players should be listed in a plain text file called roster.txt. So if any opposition player scores, fouls, etc. click a button in the first row. If one of your players does something click a button in his or her row. You will notice that a player's row (or the opposing team's row) is highlighted as the mouse moves over that row.
Below is the same game at the same point in the second quarter, but the roster is ordered by time played. I use this to make sure I'm not ignoring anyone. It can also be used to see who might be getting tired. Notice that hitting the "Sort" button puts the players in this order. Hitting the "Sort" button again returns the list to the original order.
cat roster.txt | java -jar BasketballGameMgr.jar OurTeam TheirTeam >v.TheirTeam.txt
When you're done you will have a file named "v.TheirTeam.txt" containing a log of the game's action as well as a summary at the end.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 License.