LoginSignup
0
0

More than 3 years have passed since last update.

対戦オセロwebapi その4

Last updated at Posted at 2020-03-24

概要

対戦オセロwebapiを作ってみる。
構想と仕様を述べる。

構想

オセロaiを持ち寄って、戦わせて、ランキングする。

仕様

ai
web上に、設置したhtmlで、関数siroと関数kuroを持つ。
関数呼び出しには、引数がある。構造は、64個のarray
8*8の盤を表す。左上から右下へ繋がる。
1個は、0,1,2で0は黒、1は無、2は白を表す。
関数の戻り値は、置く位置を指す。1から64の間である。

stage
iframeでaiを呼び出し、対戦させる。点数を付与して
ランキング表示する。

成果物

実際に確認して欲しい。

aiのサンプルコード

以上。

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