📄 user.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 + -