制作按钮数组 [英] make array of buttons

查看:69
本文介绍了制作按钮数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 作为业余程序员,我想用按钮作为弹子编写一个简单的国际象棋游戏.但我在指出大理石的确切位置时遇到问题.仅当每个按钮都有单独的X和Y时才有可能!但是我不知道该怎么做?我知道我必须使用2D阵列,但我不知道如何?请回答足够简单的内容,以供业余程序员理解(我知道如何定义数组,方法和.....).

感谢您的帮助

解决方案

通过以下链接:

C#中的国际象棋程序
国际象棋游戏注视工具包
C#中的国际象棋


[ 解决方案

Go through the following links:

Chess Program in C#
Chess Game Starer Kit
Chess in C#


Over 3.6 million google search results for the phrase "c# define multi-dimensional arrays"[^]

Moving the marbles around is totally depenedent on how you architechted the board object and the chesspiece object. In other words, does the board know where the pieces are, or do the pieces themselves know where they are? Once you determine that, the rest should be easy to do.


这篇关于制作按钮数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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