This is me and the team according to the teacher's request to create a man-machine Golden Division game. This little game was developed under WINDOWS10, using Eclipse as a development tool to implement language Java.
Using the Java knowledge that you have learned to realize one-person login, the computer to match the game of many people to play together. Because only one player in the game is a real player, the other players are automatically generated by the computer players, with the idea of random numbers to generate the number of machine players guessing, the number of games and how many innings played by the players to decide. A game can have multiple innings, each with losers and winners, and every round has a loser and a winner, allowing multiple losers and winners to emerge. Each loser score is reduced by one, the winner scores plus one, and the remaining points are unchanged.
I mainly design the database, the other team to play the game design. The game joins the data layer, connects the database, registers the user to make the corresponding record, facilitates the next login.
Code uploaded Github:https://github.com/janereality/golden-point-game
Here is a demo of the game:
1. This is the main interface
2. This is the login interface, because the registration interface is no longer shown before the registration
3. Start the game. Before starting the game, there is a choice of number of players, determine your number of games, each game can play multi-innings, each innings no longer re-select the number of players, each round of the same players to ensure that the last loser winner statistics.
4. The game starts, the logged-in player enters their own guessed number, and then the system runs out of the winner of this bureau's loser, then the player can choose to play the next game.
5. When the player chooses not to play the game again, the final winner and loser are drawn. Then the game is over.
6. Design of the database
This is the design of each field.
Two players have been added to the table before the test registration.
The design of this man-machine games can be multi-threaded to multiple people to log on a multi-player game, but has not changed, can slowly change. is trying to change it to an Android mini-game that needs to be improved.
Pairing programming--java to achieve golden split point game