Nedd帮助使用Vb代码制作游戏. [英] Nedd Help to make a game using Vb code.

查看:89
本文介绍了Nedd帮助使用Vb代码制作游戏.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要求您需要在第一次任务中制作一个棋盘游戏.游戏应成对出现在4 x 4网格(请参见图1)上,一次一个玩家.

Requirements You are required to build a board game as part of your first assignment. The game should be played on a 4 by 4 grid (refer Figure 1) in pairs, one player at a time.


图1 1.

要玩游戏,玩家会在数字指示的网格区域中生成两个随机数和颜色.例如,如果生成的数字是2和3,则玩家单击2x3正方形,这将导致正方形的颜色发生更改.

To play the game, a player generates two random numbers and colours in an area on the grid indicated by the numbers. For example if the generated number is a 2 and a 3 the player clicks in the 2x3 square which results in the colour of the square being changed.

2.玩家只能单击并更改仅由随机数表示的正方形的颜色.

2. A player should only be able to click and change the colour of the square represented by the random numbers only.

3.在游戏开始时,初始分数应为0.每个正方形都用两个数字的乘积来增加分数.您可以在用户界面中的任何位置显示分数.

3. At the start of the game, the initial score should have a value of 0. With each square coloured the score increases by the product of two numbers. You can display the score anywhere within the user interface.

4.游戏应保持为所有正方形上色所需的时间.因此,当玩家开始游戏时,计时器也应开始.您可以在用户界面中的任何位置显示时间.

4. The game should maintain the time taken to colour all the squares. Hence, when a player starts the game the timer should also start. You can display the time anywhere within the user interface.

5.游戏应以两种方式结束.它们包括:玩家连续三次尝试产生相同的随机数b.玩家为所有方块着色

5. The game should end in two ways. They include: a. A player generating the same random numbers in three consecutive attempts b. A player colouring all the squares

6.第二个玩家应该能够在不关闭整个应用程序的情况下玩游戏.当第二名玩家的比赛结束时,应宣布获胜者.获胜者应该是在最短时间内得分最高的人.如果 玩家得分最高但花费的时间最多,那么该游戏被视为平局.因此,显示一条消息,说这是平局.

6. The second player should be able to play the game without closing the whole application. When the game ends for the second player, the winner should be announced. The winner should be the one who scores the highest within the least amount of time. If a player has the highest score but takes the highest time, then the game is considered a tie. Hence, display a message saying it is a tie. 


推荐答案

我们不是在这里为您完成任务.开始编写代码,如果遇到问题,请发布代码并说明问题.
We aren't here to do your assignment for you. Start writing your code and if you have a problem with it, post your code and explain the problem.


这篇关于Nedd帮助使用Vb代码制作游戏.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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