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

📄 user.java

📁 This the OXO example code plus the presentation. It is intended to provide you with some clues about
💻 JAVA
字号:
/** * Write a description of class User here. *  * @author (your name)  * @version (a version number or a date) */public class User{    Board board;    String playPiece;    /**     * Constructor for objects of class User     */    public User(Board board, String playPiece)    {        this.board = board;        this.playPiece = playPiece;    }	/**	 *  Updates the	internal state of the game by 	 *	placing the current move string in the correct board cell	 *		 * @param	squareNumber  range 0 to 8, used to identify the button	 */	public void move(int squareNumber )	{		int r = squareNumber / 3;		int c = squareNumber % 3;		Coord coord = new Coord(r,c);		board.setCell( coord, playPiece);	}}

⌨️ 快捷键说明

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