Disclaimer: Dieser Thread wurde aus dem alten Forum importiert. Daher werden eventuell nicht alle Formatierungen richtig angezeigt. Der ursprüngliche Thread beginnt im zweiten Post dieses Threads.
Kalah testing
Hello,
I am having trouble testing the agent.
I tried the solutions provided here:
https://fsi.cs.fau.de/forum/thread/15454-Kalah-zum-Laufen-bringen
package info.kwarc.teaching.AI.Kalah;
import info.kwarc.teaching.AI.Kalah.Agents.Agent;
import info.kwarc.teaching.AI.Kalah.Agents.HumanPlayer;
import info.kwarc.teaching.AI.Kalah.Agents.RandomPlayer;
import info.kwarc.teaching.AI.Kalah.Interfaces.Fancy;
import info.kwarc.teaching.AI.Kalah.Interfaces.Interface;
public class JTest {
public static void main(String[] args) {
Interface intf = new Fancy.FancyInterface(12);
Agent pl1 = new HumanPlayer(“Hansel”);
Agent pl2 = new RandomPlayer(“Hurtz”);
Game game = new Game(pl1,pl2,intf,12,12);
game.play();
}
}
but I get errors calling
game.play();
Can anybody tell me, how to run a game?
Thanks!
Did you try running [m]object Test[/m] (Test.scala)?