Preparing your design workspace

Loading the problem and your saved attempt…

Design a Round-Based Tactical Shooter Match

Model teams, rounds, buying, money, a bomb objective, round outcomes, and simultaneous player actions for a team-versus-team tactical shooter match.

Design the game logic for a round-based, team-versus-team tactical shooter match, like Counter-Strike.

For this exercise, assume one match is played by two teams of five players: the attackers and the defenders. The first team to win 13 rounds wins the match. A match has at most 24 rounds, the teams swap sides after round 12, and a 12 to 12 score ends in a draw.

For this exercise, assume every round starts with a 20-second buy phase, followed by a live phase of up to two minutes. Every player starts each round alive with 100 health.

A game engine you do not design reports each hit as shooter, victim, weapon, and damage; when a player's health reaches zero, that player is dead until the next round and can no longer buy, pick up, plant, or defuse anything.

For this exercise, assume each player has a money balance that never goes above 16,000 and starts at 800 in the first round of each half. Players can buy only during the buy phase and only if they have enough money.

A player carries a knife plus at most one main weapon and one pistol; buying a weapon for a slot that is already filled is rejected. Defenders may also buy one defuse kit. At the end of a round, every player on the winning team receives 3,250 and every player on the losing team receives 1,400.

During the round, a player earns a kill reward whose amount depends on the weapon used. Players who survive a round keep their weapons and any defuse kit into the next round of the same half; players who die lose them.

For this exercise, assume one attacker carries the bomb at the start of each round. If the carrier dies, the bomb drops and any living attacker can pick it up. An attacker can plant the bomb only during the live phase, only inside bomb site A or B, and planting takes 3 seconds without interruption.

Once planted, the bomb explodes after 40 seconds and the round timer no longer matters. A living defender can defuse the planted bomb in 10 seconds, or in 5 seconds with a defuse kit; if the defender dies or stops, the defuse is cancelled and must start again from zero.

For this exercise, assume a round ends in exactly one of these ways. The attackers win if every defender is dead or the bomb explodes. The defenders win if every attacker is dead before a plant, the live phase ends without a plant, or the bomb is defused.

If every attacker dies after the plant, the round continues until the bomb explodes or is defused. If the last living attacker and the last living defender die at the same moment before a plant, the defenders win. Many players act at the same time, so several actions can arrive together.

Design the object model, focused contracts, and interactions for this match. Code is not required. Movement, aiming, hit detection, maps beyond the two named bomb sites, grenades, friendly fire, chat, matchmaking, ranking, networking, saving matches, reconnects, and overtime are outside scope.