core package

Module contents

This is the Core package of the Game, it contains the primary classes of the game that are all needed to start a series of games between two random players.

Importation

The clean way to import the core package is:

from core import *

This may seem like a bad idea but the importation process in controlled in the core/__init__.py file. All the following classes will be imported:

Use

To use the imported classes, just write:

game = Game()
bAndR = BoardAndRules()  # etc...

no need to use core.Game.Game().

This is made possible thanks to the use of from core.Game import Game in the core/__init__.py file.