⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tictactoeboard.java

📁 java 完全探索的随书源码
💻 JAVA
字号:
import java.net.*;import java.io.*;public class TicTacToeBoard{  private String[] board = new String[9];  public TicTacToeBoard()  {    super();  }  public boolean isWinning()  {    // The algorithm here to see if any combination is a winner    // return some value for now    return false;  }  public TicTacToeMoveResult addNewMove( TicTacToeMove nextMove )  {    // validate the move for the client and return a result    return new TicTacToeMoveResult();  }  public void sendObject( TicTacToeMove move, Socket socket )  {    try    {      ObjectOutputStream outStr = new ObjectOutputStream( socket.getOutputStream() );      outStr.writeObject( move );    }    catch( InvalidClassException ex )    {      ex.printStackTrace();    }    catch( IOException ex )    {      ex.printStackTrace();    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -