Documentation ¶
Index ¶
- func ColumnAlphabetToNumber(move string) int
- type Chatter
- func (chatter Chatter) Debug(text string, args ...interface{})
- func (chatter Chatter) Error(text string, args ...interface{})
- func (chatter Chatter) Fatal(text string, args ...interface{})
- func (chatter Chatter) Info(text string, args ...interface{})
- func (chatter Chatter) Notice(text string, args ...interface{})
- func (chatter Chatter) Print(text string, args ...interface{})
- func (chatter Chatter) Send(conn net.Conn, text string, args ...interface{})
- func (chatter Chatter) Trace(text string, args ...interface{})
- func (chatter Chatter) Warn(text string, args ...interface{})
- type GlobalVariables
- type Logger
- func (logger Logger) Debug(text string, args ...interface{})
- func (logger Logger) Error(text string, args ...interface{})
- func (logger Logger) Fatal(text string, args ...interface{})
- func (logger Logger) Info(text string, args ...interface{})
- func (logger Logger) Notice(text string, args ...interface{})
- func (logger Logger) Print(text string, args ...interface{})
- func (logger Logger) Trace(text string, args ...interface{})
- func (logger Logger) Warn(text string, args ...interface{})
- type NngsListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnAlphabetToNumber ¶
ColumnAlphabetToNumber - 列アルファベットを数に変換します。 I列 を省いた数にします。 TODO あとで byte型に変えよ☆(^~^)
Types ¶
type Chatter ¶
type Chatter struct {
// contains filtered or unexported fields
}
Chatter - チャッター。 標準出力とロガーを一緒にしただけです。
type GlobalVariables ¶
type GlobalVariables struct { // Log - ロガー。 Log Logger // Chat - チャッター。 標準出力とロガーを一緒にしただけです。 Chat Chatter }
GlobalVariables - グローバル変数。
var G GlobalVariables
G - グローバル変数。思い切った名前。
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger - ロガー。
func NewLogger ¶
func NewLogger( tracePath string, debugPath string, infoPath string, noticePath string, warnPath string, errorPath string, fatalPath string, printPath string) *Logger
NewLogger - ロガーを作成します。
type NngsListener ¶
type NngsListener interface { // NoticeMyPhase - 自分の手番であることのアナウンスが来ました。 // この通知を受け取ったら、思考を開始してください。 // 指し手の入力をするには、別途、非同期の出力で 返してください NoticeMyPhase() // NoticeOpponentPhase - 相手の手番であることのアナウンス NoticeOpponentPhase() }
NngsListener - NNGS からの受信メッセージをさばきます。
Click to show internal directories.
Click to hide internal directories.