Pairing programming--java to achieve golden split point game

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.