职位ID:151681

python 学校练习 英文

  • 合作方式:
  • 项目制 全国远程
  • 预估日薪:
  • 500
  • 预估总价:
  • 500元
  • 预估工时:
  • 1天
  • 所在区域:
  • 全国远程

需求描述

❤ Hearts ❤
In this assignment, you'll be using the more advanced concepts you've learned to build another text-based game, of the popular card game Hearts. More precisely, we will use rules of the variant called Black Lady, but we will use the name "Hearts" for simplicity.

In Hearts, players avoid certain cards and try to have the lowest score by the time one player eventually reaches 100.

It is usually played with 4 players, but many versions works with 3-5 (including ours).

You can learn the game using the online versions, like this one. The complete version of this assignment will follow almost the same rules as the one linked.

Be sure you are familiar with the game before getting started.

You will code the full set of rules, one part at a time, in the tasks.

One round of hearts (assuming 4 players)

Start a new deck (52 cards).

Deal 13 cards to each player.

Each player picks 3 cards to pass off to another player.

Players play all 13 tricks:

The player who has the Two of Clubs starts the leads the first trick by playing that card.

The winner of a trick scores all points from that trick, and leads the next trick.

There are 26 points in the deck:

Each card of the Hearts suit is worth 1 point.

The Queen of Spade is worth 13 points.

Rounds repeat until someone reaches a target score limit (usually 100 points), after which the player with the lowest score wins. If there are multiple players with the lowest score, rounds continue until a winner is decided.

Players attempt to minimise the number of points they score by avoiding winning tricks.

Special case:

If one player wins all 26 points within a round, they receive 0 points, while all others receive 26 (this is known as "Shooting the Moon")

投递职位 已有16人投递,发布人 点此登录 后查看。

信用行为

  • 发布项目
    2
  • 订单总数
    0
  • 退款单数
    0

完善简历

工程师完善技术能力和项目经验,更易接到订单

发布任务

企业点击发布任务,工程师会在任务下报名,招聘专员也会在1小时内与您联系,1小时内精准确定人才

微信客服

需求方请加需求方端客服沟通需求,工程师请加工程师端客服浏览推送职位

需求方端客服
工程师端客服
联系需求方端客服