?? tictactoe.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 + -