init
This commit is contained in:
23
Question13-Extends/src/PTra13_05.java
Normal file
23
Question13-Extends/src/PTra13_05.java
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* PTra13_05.java
|
||||
* 作成 Rhizome
|
||||
*------------------------------------------------------------
|
||||
* Copyright(c) Rhizome Inc. All Rights Reserved.
|
||||
*/
|
||||
|
||||
public class PTra13_05 {
|
||||
public static void main(String[] args) {
|
||||
//※この問題はPTra13_03、PTra13_04で作成したHero、Slimeクラスを使用して解いてください。
|
||||
// TODO HeroインスタンスとSlimeインスタンスを作成し、それぞれの名前に"勇者", "スライム"を設定してください
|
||||
|
||||
/*
|
||||
* TODO HeroとSlimeを、どちらかが体力0になるまで戦わせます
|
||||
*
|
||||
* ●Heroの攻撃 -> ダメージ判定 -> Slimeの攻撃 -> ダメージ判定
|
||||
* 上記を繰り返し行います
|
||||
*
|
||||
* 戦いが終了したら、勝利した方の出力を行ってください。「○○は■■との戦闘に勝利した」
|
||||
*/
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user