0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

目指せ!第14回UEC杯コンピューター囲碁大会<本編> Step [O11o_3o_11o0] ポジション作成

Posted at

目指せ!第14回UEC杯コンピューター囲碁大会<本編> Step [O11o_3o_11o0] ポジション作成

連載の目次

📖 目指せ!第14回UEC杯コンピューター囲碁大会<本編>

Step [O11o_3o_11o0] ポジション作成

あとで使うファイルを先に作成する

Step [O11o_3o_11o1o0] ファイル作成 - kernel/o11o_3o_11o0_position.go ファイル

👇 以下のファイルを新規作成してほしい

  	📂 kifuwarabe-uec14
	└── 📂 kernel
👉   	└── 📄 o11o_3o_11o0_position.go
// BOF [O11o_3o_11o1o0]

package kernel

type Position struct {
	// Board - 盤
	Board *Board
}

// NewDirtyKernel - カーネルの新規作成
// - 一部のメンバーは、初期化されていないので、別途初期化処理が要る
func NewDirtyPosition(gameRule GameRule, boardWidht int, boardHeight int) *Position {
	var p = new(Position)

	p.Board = NewBoard(gameRule, boardWidht, boardHeight)

	return p
}

// EOF [O11o_3o_11o1o0]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?