Add 'Programming/ProgLab2/' from commit '20f33961b8c264e4cdcac7e6cdd7a7bfb744cc93'
git-subtree-dir: Programming/ProgLab2 git-subtree-mainline:148a148266git-subtree-split:20f33961b8
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package main;
|
||||
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
import pokemons.*;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args){
|
||||
Battle b = new Battle();
|
||||
Pokemon p1 = new Dialga("Dialga", 1);
|
||||
Pokemon p2 = new Cranidos("Cranidos", 1);
|
||||
Pokemon p3 = new Rampardos("Rampardos", 1);
|
||||
Pokemon p4 = new NidoranF("NidoranF", 1);
|
||||
Pokemon p5 = new Nidorina("Nidorina", 1);
|
||||
Pokemon p6 = new Nidoqueen("Nidoqueen", 1);
|
||||
b.addAlly(p1);
|
||||
b.addAlly(p2);
|
||||
b.addAlly(p3);
|
||||
b.addFoe(p4);
|
||||
b.addFoe(p5);
|
||||
b.addFoe(p6);
|
||||
b.go();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user