游戏的伪代码 [英] Pseudo Code for a game

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

问题描述

有人可以帮助我为双骰子游戏编写伪游戏吗?我上传的是一款过时的游戏,它是:

can someone help me to write a pseudo for a double dice game. It is a provious game that i upload and it is:

报价:

如何仅使用两个就可以用JavaScript和html制作两个骰子游戏骰子?

1.每个玩家每回合投掷两个骰子一次.仅当您掷双打时才得分(也就是说,两个骰子顶面上的斑点数相同).

2.玩家为双打,双打,四打或五打得到5分.双六获得25分,但是如果投双三则您的得分会回到零.
3.在演奏时添加您的乐谱.第一个获得五十分的玩家将赢得比赛.

How to make a dice game for two player in javascript and html using just two dice?

1. Each player throws both dice once per turn. You only score if you throw doubles (that is, both dice have the same number of spots on their top face).

2. Players score five points for double ones, twos, fours or fives. A double six scores twenty five points, but if you throw a double three your score goes back to zero.
3. Add your score as you play. The first player to get fifty points wins the game.

推荐答案

这可能会帮助您了解游戏的运作方式.
制作骰子游戏2玩家 [
this may help you to get how it work..

Making dice game 2 player[^]


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

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