34 lines
1.1 KiB
Markdown
34 lines
1.1 KiB
Markdown
---
|
||
id: 5e46f8d6ac417301a38fb92d
|
||
title: 剪刀石头布
|
||
challengeType: 10
|
||
forumTopicId: 462376
|
||
dashedName: rock-paper-scissors
|
||
---
|
||
|
||
# --description--
|
||
|
||
在这个挑战中,你将创建一个程序来玩石头、剪刀、布。 一个随机选取的程序通常会有 50% 的时间获胜。 要通过这一挑战,你的程序必须与四个不同的机器人进行对战,并达到至少 60% 胜率。
|
||
|
||
你可以访问 [Replit 上的完整项目描述和启动代码](https://replit.com/github/freeCodeCamp/boilerplate-rock-paper-scissors)。
|
||
|
||
进入该链接后,fork 该项目。 一旦你根据 “README.md” 中的说明完成了项目,请在下面提交你的项目链接。
|
||
|
||
我们仍在开发机器学习课程的交互式课程部分。 现在,你需要使用其他资源来学习如何通过这一挑战。
|
||
|
||
# --hints--
|
||
|
||
它应该通过所有的 Python 测试。
|
||
|
||
```js
|
||
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```py
|
||
# Python challenges don't need solutions,
|
||
# because they would need to be tested against a full working project.
|
||
# Please check our contributing guidelines to learn more.
|
||
```
|