entities

package
v0.0.0-...-c7e3676 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorConf

type ConnectorConf struct {
	Server           Server
	User             User
	MatchApplication MatchApplication
}

ConnectorConf - 参加設定。

func (ConnectorConf) ApplyFromMe

func (config ConnectorConf) ApplyFromMe() bool

ApplyFromMe - 自分の方から申し込むなら true, 申し込みを受けるのを待つ方なら false。 true にしたなら、 OpponentName も設定してください

func (ConnectorConf) AvailableTimeMinutes

func (config ConnectorConf) AvailableTimeMinutes() uint

AvailableTimeMinutes - 持ち時間(分)

func (ConnectorConf) BoardSize

func (config ConnectorConf) BoardSize() uint

BoardSize - 何路盤

func (ConnectorConf) CanadianTiming

func (config ConnectorConf) CanadianTiming() uint

CanadianTiming - カナダ式秒読み。25手を何分以内に打てばよいか

func (ConnectorConf) EngineCommand

func (config ConnectorConf) EngineCommand() string

EngineCommand - 思考エンジンを起動するコマンドの実行ファイル名の部分(OSにより書き方が異なるかも)

func (ConnectorConf) EngineCommandOption

func (config ConnectorConf) EngineCommandOption() string

EngineCommandOption - 思考エンジンを起動するコマンドの半角スペース区切りの引数(OSにより書き方が異なるかも)

func (ConnectorConf) Host

func (config ConnectorConf) Host() string

Host - 接続先ホスト名

func (ConnectorConf) InterfaceType

func (config ConnectorConf) InterfaceType() string

InterfaceType - プレイヤーの種類 * `Human` - 人間プレイヤーが接続する * `GTP` - GTP(碁テキスト プロトコル)を用いる思考エンジンが接続する

func (ConnectorConf) MyColor

func (config ConnectorConf) MyColor() (phase.Phase, string)

MyColor - 自分の石の色

func (ConnectorConf) OpponentName

func (config ConnectorConf) OpponentName() string

OpponentName - 自分の方から申し込むなら、対戦相手のアカウント名も指定してください。そうでないなら無視されます

func (ConnectorConf) Pass

func (config ConnectorConf) Pass() string

Pass - 何路盤

func (ConnectorConf) Phase

func (config ConnectorConf) Phase() string

Phase - 自分の色

func (ConnectorConf) Port

func (config ConnectorConf) Port() uint

Port - 接続先ホストのポート番号

func (ConnectorConf) UserName

func (config ConnectorConf) UserName() string

UserName - 対局者名(アカウント名) Only A-Z a-z 0-9 Names may be at most 10 characters long

type MatchApplication

type MatchApplication struct {
	ApplyFromMe          bool
	OpponentName         string
	Phase                string
	BoardSize            int64
	AvailableTimeMinutes int64
	CanadianTiming       int64
}

MatchApplication - MatchApplication 区画。

type Server

type Server struct {
	Host string
	Port int64 // Tomlのライブラリーが精度を細かく指定できないので int64 型で。
}

Server - Server 区画。

type User

type User struct {
	// InterfaceType - プレイヤーの種類
	// * `Human` - 人間プレイヤーが接続する
	// * `GTP` - GTP(碁テキスト プロトコル)を用いる思考エンジンが接続する
	InterfaceType string
	// Name - 対局者名(アカウント名)
	// Only A-Z a-z 0-9
	// Names may be at most 10 characters long
	Name                string
	Pass                string
	EngineCommand       string
	EngineCommandOption string
}

User - User 区画。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL