Class GameTypeToken

  • All Implemented Interfaces:
    InfoToken

    public class GameTypeToken
    extends NumberToken
    implements InfoToken
    The type of game in this SGF stream. Normally, a program won't continue if it doesn't read a 1 in this token which indicates a game of Go:
      1      - Go
      6      - Backgammon
      9      - Lines of Action
      11     - Hex
      18     - Amazons
     
    • Constructor Summary

      Constructors 
      Constructor Description
      GameTypeToken()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected float getDefault()
      Presume the SGF file is a game of Go, by default.
      int getType()  
      • Methods inherited from class com.barrybecker4.ca.dj.jigo.sgf.tokens.TextToken

        getText
      • Methods inherited from class com.barrybecker4.ca.dj.jigo.sgf.tokens.SGFToken

        parse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GameTypeToken

        public GameTypeToken()
    • Method Detail

      • getDefault

        protected float getDefault()
        Presume the SGF file is a game of Go, by default.
        Specified by:
        getDefault in class NumberToken
      • getType

        public int getType()