Skip to content

Commit

Permalink
Rechange range of player ids from 1-3 to 0-2.
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Jul 16, 2013
1 parent 2b25363 commit f221d32
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGES.jp.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
CHANGES
========================

- 2013/07/15 Version 1.0.2
- メッセージ中のプレイヤー番号が0から2であったのを1から3に修正

- 2013/07/15 Version 1.0.1
- 画面描画のバグ修正、ゲーム中の文言を修正
- プレイヤーIDの範囲を0-2から1-3へ変更
Expand Down
2 changes: 1 addition & 1 deletion QUICK_RULEBOOK.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
以下の形式でAIに対するフィールドの情報が標準入力を介して与えられる。

START
ターン番号 最大ターン番号 プレイヤーのID(1-3)
ターン番号 最大ターン番号 プレイヤーのID(0-2)
フィールドの幅 タイルの数
タイル1のx座標 y座標 所有者のID ロボットの数 資源数 地形情報 建物
タイル2のx座標 y座標 所有者のID ロボットの数 資源数 地形情報 建物
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "Terraforming"

version := "1.0.1"
version := "1.0.2"

scalaVersion := "2.9.2"

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>net.javachallenge</groupId>
<artifactId>Terraforming</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/net/aicomp/terraforming/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ object Main {
}

def initializeManipulators(cl: CommandLine, env: GameEnvironment, userStartManipulator: StartManipulator, userGameManipulator: GameManipulator) = {
val nums = Vector(1 to 3: _*)
val nums = Vector(0 to 2: _*)
val players = nums.map(new Player(_))
val nUsers = allCatch opt math.max(0, cl.getOptionValue(USER_PLAYERS).toInt) getOrElse (0)
val externalCmds = getOptionsValuesWithoutNull(cl, EXTERNAL_AI_PROGRAM)
Expand Down Expand Up @@ -278,7 +278,7 @@ object Main {
val logScrollPane = new JScrollPane(logArea)
val commandField = new JTextField()

val ret = builder.setTitle("Terraforming version 1.0.1")
val ret = builder.setTitle("Terraforming version 1.0.2")
.setWindowSize(1024, 740)
.setPanelSize(1024, 495)
.setWindowCreator(new WindowCreator() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ class PlayerScene(nextScene: Scene[GameEnvironment],
}

private def displayPromptForPlayer() {
displayLine("Please enter a name of Player " + game.currentPlayer.id + ".")
displayLine("Please enter a name of Player " + (game.currentPlayerIndex + 1) + ".")
}
}

0 comments on commit f221d32

Please sign in to comment.