简单的游戏 [英] Simple game

查看:63
本文介绍了简单的游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想编写一个简单的游戏。请看这些照片:



http:// img519 .imageshack.us / img519 / 6323 / boardf.jpg [ ^ ] http://img151.imageshack.us/img151/9964/18245360.jpg [ ^ ] http://img25.imageshack.us/img25/3871/21456530.jpg [ ^ ]



跳转在一个令牌上并捕获令牌。每次移动必须是一个跳跃!只允许水平和垂直移动,游戏中没有对角线移动。游戏的目标是捕获所有的令牌,除了最后一块。左图显示播放器分别在From和To中键入D2和D4。

是需要在这里执行的几个验证。 D2必须是令牌,D4必须是空格。 D2和D4必须用令牌分隔才能执行跳转。图显示了第二次移动后的更新,从F3到D3。您可能会注意到每个有效的移动都是水平移动或垂直移动。因此,From和To必须具有相同的x轴或相同的y轴。这对于执行验证很有用。



请帮忙。



等你。

Hello guys,

I want to program a simple game. Please see these picures:

http://img519.imageshack.us/img519/6323/boardf.jpg[^]http://img151.imageshack.us/img151/9964/18245360.jpg[^]http://img25.imageshack.us/img25/3871/21456530.jpg[^]

"Jump over a token and capture the token. Every
move must be a jump! Only horizontal and vertical moves are allowed, no diagonal movement in the game. The objective of the game is to capture all the tokens, except the last piece. Figure on the left showing the player keys in the "From" and "To" as D2 and D4 respectively. There
are several validations need to be performed here. D2 must be a token there and D4 must be an empty space. D2 and D4 must be separated by a token to perform the jump. Figure shows the update after second move, from F3 to D3. You could notice that every valid move is either horizontal or vertical. Thus the "From" and "To" must be either having the same x-axis or the same y-axis. This is useful for performing validation."

Please help.

Waiting for you.

推荐答案

听起来像一个有趣的项目。去吧,当你遇到困难时,请回答一个特定的问题。:)
Sounds like a fun project. Have a go at it and when you get stuck come back with a specific question. :)


首先不要发布假答案。



不要催人。你问了这个问题,就在三个小时后,你发了一个(假的)答案,说如果你需要帮助,请耐心等待。对你来说可能是紧急的,但对其他人来说并不紧张。当然你根本不会得到合理的答案,因为你刚刚发布了你的一般任务,但是没有解释,你的问题是什么。要求一般帮助不会让你到任何地方,Codeproject的这个区域被称为快速问题和答案。不要求代码,你不会在这里得到代码。



如果您的问题很简单(问题主题为简单游戏),为什么不能自己做?



几乎所有的错误都可以得到答案,但是说迫切。当然,你的急躁等于迫切。
First of all do not post fake answers.

Do not urge people. You asked the question, and just three hours later, you post a (fake) answer, saying "still waiting". Show patience, if you want help. It might be urgent to you, but not to others. Of course you won't get a reasonable answer at all, since you just posted your general task, but don't explain, what your problem is. Asking for general help won't get you anywhere, this area of Codeproject is called Quick questions and answers. Do not ask for code, you won't get code here.

And if your problem is that simple (question subject "simple game"), why can't you do it yourself?

You made nearly all mistakes that are possible to not get an answer, but saying "urgentz". Of course your impatience equals "urgentz".


这篇关于简单的游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆