本文介绍了是否有可能在Javascript中制作像Magicsquare这样的游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 如果我可以开发一个3乘3的网格,所有行,列和对角线加起来15,使用1到9之间的数字,我会很酷。 点击检查总和按钮这个应用程序应该 总结所有行,列和对角线并将结果放在相应的框中 ...使用if / else检查所有结果是否为15 ,并祝贺用户答案是否正确。 文本框的名称应恰当命名。 bonus(1pt)使程序检查/给出错误消息所以用户每次只输入1~9号。I would be cool if I could develop a 3 by 3 grid that all row, column and diagonals adds up to 15, using numbers ranging from 1 to 9.When click the "check sum button" this application shouldSum up all rows, columns and diagonals and put the result in the corresponding box... Use if/else to check if all the results are 15, and congratulates the user if the answer is correct.The name of text boxes should be named appropriately.bonus (1pt) make the program check/give error message so that user will enter each number 1~9 only once.推荐答案 肯定会是。你到底有多远?It sure would be. How far have you gotten? 你是绝对正确的。这需要我的主持人帽子... 本网站的专家非常乐意帮助您解决问题,但他们无法为您完成任务/计划。首先尝试自己的作业/计划并发布有关您遇到的任何困难或有关您不知道如何实现的特定代码功能的问题。 请阅读发布指南,特别是课程作业发布指南。 然后当你准备发布一个新的这个帖子中的问题。 主持人You''re absolutely right. That calls for my moderator hat...The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don''t know how to achieve.Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.Then when you are ready post a new question in this thread.MODERATOR 这篇关于是否有可能在Javascript中制作像Magicsquare这样的游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 17:00
查看更多