编一个游戏..求救~~

piaoyanglvcha 2008-12-16 01:51:28
城堡救公主的题..求好心人帮忙了..~>-<~

Adventure is a CLI game. The player has to explore in the castle with many levels and a lot of rooms. The task of the player is to find a room where the princess is prinsoned and take her leave the castle. There are many types of rooms, and each type of room has different types of exits. Note that there's a monster in one of the rooms, which the exact location is not able to be aware. But once the player meets a monster, the game is over.

When the game starts, the player is at the lobby of the castle. Then the program shows information about the lobby:name of the room, how many exits are there, and names of all exits (e.g.: "east", "south", "up"), like:

Welcome to the lobby. There are 3 exits as: east, west and up.
Enter your command:

The player then can input "go" followed by the name of one exit to enter the room connected with that door, like:
go east

The players goes into the room to the east. The program shows the information about that room, like what happened in the lobby just now. And the player may input command to choose another room.

Onece the player enters a room with a monster, the program shows a message and game over. Once the player enters the room of princess, the program shows a message about the princess, and the process is going to leave with the player. The player then has to find their way out the castle. The only way to leave the castle is via the lobby.

All printed messages and user input are in English to simplify the code.

Requirement
At least three different kinds of room;
At least five rooms;
The room with monster or princess is randomly set.

自己超级菜..帮忙哪..
...全文
258 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
piaoyanglvcha 2008-12-17
  • 打赏
  • 举报
回复
伤心........
dyengying 2008-12-17
  • 打赏
  • 举报
回复
E文看不懂
wwmwenzhu 2008-12-16
  • 打赏
  • 举报
回复
不好玩,没创意!!

65,211

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧