コード例 #1
0
ファイル: GomokuFactory.cs プロジェクト: dylech30th/GomokuQQ
        public static PlayGround GetOrCreatePlayGround(string group)
        {
            if (Games.ContainsKey(group))
            {
                return(Games[group]);
            }

            Games[group] = new PlayGround(group);
            return(Games[group]);
        }
コード例 #2
0
ファイル: GomokuFactory.cs プロジェクト: dylech30th/GomokuQQ
        public static bool TryGetPlayGround(string group, out PlayGround playGround)
        {
            if (Games.ContainsKey(group))
            {
                playGround = Games[group];
                return(true);
            }

            playGround = null;
            return(false);
        }