📄 thinkerrequest.java
字号:
package edu.rit.cs.mlr5773.connectfour;/** * Encapsulates a request to a Thinker to evaluate a board * * @author Mark Roth */public class ThinkerRequest implements java.io.Serializable { /** The board to evaluate */ private Board board; /** The current player */ private int currentPlayer; /** What move to evaluate */ private int move; /** * Creates a new Thinker request. */ public ThinkerRequest( Board board, int currentPlayer, int move ) { this.board = board; this.currentPlayer = currentPlayer; this.move = move; } /** * Flattens this request into a single-line String that can be * more easily transported across a network. */ public String encode() { return "" + currentPlayer + " " + move + " " + board.encode(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -