![]() |
In tic tac toe what is the fewest moves your opponent..
In tic tac toe what is the fewest moves your opponet can make before you know you can win?
|
:321GFY + :321GFY = 2
|
one if you go first.
|
YOU GOTTA BE FUCKIN KIDDING!
|
using System;
using System.Collections; using System.Drawing; namespace tictactoe_basic { /// <summary> /// Summary description for TTTModel. /// </summary> public class TTTModel { private Players mPlayers = new Players(); private StatusDetector mStatus = new StatusDetector_Hardcoded(); private TTTBoard mBoard = new TTTBoard(); public TTTModel() { mBoard.NewGame(); } public delegate void UpdatedModel(); public event UpdatedModel Updated; public StatusDetector.ResultEnum Result { get { return mStatus.GetStatus(mBoard); } } public bool MyTurn { get { return mPlayers.MyTurn; } } public void SetPlayerType(Player p) { mPlayers.SetPlayerType(p); } public void MakeMove(GridCoordinate gc) { if (Result != StatusDetector.ResultEnum.NotDone) return; if (mBoard.CellOccupied(gc)) return; mPlayers.Move(mBoard, gc); mPlayers.NextPlayer(); NotifyOfUpdate(); if (Result != StatusDetector.ResultEnum.NotDone) return; if (!mPlayers.CurrentPlayerIsHuman()) { mPlayers.Move(mBoard, mPlayers.CurrentPlayersMove(mBoard)); mPlayers.NextPlayer(); NotifyOfUpdate(); } } public bool CellIsX(GridCoordinate gc) { return mBoard.CellIsX(gc); } public bool CellIsO(GridCoordinate gc) { return mBoard.CellIsO(gc); } public void NewGame() { mPlayers.NewGame(); mStatus.NewGame(); mBoard.NewGame(); NotifyOfUpdate(); } public GridCoordinate GetWinnerSlashStart { get {return mStatus.GetWinnerSlashStart; } } public GridCoordinate GetWinnerSlashEnd { get {return mStatus.GetWinnerSlashEnd; } } private void NotifyOfUpdate() { if (Updated != null) Updated(); } } } |
All times are GMT -7. The time now is 09:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123