Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: ChessMind for a ChessWorld

  1. #1
    Member
    Join Date
    Nov 2012
    Posts
    49
    My Mood
    Amused
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default ChessMind for a ChessWorld

    HI,

    I'm not sure which section this would go in.

    I have to write a ChessMind for an assignment. It's for a ChessWorld where minds can run each other and take each others pieces.

    I need help on how to actually start it. I know if I can get one piece to work I can figure the rest out..

    Here's the skeleton for it..

     
    import org.w2mind.net.*;
     
    public class Skeleton Mind implements Mind {
     
     
     
    	public void endrun() throws RunError {
     
    	}
    	public void newrun() throws RunError {
     
    	}
     
    	public Action getaction(State s) throws RunError {
    		// always try to move the same pawn, causing an invalid move forfeit quickly
    		String fen = s.toString();
    		return new Action("12,28");
    	}
    }

    Any advice to get it started is greatly appreciated..

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: ChessMind for a ChessWorld

    Can you explain what problems you are having?

    I've never seen the package that the code is using.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member
    Join Date
    Nov 2012
    Posts
    49
    My Mood
    Amused
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Re: ChessMind for a ChessWorld

    We have to design moves for a ChessWorld and upload them to the world.

    This might explain it a bit better

    CA318 practical

    or this

    The World-Wide-Mind project

    I basically don't know how to get it started. If I can get one chess piece to move then I will be able to code the rest. It's just the initial start..

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: ChessMind for a ChessWorld

    Sorry, I know nothing about that package. Is there a forum for its users? This forum is for helping java programmers. If you have questions about how to write a java program using the Java SE classes, post them here. I don't know where you can post questions about the package you are using.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Member
    Join Date
    Nov 2012
    Posts
    49
    My Mood
    Amused
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Re: ChessMind for a ChessWorld

    No, there's no forums what so ever. It's a pain I know. Just thought I'd give this a try..

    Thanks for the info..

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: ChessMind for a ChessWorld

    There are several others here, maybe someone else knows about it.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Member
    Join Date
    Nov 2012
    Posts
    49
    My Mood
    Amused
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Re: ChessMind for a ChessWorld

    We have to program chess moves using Forsyth Edwards Notation ..