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

📄 tictactoe.java

📁 tictactoc 井字游戏
💻 JAVA
字号:
package NetworkTicTacToe.client;

import game.basic.XYLocation;
import game.adversary.*;
import java.util.ArrayList;
import java.util.Hashtable;

public class TicTacToe extends Game {
    private XYLocation clickedLoc;

    public  TicTacToe(int level) {
        ArrayList moves= new ArrayList();
        for (int i=0;i<3;i++) {
            for (int j=0;j<3;j++) {
                XYLocation loc =  new XYLocation(i,j);
                moves.add(loc) ;
            }
        }

        initialState.put("moves",moves);
        initialState.put("player","X");
        initialState.put("utility",new Integer(0));
        initialState.put("board",new TicTacToeBoard());
        initialState.put("level",new Integer(0)) ;
        
         // 1 畓醇, 2 ゲ穖 6 

⌨️ 快捷键说明

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