public void Should_be_returned_all_initials_moves()
        {
            var allInitialsMoves = GetAllMoveBaseClass().Select(x => x.InitialMove);

            var containerInitials = ContainerMoves.GetAllInitials();

            containerInitials.Should().BeEquivalentTo(allInitialsMoves);
        }
        public void Should_be_recorded_all_moves()
        {
            var allMoves = GetAllMoveBaseClass();

            var containerMoves = ContainerMoves.GetAllMoves();

            containerMoves.Should().BeEquivalentTo(allMoves);
        }
Пример #3
0
 private static MoveBase FindPlayerMove(Player player)
 {
     return(ContainerMoves.GetAllMoves().Find(move => move.Rule(player.Move)));
 }
Пример #4
0
        public static bool MoveIsValid(string move)
        {
            var allInitialsMoves = ContainerMoves.GetAllInitials();

            return(allInitialsMoves.Contains(move));
        }