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

📄 player.java

📁 ParallelConnectFour是一个java小游戏
💻 JAVA
字号:
package edu.rit.cs.mlr5773.connectfour;/** * Abstract Player class.  Each player must implement move(), which * should call game.move( move ), passing the desired move to be made. *  * @author Mark Roth */public abstract class Player {  /** The game object to perform moves on */  protected ConnectFourGame game;  /** The color for this player.  1 = Red, 2 = Black. */  protected int player;  /**   * Creates a new Player.  Each player knows, at minimum, the game being   * played, and its own color.   */  public Player( ConnectFourGame game, int player ) {    this.game = game;    this.player = player;  }  /**   * Process a request by the game to take the next turn.   */  public abstract void move();}

⌨️ 快捷键说明

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