官术网_书友最值得收藏!

Rules of the game

Here are the rules we will implement in the game:

  • Two players play turn by turn
  • Each player starts the game with 10 health, 10 food, and a 5-card hand
  • The players can't have more than 10 health and 10 food
  • A player loses when their food or health reaches zero
  • Both the players can lose in a draw
  • During one player's turn, each player's only possible action is to play a card, which is then put in the discard pile
  • Each player draws a card from the draw pile at the beginning of the turn (except for their first turn)
  • Thanks to the two preceding rules, each player has exactly five cards in their hand when they start their turn
  • If the draw pile is empty when the player draws a card, the draw pile is refilled with the discard pile
  • Cards can modify the health and food of the player or their opponent
  • Some cards can also make a player skip their turn

The gameplay is built around the facts that players must play one and only one card each turn and that most of the cards will have a negative effect on them (the most common one being losing food). You have to think of your strategy before playing.

The app will consists of two layers--the world, where game objects (such as the scenery and the castles) are drawn, and the user interface.

The world will have two castles facing each other, a ground, and a sky, with multiple animated clouds; each castle will feature two banners--the green one being the player food, and the red one being the player health--with a little bubble displaying the amount of food or health remaining:

For the UI, there will be a bar at the top, with a turn counter and the names of the two players. At the bottom of the screen, the hand will display the cards of the current player.

In addition to these, a few overlays will be periodically shown, hiding the hand. One will show the name of the player going next:

It will be followed by another overlay displaying the card that was played last turn by the opponent. This will allow the game to be played on the same screen (for example, a tablet).

The third overlay will be only shown when the game is over, displaying whether the players have won or lost. Clicking on this overlay will reload the page, allowing the players to start a new game.

主站蜘蛛池模板: 陇南市| 白山市| 固始县| 通化县| 鹰潭市| 牟定县| 肥东县| 恩平市| 贵港市| 孝昌县| 始兴县| 京山县| 无棣县| 邢台市| 平陆县| 阜南县| 集贤县| 汽车| 久治县| 托克逊县| 无极县| 泊头市| 张北县| 西林县| 嘉定区| 甘泉县| 阜宁县| 丹棱县| 荔波县| 潜山县| 罗甸县| 高淳县| 平武县| 关岭| 临朐县| 巴塘县| 额尔古纳市| 汽车| 凤台县| 成武县| 宣汉县|