This is the code to launch up a site to play quidditch with 14 players (7 on each team) and a game-master who overlooks the entire game settings. Players can chat in a chat-box and use commands to go through the game. The game ends when the snitch is caught and team with highest number of points wins. To login as a player, use id psw as written in code.
- Evade an incoming player.
- Activate: After Snatch by Opponent.
- Counter: None
- Effect: Reduces handling.
- Chance of Warning: No
- Cooldown: None
- Evade an incoming bludger.
- Activate: After Beat Bludger, Double Hit by Opponent.
- Counter: None
- Effect: Reduces handling.
- Chance of Warning: No
- Cooldown: None
- Disrupt a player's focus.
- Counter: None
- Effect: Reduces opponent’s morale.
- Chance of Warning: Yes
- Cooldown: 1 Action
- Pass the Quaffle to a teammate.
- Activate: If has Quaffle.
- Counter: None
- Effect: Increase scoring chance.
- Chance of Warning: No
- Cooldown: None
- Attempt to score in a goalpost.
- Activate: If has Quaffle.
- Counter: Block
- Effect: Reduces strength.
- Chance of Warning: No
- Cooldown: None
- Attempt a powerful or tricky shot to score.
- Activate: If has Quaffle.
- Counter: None
- Effect: Decreases strength and defense.
- Chance of Warning: No
- Cooldown: 2 Actions
- Attempt to pick up dropped Quaffle or snatch Quaffle from opponent.
- Activate: If not has Quaffle. No ongoing snatch event.
- Counter: Dodge Player
- Effect: Reduces opponent morale
- Chance of Warning: No
- Cooldown: None
- Wait for another action to be enabled.
- Counter: None
- Effect: No additional effect
- Chance of Warning: No
- Cooldown: None
- Disrupt a player's focus.
- Counter: None
- Effect: Reduces opponent’s morale.
- Chance of Warning: Yes
- Cooldown: 1 Action
- Protect other players.
- Activate: After Beat Bludger, Double Hit by Opponent.
- Counter: None
- Effect: Prevent bludger hit.
- Chance of Warning: No
- Cooldown: None
- Hit a bludger towards an opponent.
- Counter: Dodge Bludger, Defend, Beat Bludger
- Effect: Reduces opponent’s handling.
- Chance of Warning: No
- Cooldown: 1 Action
- Beat two bludgers in rapid succession.
- Activate: No incoming bludger towards beater
- Counter: Dodge Bludger, Defend
- Effect: Reduces defense and handling.
- Chance of Warning: No
- Cooldown: 2 Actions
- Wait for another action to be enabled.
- Counter: None
- Effect: No additional effect
- Chance of Warning: No
- Cooldown: None
- Evade a bludger.
- Activate: After Beat Bludger, Double Hit.
- Counter: None
- Effect: Reduces handling.
- Chance of Warning: No
- Cooldown: None
- Disrupt a player's focus.
- Counter: None
- Effect: Reduces opponent’s morale.
- Chance of Warning: Yes
- Cooldown: 1 Action
- Set up a defensive strategy.
- Counter: None
- Effect: Increases defense for the team.
- Chance of Warning: No
- Cooldown: 2 Actions
- Block a shot at the goalposts.
- Activate: After Shoot by Opponent.
- Counter: None
- Effect: Increases defense.
- Chance of Warning: No
- Cooldown: None
- Wait for another action to be enabled.
- Counter: None
- Effect: No additional effect
- Chance of Warning: No
- Cooldown: None
- Hover slowly in front of goal posts.
- Counter: None
- Effect: Increases defense, increases strength, decreases speed.
- Chance of Warning: No
- Cooldown: 1 Action
- Pass the Quaffle to a teammate.
- Activate: If has Quaffle.
- Counter: None
- Effect: No additional effect.
- Chance of Warning: No
- Cooldown: None
- Attempt to capture the Snitch.
- Activate: If snitch spotted.
- Counter: Dodge Bludger
- Effect: Reduces defense. Increase chance of losing sight of snitch.
- Chance of Warning: No
- Cooldown: None
- Evade an incoming bludger.
- Activate: After Beat Bludger, Double Hit.
- Counter: Dodge Bludger
- Effect: Reduces handling.
- Chance of Warning: No
- Cooldown: None
- Disrupt a player's focus.
- Counter: None
- Effect: Reduces opponent’s morale.
- Chance of Warning: Yes
- Cooldown: 1 Action
- Hover slowly to anticipate the Snitch's movements.
- Activate: If snitch not spotted.
- Counter: None
- Effect: Increases agility, reduces speed. Increases chance of spotting snitch.
- Chance of Warning: No
- Cooldown: 1 Action
- Wait for another action to be enabled.
- Counter: None
- Effect: No additional effect
- Chance of Warning: No
- Cooldown: None