Skip to content

Commit 4b442ca

Browse files
committed
Add Player to the top namespace.
Just to make it like the Axelrod library. Also minor tidy of the import in player.py.
1 parent 5e37382 commit 4b442ca

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/axelrod_fortran/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
__version__ = "0.1.0"
2+
3+
from .player import Player

src/axelrod_fortran/player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axelrod.player as axl
1+
import axelrod as axl
22
from axelrod.interaction_utils import compute_final_score
33
from axelrod.action import Action
44
from axelrod import Game

tests/test_player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from axelrod_fortran.strategies import all_strategies
2-
from axelrod_fortran.player import Player
2+
from axelrod_fortran import Player
33
from axelrod import Alternator, Cooperator, Defector, Match, Game
44
from axelrod.action import Action
55
from ctypes import c_int, c_float, POINTER

0 commit comments

Comments
 (0)