Clash of Clans is an online multiplayer game in which players form communities called clans, train troops, and attack other players to earn resources. There are four currencies or resources in the game. Gold and elixir can be used to build and reload defenses that protect the player from other players' attacks. Elixir and dark elixir are also used to train and upgrade troops and spells. Gems are the premium currency. Attacks are rated on a three-star scale and have a maximum timed length of three minutes.