Skip to content

Commit

Permalink
Update example imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Marion committed Dec 28, 2018
1 parent 8073753 commit fe05560
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
Welcome to gameai! This package contains a series of well-defined abstractions that are common in AI, such as a games, agents, and trainers which optimize the behavior of agents. As long as a class inherits from the base implemetation of a primitive (e.g. `Agent`) and implements the required methods, it can be used in place of the standard implementations given. To get started:

```python
from games import TicTacToe
from agents import RandomAgent, MCTSAgent
from core import Arena, Player
from gameai.games import TicTacToe
from gameai.agents import RandomAgent, MCTSAgent
from gameai.core import Arena, Player

# Create our game
game = TicTacToe()
Expand Down
6 changes: 3 additions & 3 deletions examples/random_vs_mcts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from games import TicTacToe
from agents import RandomAgent, MCTSAgent
from core import Arena, Player
from gameai.games import TicTacToe
from gameai.agents import RandomAgent, MCTSAgent
from gameai.core import Arena, Player


def play():
Expand Down
2 changes: 1 addition & 1 deletion gameai/agents/trainable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TrainableAgent(Agent):

def train(self, g, **kwargs):
'''
Train the agent. As a convenience this should return self.training_params()
Train the agent. As a convenience this should return :code:`self.training_params()`
at the end of training
'''
raise NotImplementedError
Expand Down
6 changes: 3 additions & 3 deletions sphynx/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Basic Example

.. code-block:: python
from games import TicTacToe
from agents import RandomAgent, MCTSAgent
from core import Arena, Player
from gameai.games import TicTacToe
from gameai.agents import RandomAgent, MCTSAgent
from gameai.core import Arena, Player
# Create our game
game = TicTacToe()
Expand Down

0 comments on commit fe05560

Please sign in to comment.