Esempio n. 1
0
        public void replay(User user)
        {
            if (RootId != user.Id)
            {
                throw new Exception("");
            }
            if (_roomState.getStateCode() != nameof(EndState))
            {
                throw new Exception("");
            }

            lock (MakedMovePlayerIds)
            {
                MakedMovePlayerIds.Clear();
            }

            changeState(new WaitingPlayersState(this));
        }