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

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.

主站蜘蛛池模板: 南京市| 绥芬河市| 万荣县| 沙坪坝区| 南溪县| 沂水县| 乌兰浩特市| 庐江县| 互助| 三原县| 齐河县| 专栏| 贡嘎县| 缙云县| 安陆市| 浮山县| 壤塘县| 天镇县| 聊城市| 永登县| 确山县| 涿鹿县| 阳新县| 温宿县| 磐安县| 柳江县| 错那县| 肃宁县| 定远县| 阿拉善盟| 灵川县| 重庆市| 阿城市| 屏南县| 江阴市| 阜阳市| 泰宁县| 焦作市| 武城县| 三门县| 深州市|