Game¶
-
class
games.spiders.game.
Game
¶ Bases:
joueur.base_game.BaseGame
The class representing the Game in the Spiders game.
There’s an infestation of enemy spiders challenging your queen BroodMother spider! Protect her and attack the other BroodMother in this turn based, node based, game.
-
property
current_player
¶ The player whose turn it is currently. That player can send commands. Other players cannot.
-
property
current_turn
¶ The current turn number, starting at 0 for the first player’s turn.
- Type
int
-
property
cut_speed
¶ The speed at which Cutters work to do cut Webs.
- Type
int
-
property
eggs_scalar
¶ Constant used to calculate how many eggs BroodMothers get on their owner’s turns.
- Type
float
-
property
game_objects
¶ A mapping of every game object’s ID to the actual game object. Primarily used by the server and client to easily refer to the game objects via ID.
- Type
dict[str, games.spiders.game_object.GameObject]
-
get_game_object
(id: str) → Optional[joueur.base_game_object.BaseGameObject]¶ gets the game object with the given id, or None
- Returns
BaseGameObject in the game with the given id, or None if not found
-
property
initial_web_strength
¶ The starting strength for Webs.
- Type
int
-
property
max_turns
¶ The maximum number of turns before the game will automatically end.
- Type
int
-
property
max_web_strength
¶ The maximum strength a web can be strengthened to.
- Type
int
-
property
movement_speed
¶ The speed at which Spiderlings move on Webs.
- Type
int
-
property
nests
¶ Every Nest in the game.
- Type
list[games.spiders.nest.Nest]
-
property
players
¶ List of all the players in the game.
- Type
-
property
session
¶ A unique identifier for the game instance that is being played.
- Type
str
-
property
spit_speed
¶ The speed at which Spitters work to spit new Webs.
- Type
int
-
property
time_added_per_turn
¶ The amount of time (in nano-seconds) added after each player performs a turn.
- Type
int
-
property
weave_power
¶ How much web strength is added or removed from Webs when they are weaved.
- Type
int
-
property
weave_speed
¶ The speed at which Weavers work to do strengthens and weakens on Webs.
- Type
int
-
property
webs
¶ Every Web in the game.
- Type
list[games.spiders.web.Web]
-
property