?? computerplayer.java
字號(hào):
/** * Represents the basic computer player. * * @author Ian Braldey * @version 1.0 March 2008 */public class ComputerPlayer{ Board board; String playPiece; /** * Constructor for objects of class ComputerPlayer */ public ComputerPlayer(Board board, String playPiece) { this.board = board; this.playPiece = playPiece; } /** * The player's move. * Assumes there is still a space on the board. * * @return coord of cell used */ public Coord move() { Coord coord = board.getFirstEmptyCell(); board.setCell( coord, playPiece); return coord; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -