Not logged in. · Lost password · Register

Nutzer2
Member for 2 weeks
1 post
Subject: 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-…

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!
This post was edited on 2019-12-02, 18:39 by Nutzer2.
katjab
Member for 2 months
54 posts
Did you try running object Test (Test.scala)?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Datenschutz | Kontakt
Powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2011 by Yves Goergen