from random import seed

from olgaming.player import Player
from olgaming.players import bot


def test_bot():

    player = bot.Bot(index=1)

    assert isinstance(player, Player)

    seed(8)
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 2
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 3
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 4
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 2

    assert player.take("consequence") is None

from random import seed

from olgaming.player import Player
from olgaming.players import bot


def test_bot():

    player = bot.Bot(index=1)

    assert isinstance(player, Player)

    seed(8)
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 2
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 3
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 4
    assert player.action("gstate", actions=[1, 2, 3, 4]) == 2

    assert player.take("consequence") is None
