你会如何设计大富翁?
可能的重复:
OOD 中的垄断游戏?
前几天的采访中我被问到了这个问题。显然它非常广泛,你不可能在短时间内涵盖所有内容。但我不确定我是否很好地回答了这个问题。最重要的是哪类事情值得提及?
在我被问到的问题的版本中,假设有 4 名玩家远程参与,游戏的简化版本 - 玩家可以滚动,他们可以购买财产,他们可以向其他玩家支付租金。
Possible Duplicate:
Monopoly game in OOD?
I got asked this question in an interview the other day. Obviously it's very broad and there's no way you're going to cover everything in the short amount of time you have. I'm not sure I did a good job of answering the question however. What sort of things are the most important to mention?
In the version of the question I was asked, assume there are 4 players who are participating remotely, and a simplified version of the game - players can roll, they can buy property, and they can pay rent to other players.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们很可能正在寻找您对对象的理解并将这些对象联系起来。甚至可能是数据库中的条目以及它们之间的链接(玩家、属性以及链接到对象的属性)。
They were most likely looking for your understanding of objects and linking those objects. Perhaps even entries in a database and links between them (players, and properties, and the properties linked to the objects).
我认为问题中的关键词是“远程”所以我认为他们关注的是玩家如何与彼此和服务器交互?
您的答案中要涵盖的项目可能包括:
吗?但是,如果问题是关于一般编程,我想你会谈论继承和对象、接口、数据库设计等。
I think the key word in the question is "remotely" So I think they were after how the players would interact with each other and the server?
Items to cover in your answer could include:
However if the question was about programming in general I guess you would talk about inheritance and objects, Interfaces, database design etc.