tesuji.games.go
Class BoardMarker

java.lang.Object
  |
  +--tesuji.games.go.BoardMarker

public class BoardMarker
extends java.lang.Object

This is an important class that is used to mark points that have already been processed. Each time the method getNewMarker is called, the information is reset and all points are not marked.

Creation date: (17-May-01 2:50:11 PM)

Product: Tesuji Software Go Library.

Copyright (c) 2001 Tesuji Software B.V.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of a Tesuji Software shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of Tesuji Software.


Constructor Summary
BoardMarker()
           
 
Method Summary
 void getNewMarker()
          This causes all points previously marked as 'set' to be unmarked.
 boolean isSet(int xy)
          Test whether a point was already marked or not.
 boolean notSet(int xy)
          Test whether a point was already marked or not.
 void set(int xy)
          Mark a point as set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardMarker

public BoardMarker()
Method Detail

getNewMarker

public final void getNewMarker()
This causes all points previously marked as 'set' to be unmarked.

Creation date: (17-May-01 2:52:16 PM)


set

public final void set(int xy)
Mark a point as set.

Creation date: (17-May-01 2:55:38 PM)


notSet

public final boolean notSet(int xy)
Test whether a point was already marked or not.

Creation date: (17-May-01 2:53:28 PM)


isSet

public final boolean isSet(int xy)
Test whether a point was already marked or not.

Creation date: (17-May-01 2:53:28 PM)