One of the online ghost game development-game flow introduction and technology selection

Source: Internet
Author: User

Have seen the Mango station a well-known program of friends should be "who is undercover" will not be unfamiliar: N people involved, N-1 people get the same word (such as steamed bread), the remaining one to get another word (such as buns), N people can only see their own words, so no one knows whether they are not as described by others. The game uses a rotating speech system, trying to describe their own words in the hands, so that they are not suspected, and can not let the real undercover guess they are not the same as others, until Guess who is undercover.

The interesting thing about this kind of game is that the scale of the description is to be clear and not dissected between , the machine no human intelligence so divergent, people's sense of participation is more important (otherwise, like my favorite flying chess, you really do not know the network opposite the opponent is not a dog).

Catch Ghost This game is similar, and a bit like killing games: "Thank Wuhan Zhangrui classmate bring us game of joy, Rui elder brother V5"

Standard 9 Persons: 4 good People (such as the word is: men), 2 idiots (if the word is: MOM), 3 ghost (Get the content is: Ghost (2 words), meaning you smoke a ghost, this question a total of 2 words)

Smart you must have noticed that the ghost does not know what the problem is, even the animal class? Scene class? And so the range is not given, only know that this is two words, so:

Good people and idiots are a gang (although they do not know each other who is their own gang), the good and the idiot to vote after each round of voting to cast all the ghosts, victory;

The ghost is going to disguise himself, not to be found, at the same time in each round of speech to fool everyone and yourself to vote for good people or idiots to die, until the number of ghosts and ghosts, or in every ghost to die, allow one chance to guess what kind of words the good people take (guess idiot does not count victory), if guessed, Ghost also counted win, this opportunity can accumulate.

What is accumulation? A total of 3 ghosts, the first ghost to be found and cast to death, there is an opportunity to guess the word, but the information is not clear, you can choose not to guess, when the second ghost to die when there are two opportunities, the same, if the second does not guess, the third ghost to die when there are three times, of course, ghosts in the process is not communication, that is: who Guess who guessed, Other people don't talk nonsense.

Of course there are 1 judges, but the game development here replaces the judge's role. Oh, yes, when I play this game with my classmates to play to a certain bottleneck, I realized what a good question means , listen to me finish the rules in detail the trick.

The process is as follows:

Judge: Everyone sit well (plan in the program with the queue or list or array to complete the order of the problem), everyone drew my written 9 pieces of the note (the program system random Word, thesaurus can be maintained), good, dark Please close your eyes (follow killing games classic sentence ~), please ghost out to discuss from who to speak.

3 Ghosts: (quietly communicating with the body, identifying the speaker) (online games will increase the ghost typing communication link so Play 2.0 tricks. and follow up I'll explain )

Judge: OK, please close your eyes. Dawn please all eyes, starting from a to speak, each round to say anything can (can describe the words, can comment on other people's words, can summarize and analyze the situation on the spot).

A:...... (The program rotates in the order of the queue, one person speaking, others can see, but others are not allowed to speak until a click submit over button)

......

I: ...

Judge: OK, now start the second round, or a start (the first two laps, then the end of each lap to vote)

A:......

......

I: ...

Judge: Give 1 minutes to consider, start voting, the first time to raise your hands, not to vote, you can abstain (in the process of course it is easy to do not with the ticket, set only the player to vote who or abstain from the button to show the results can be)

Judge: OK, C was cast out (assuming C was cast), C is not a ghost (not a good person or an idiot), C can leave a note (only the first dead non-ghosts can leave a note, the dead of the non-ghosts have no last words, all ghosts cast dead have no last words, can only directly guess the word. So here's a ghost adventure Trick, is the first round of suicide, Rob this last word opportunity, haha here should not discuss game skills ~ program in good design, let C speak, other people JQ or server-side not allowed to speak.

C:......

Judge: Well, speak from D (from the next beginning of the deceased)

A:......

......

I: ...

Judge: The usual, 1-minute consideration, start voting.

Judge: Ok, H was cast out, H is a ghost, H guess.

H:......

Judge: Sorry, no guess right, the game continues (Jochi on 4 good words, game over), I began to speak.

I: ...

......

G:......

Judge: The usual, 1-minute consideration, start voting.

Judge: OK, A and f with the votes, now enter the PK Link, a first speak (according to the latest round order), then f again speak

A:......

F:......

Judge: OK, now, with the exception of a and F, the others start voting and cannot abstain (and if there is a waiver, the game will not be able to play the cycle of death)

Judge: OK, F was cast dead, (if the remaining 4 votes and still the same vote, then a, f speak, and then cast, until there is a result), F is not a ghost, no last words (the first non-God has a last word), please g to begin to speak.

The following author will not continue to repeat, I did not estimate the wrong words, the above has included the possible situation.

Until:

(1) The ghosts were all cast to death, the good man and the idiot square victory;

(2) By any ghost guessed the word, Ghost victory;

(3) Good people + idiot = number of ghosts, Ghost Victory (Ghost vote concentric, again play is Ghost win).

Note (only for better gameplay, unrelated to the program, can be skipped):

(1) What it means to have a good question : In this case, a man and a mother , if it is a man and a woman (two words are more similar, and can easily see one word to guess another word), Good people and idiots are easy to hold, not fair to ignorant ghosts. If the building and the cell (two words farther, basically cannot produce simple connection), the ghost is easy to troubled waters, the good man and the idiot too found the companion.

(2) A good question of the know- how: generally two or three words for the best, rare words please judge himself to go (such as cursors, object-oriented and other professional vocabulary, mother, wandering and other verses are too difficult words too difficult, ghosts in this life can not guess). First think of a common word, such as "The Sea ", then a see the word is easy to associate with the "River", "High Mountain", "ocean" and other directly related nouns, the second word from these associative words, such as from the high mountains think of " Green Trees " (the same as the scene, but do not think the tiger in the mountains , different big kind of heart good tired ~), then the Sea and the Green Tree is a group of both sides fair good question. It is best to choose words that are easy to guess, such as the sea, and not easy to guess as stupid words (such as green trees).

(3) Play out 2.0 tricks : This belongs to the game skills, mainly in order to expand our thinking and write. Pattern refers to: 3 ghosts in order to designate 1 of them to speak first, and 3 ghosts collude to assume that they have a word (such as the eye), and then throughout the course of the game has been around the eyes to describe, to the affirmation of the gas field to confuse opponents, and vote concentric. Sounds like a ghost. Yes, tell you the data, we have finished nearly 10 rounds of the 2.0 model, only 1 times, 1 won the Victory (3 ghosts are alive), the others were found to be a nonsense description and was cast to death.

(Jumping here is good, the following is the choice of technology)

Well, the business process has been described, the next step to start the Technology selection bar (choose your sister Ah, I will C #, gig three months Java does not count, have not chosen well ...) [Grievance])

Initial use C # + mvc.net + JQ + XML storage, in fact, the best business result is html5+singlepage, put in play, but this game round down fast 20 minutes, slow for an hour, not too suitable for mobile end fragmented entertainment time, or you last toilet 10 minutes do not speak, The other eight people have retired long ago, so it's fun to be between acquaintances. Alas, every time these idea is considered commercially, it becomes more and more inappropriate, or the focus back to technology:

Three layer what is not set up, business objects put Model,xml main storage bank, configuration game parameters (test can be good, idiot, ghosts are reduced 1 people, to 3:1:2 6 people mode, convenient test), limit disorderly speak on the JQ and Attributefilter, 1.0 version does not consider whether to allow spectators, the overall participation feeling a bit like the QQ game into a room of a certain table, and then sit down, waiting for people to open.

Haha, how, was cheated, to be able to make an online version of this interface slightly cock, then these pictures will be a blue underline the link, hehe ~ Programmer non-Art pain you understand!

To this, this article "Game Flow Introduction and technology selection" has been completed, presumably everyone also free from the outside, then review the game process, take a pen and rubber demo 6 people version is the best. If you already know the game link and the roles, then you can start to consider how to design business objects and objects of responsibility Division , that is, the next will be updated content, which will be slightly involved in the design pattern of the shadow, but the author is really beginner rather than humble, so I hope to receive everyone's technical spit groove, If the groove can also be pointed twos shape such as "you can't read that who wrote XX book again to do this division of responsibility, you can not do a few DDD project to ensure the stability of the program" In this way, I thank you all Daniel!

OK, ready to review the spelling of this article, published!

One of the online ghost game development-game flow introduction and technology selection

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.