Python Web Combat-The Golden dot game based on flask

Source: Internet
Author: User

First, Introduction

Team members:

Navigator: Zhang Xu

Driver: Zhang Guoqing

Project Introduction:

Project name: Golden Dot game based on B/S mode

Adoption Technology:

Back end: Python + Sqlite3

Front End: HTML + CSS + JS + BootStrap

Project Source: Https://git.coding.net/netcon/gold-dot.git

Project address:http://gd.conw.net/(click to try)

Server environment: Ubuntu server 14.04 + Nginx 1.4.6 + uwsgi 2.0.14

Second, use

Game Introduction:

The Golden Dot game is a digital mini-game, n classmates, each writing a rational number between 0~100 (not including 0 or 100). To the referee, the referee calculates the average of all the numbers, then multiplies by 0.618, gets the G value, and submits the number nearest to G (absolute value) to get n points. The farthest from the G students get-2 points, the other students get 0 points. After a few days of playing, the players discovered some interesting phenomena, such as the golden dots moving down gradually.

Game:

One, players can customize the number of games

    

Second, the game can play multiplayer, has submitted the player button will show "submitted" status.

    

Third, the game each round of results will be saved in the history, easy to statistical results.

    

Implementation features:

First, the game really do many people at the same time play, each user has its fixed ID, multiple browser login results will not conflict, the submitted users will show "submitted" status, when everyone submitted after the end of the game to explain the round.

Second, after each round of game, the background will automatically calculate the game results, and saved to the history, convenient for later statistics.

Third, the bootstrap style appears more friendly, will not let the player to the interface to produce the disgust feeling.

Third, cooperation photo

Iv. Personal Summary

This project is two people cooperation, and two people each have division of labor, both improve the development efficiency, and improve the project quality.

From this project, I also really recognize the importance of multi-person cooperation, I after the project model has been completed, I think I have completed the project required functions, at this time Zhang Xu put forward the game bug, that can only support integer input, and the rational number of input can not be processed, the reason is that I write code careless, forget to solve the problem. After discovering the bug, re-modify the code, re-commit, re-push ...

On the other hand, I am a lack of artistic aesthetic talent, no way to grasp the front page is beautiful, so Zhang Xu and help me to design the page display, this is the former I work alone the most headache, this time also got a satisfactory solution.

After two people cooperation, work efficiency has been improved, and the development process is no longer so dull, the mood is one of the factors of project quality, the other two people learn from each other, is bound to do something better than a person.

Python Web Combat-The Golden dot game based on flask

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.