Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Develop Note #3

Open
stonesaw opened this issue Jul 23, 2020 · 0 comments
Open

Develop Note #3

stonesaw opened this issue Jul 23, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@stonesaw
Copy link
Owner

stonesaw commented Jul 23, 2020

Develop Note

Piece.id

番号 name_var 番号 name_var 成り
1 fu 9 tokin と金
2 kyo 10 narikyo 成香
3 kei 11 narikei 成桂
4 gin 12 narigin 成銀
5 kin 13 none None
6 kaku 14 uma
7 hisya 15 ryu
8 ou 16 none None
0 empty 空(から)

Piece.player

Num Player
0 プレイヤーなし
1 1P
2 2P
随時追加
3 3P
4 4P

(07/24 変更)

Methods

  • Calc::rotate2dVector(2dVec, string direction)
    direction -> "right" or "left" or "reverse"
  • Calc::id2name(size_t id)
  • Calc::name2id(string name)

例外処理を追加

Debugモードでビルドして例外がスローされた場合、output.txtにエラーメッセージが出力されます

shogi.js

参考にしてもらっているJavaScriptのコード
http://www.arts-net.co.jp/team/staff_blog/04/12574.html

@stonesaw stonesaw added the documentation Improvements or additions to documentation label Jul 23, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant