> For the complete documentation index, see [llms.txt](https://ethan-lin.gitbook.io/refactoring/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui.md).

# 镶金玫瑰

- [项目导学](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/index.md)
- [题目介绍](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/1-project-description.md)
- [项目剖析](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/2-project-analyze.md)
- [任务1：初体验](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/3-task-1.md)
- [任务2：添加安全网](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/4-task-2.md)
- [任务3：简单清扫](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/5-task-3.md)
- [任务4：重组逻辑](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/6-task-4.md)
- [任务5：消除魔法字符串](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/7-task-5.md)
- [任务6：创建子类](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/8-task-6.md)
- [演示：以多态取代条件表达式](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/9-example-i.md)
- [任务7：添加结构](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/10-task-7.md)
- [任务8：反转条件逻辑](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/11-task-8.md)
- [任务9：夺取最后的胜利](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/12-task-9.md)
- [任务10：打扫战场](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/13-task-10.md)
- [任务11：再撸一遍](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/14-task-11.md)
- [项目总结](https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui/15-project-summary.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ethan-lin.gitbook.io/refactoring/xiang-jin-mei-gui.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
