| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 1024 MB | 54 | 37 | 24 | 80.000% |
Welcome to the world of Heroes of Velmar, the critically acclaimed trading card game developed by Sidney Games! After the tremendous success of the physical card game, Sidney Games has decided to take it to the next level and transform it into an immersive video game experience.
As Sidney Games embarks on this ambitious video game project, they seek the expertise of talented developers like you to bring this digital version to life. The challenge lies in coding the algorithm that determines the winner in the virtual battles that unfold between players. The video game will need to retain the same core mechanics as the original card game, where players compete on three distinct locations over six turns, with abilities and power levels shaping the outcomes.
The full rules of the game are listed below. You are given the state of the locations after Setup and Gameplay have finished and the End of the Game has been reached. Sidney Games has tasked you with implementing the Location Resolution part of the game rules, including the application of Special Abilities, to determine the winner.
The game designers have provided you with images of the cards as well as a JSON file with their specifications.
Objective
The objective of the two-player card game Heroes of Velmar is to win more locations than the opponent over six turns. If there is a tie, the total power level across all locations acts as a tiebreaker.
Setup
Gameplay
End of the Game
Location Resolution
Special Abilities
The game Heroes of Velmar offers a mix of strategic card play, resource management, and tactical decision-making. Players must choose their heroes wisely, coordinate their plays, and employ their unique abilities to outwit their opponents and emerge victorious in the epic battle for control over Velmar!
Card design
Card Explanation:
Input consists of six lines representing the state of the three locations after six turns of play. This means that there will be at most 24 cards total listed in the input.
First the left location is described, then the center location is described, and finally the right location is described. Each location is described by two lines, the first of which represents player 1's cards and the second of which represents player 2's cards. Each line lists the number of cards in the line and then the names of the cards played by the player, separated by spaces. There will be at most four cards in each line.
Note that a player may leave a location empty. Each input is guaranteed to be a valid reachable final game state according to the game rules.
Output "Player 1" if player 1 won, "Player 2" if player 2 won, or "Tie" if there was no victor.
3 Shadow Seraphina Ironwood 2 Voidclaw Voidclaw 1 Vexia 0 1 Ranger 0
Player 1
1 Guardian 1 Anvil 2 Seraphina Seraphina 1 Ranger 2 Ironwood Ranger 1 Guardian
Tie
1 Guardian 1 Anvil 2 Seraphina Seraphina 1 Ranger 1 Ironwood 1 Guardian
Player 2
ICPC > Regionals > Europe > Northwestern European Regional Contest > Nordic Collegiate Programming Contest > NCPC 2023 H번