Golden Dot Game
The Golden Dot game is a digital mini-game whose game rules are:
n students (n usually greater than ten), each writing a rational number between 0~100 ( excluding 0 or three ), to the referee, the referee calculates the average of all the numbers, and then times the 0.618(so-called golden partition constant) , the G value is obtained. The number of the submitted nearest to G(absolute value) of the students get n points, the farthest from the G students get-2 points, the other students get 0 points. after a few days of playing, we found some interesting phenomena, such as the golden dots moving down gradually.
Now please according to the rules of the game, make up a can play with a number of small game program, the requirements are as follows:
1, this job belongs to the pair programming project, must be completed by two people, and will be sent to the blog, respectively, the operation of the source code submitted to the codeing system;
2, if possible to use the C/s or b/n as much as possible, that is, using the server to receive and process all the players submitted by the number, and the results back to the players, players can be submitted by the client number;
3, if the use of single-machine approach, it is necessary to provide users with convenient input interface;
4, the game can run at least 10 rounds at a time, and can keep the results of the rounds.
Not to be continued
(fifth week) pairing project--golden point game