Documentation ¶
Index ¶
Constants ¶
View Source
const MOVES_SIZE = 513
電竜戦が一番長いだろ(^~^) 1つ余裕を持っておく(^~^)
Variables ¶
View Source
var App l01.Lesson01App
App - アプリケーション変数の宣言
Functions ¶
Types ¶
type Position ¶
type Position struct { // Go言語で列挙型めんどくさいんで文字列で(^~^) // [19] は 1九、 [91] は 9一(^~^)反時計回りに90°回転した将棋盤の状態で入ってるぜ(^~^)想像しろだぜ(^~^) Board []string // 持ち駒の数だぜ(^~^) R, B, G, S, N, L, P, r, b, g, s, n, l, p Hands []int // 先手が1、後手が2(^~^) Phase int // 何手目か(^~^) MovesNum int // 指し手のリスト(^~^) Moves []string }
Position - 局面
func NewPosition ¶
func NewPosition() *Position
func (*Position) ReadPosition ¶
ReadPosition - 局面を読み取ります。マルチバイト文字は含まれていないぜ(^q^)
func (*Position) ResetToStartpos ¶
func (pos *Position) ResetToStartpos()
ResetToStartpos - 初期局面にします。
Click to show internal directories.
Click to hide internal directories.