Not logged in. · Lost password · Register

Member since Dec 2019
2 posts
Subject: Kalah testing
I am having trouble testing the agent.
I tried the solutions provided here:…

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);;

but I get errors calling;

Can anybody tell me, how to run a game?

This post was edited on 2019-12-02, 17:39 by Nutzer2.
Member since Oct 2019
86 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