JP3835378B2 - Game information processing apparatus and game information processing program - Google Patents

Game information processing apparatus and game information processing program Download PDF

Info

Publication number
JP3835378B2
JP3835378B2 JP2002255478A JP2002255478A JP3835378B2 JP 3835378 B2 JP3835378 B2 JP 3835378B2 JP 2002255478 A JP2002255478 A JP 2002255478A JP 2002255478 A JP2002255478 A JP 2002255478A JP 3835378 B2 JP3835378 B2 JP 3835378B2
Authority
JP
Japan
Prior art keywords
data
stone
output
pattern
partial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002255478A
Other languages
Japanese (ja)
Other versions
JP2004089472A (en
Inventor
真一郎 小木戸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2002255478A priority Critical patent/JP3835378B2/en
Publication of JP2004089472A publication Critical patent/JP2004089472A/en
Application granted granted Critical
Publication of JP3835378B2 publication Critical patent/JP3835378B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、囲碁、将棋、チェス等の対戦ゲームを行うためのゲーム情報処理装置、ゲーム情報処理プログラムに関する。
【0002】
【従来の技術】
従来、パーソナルコンピュータなどで囲碁などのゲームを実行させるゲームプログラムでは、対局(対戦)における着手時に石を打つリアルな音を鳴らしたり、その着手によって例えば囲碁の「あたり」の状態になった場合にはそれを自動判定して「あたりです」と音声ガイドを出力したり、あるいは着手した時点で使った考慮時間を自動表示するといった様々なユーザインフォーメーション機能が備えられていた。
【0003】
それらの機能は大別すると3種類に分類できる。
第1はリアリティを高めるための機能であり、通常の碁盤と碁石を用いての対局の雰囲気に近づけるためのもので、石音を鳴らすのが代表例である。第2はゲームの進行に有効あるいは必要な情報を明示するための機能であり、消費時間表示やアゲハマ数の表示等が相当する。第3は、上達の助けとなる情報を発するための機能であり、前述した「あたりです」の状態を教えてくれる機能などが相当する。
一般に、囲碁や将棋のようなゲームは長い伝統を持ち、単なるゲームというよりは一種の芸事、文化と考える人も多いため、このようなゲームプログラムの付加機能も実用的なものが多い。
【0004】
【発明が解決しようとする課題】
このように従来の囲碁プログラムでは、前述した第3の機能により「あたり」の状態を自動判定して音声ガイドすることができていたが、実際の対局では「あたり」の状態となった時点でガイドがあったとしても、その後の着手に十分に生かすことができない。むしろ「あたり」の状態となる前の着手の意味が通知された方が、その後の着手を考える上で有効であるが、従来の囲碁プログラムでは着手の意味を通知することができなかった。特に、囲碁の概念を十分に把握していない初心者にとっては、着手が持つ意味が専門的に説明されるよりも感覚的に捉えられる方が好ましいが、従来の実用的な付加機能においては、このような観点からの有効な機能が実現できていなかった。
【0005】
本発明は、前記のような問題に鑑みなされたもので、着手の意味を感覚的に容易に把握することが可能なゲーム情報処理装置、ゲーム情報処理プログラムを提供することを目的とする。
【0006】
【課題を解決するための手段】
本発明は、囲碁ゲームにおける白番及び黒番の着手情報を入力する入力手段と、前記入力手段によって入力された着手情報に基づく白石と黒石の盤面上の位置を示すデータを含む配石状況を記憶する記憶手段と、前記入力手段による着手情報の入力に伴って、前記記憶手段に記憶された配石状況から当該着手情報と関連する部分的な配石状況を切り出す部分切り出し手段と、前記部分切り出し手段によって切り出された部分的な配石状況が、予め設定された所定の配石状況にあるか否かを判別する判別手段と、前記所定の配石状況ごとに対応づけられた前記着手情報の配石状況に対する意味を表現する、文字データ、音声データ、画像データの少なくとも何れか1つの出力データを記憶するデータ記憶手段と、前記判別手段によって前記部分的な配石状況前記所定の配石状況にあると判別された場合に、前記データ記憶手段に記憶された当該所定の配石状況と対応づけられた出力データを出力する出力手段とを具備したことを特徴とする。
【0007】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態について説明する。図1は、本実施形態におけるゲーム情報処理装置を実現するシステムの構成を示す外観図である。本実施形態のゲーム情報処理装置は、囲碁ゲームを対象とし、例えばパーソナルコンピュータに囲碁ゲームプログラムがインストールされることにより実現されるものとする。
【0008】
図1に示すシステムでは、画像表示用のディスプレイ101、CPUやメモリ、ハードディスク装置などの記憶メディアが収納されたパーソナルコンピュータ(PC)本体102、音声出力用のスピーカー103、各種の指示を入力するためのキーボード104及びマウス105が設けられている。
【0009】
図2は、本実施例におけるシステムの主要な構成を示すブロック図である。
【0010】
図2に示すように、本システムには、キーボード/マウス入力部201、ROM202、CPU203、RAM204、サウンドシステム205、表示システム206が含まれている。
【0011】
キーボード/マウス入力部201は、キーボード104あるいはマウス105からのユーザから指示されたデータを入力してCPU203に通知する。
【0012】
ROM202は、着手に応じて出力されるインフォーメーション用の音声・文字・画像データや、そのときの配石パターンに応じたインフォーメーションを決定するためのテーブルデータ等が記憶されている。なお、これらのデータは、ROM202に記憶される代わりに、図示せぬハードディスク装置に記憶させておき、必要に応じて読み出してRAM204に記憶させてアクセスされる構成としても良い。
【0013】
CPU203は、RAM204に記憶されたゲーム情報処理プログラムを実行し、キーボード/マウス入力部201から通知されるデータに応じて囲碁ゲームを進行させる。本実施形態では、ゲーム情報処理プログラムに設けられた機能により、着手に対して各種のインフォメーションを出力することができる。
【0014】
RAM204は、対局の配石を記憶するためのレジスタや各種設定状態を記憶するためのレジスタが含まれる。詳細については後述する。
【0015】
サウンドシステム205は、CPU203における処理に伴って、スピーカー103を通じて音声を出力させる。
【0016】
表示システム206は、CPU203における処理に伴って、ディスプレイ101において各種の情報を表示させる。
【0017】
図3は、本実施形態のシステムにおいて囲碁ゲームプログラムを実行する場合のディスプレイ101により表示されるメイン画面の一例を示す図である。
図3に示すように、ディスプレイ画面301には、中央に対局用の盤面が表示される盤面表示部302が設けられている。対局に際しては、盤面表示部302に表示された盤面において、マウス105を使って着点(着手する個所)にカーソルを移動させクリックすることで着手を指示することができる。着点には石(黒石または白石)が表示される。また、対局相手がコンピュータである場合には、コンピュータ(対局プログラム)が着手を決定しだい、自動的に盤面に表示される。盤面表示部302の下部には、対局における現在の状況などをユーザに対して通知するためのメッセージが表示されるメッセージ表示部304が設けられている。さらに、盤面表示部302の左側には、2人の対局者(黒番、白番)それぞれの対局情報、例えば残り時間、アゲハマの数、コミなどの情報が表示され、対局の進行に従って自動更新され表示される。また、盤面表示部302の右側上部にはコマンド選択部305が設けられている。例えば、コマンド選択部305には、新規のゲーム開始を指示するための「次のゲーム開始」、対局中に誤って着手を入力してしまった場合に取り消しを指示するための「一手戻し」、終局と判断したことを指示するための「終局宣言」、投了を指示するための「投了」など、ゲーム進行を司るための複数のボタンが配列されている。
【0018】
以上は通常の囲碁対局を実行するために設けられているものであるが、本実施形態のシステムでは、さらに盤面表示部302の右側下部にインフォメーション分類設定/表示部307が設けられている。図3に示すように、インフォメーション分類設定/表示部307には、着手イメージ選択部308、出力形態選択部309、文字表示部310、絵表示部311が設けられている。
【0019】
着手イメージ選択部308には、2人の対局者のうちどちらの「着手イメージ」(後述する)をインフォーメーションとして出力させるかを選択するための選択ボタン、すなわち「打った人」ボタンと「打たれた人」ボタンとが設けられている。着手イメージ選択部308に設けられたボタンは、マウス105の操作によりカーソルを移動させクリックすることで選択可能である。「打った人」ボタンをクリックしてONにすれば、直前の着手を打った対局者からみたその着手のイメージが音声や画像表現あるいは文字によりインフォメーションとして出力され、「打たれた人」をONにすれば打たれた方の対局者からみたその着手のイメージが同様にしてインフォメーションとして出力される。
【0020】
なお、「着手イメージ」とは、対局者が着手に対して抱く囲碁特有のイメージのことを指す。例えば、図3の盤面表示部302に示す盤面では、11手目に黒が「4の16」(左下星)に打って、白石2つを切断した場面である(直前の着手は石を示す丸の中にさらに小さな丸を表示してそれ以前の他の着手と区別できるように表示されている)。そのような着手は相手の石を分断することによってダメージを与え弱体化するために打たれることが多く、一般的な「切断」(切り)のイメージに非常に近いものがある。それを何らかの形で表現するとすれば例えば「チョキン」「バッサリ」といった擬音表現や、はさみでものを切り離す映像表現などが考えられるが、本実施例のゲーム情報処理装置ではそれを実際に音声や画像でユーザへインフォメーションとして出力する。これにより、囲碁ゲームの新しい楽しみを提供したり、初心者が囲碁のイメージをつかみやすくするための一種の教育効果を得ることができる。一つの着手に対してそれを打った対局者が感じる着手イメージと打たれた対局者が感じる着手イメージは相反するものであり、例えば先の「切断」を例に取ると、切断した側は快感を感じ、逆に切られた側はそれが有効な切断であれば身を切られたような痛みを感じる。すなわち、出力すべきインフォメーションが異なるため、着手イメージ選択部308において何れかを選択させることで、出力するインフォメーションの内容(着手イメージ)を切り替えることができる。
【0021】
出力形態選択部309は、出力させるインフォメーション(着手イメージ)の表現形態を選択するための操作部であり、「音声」(例えば人間の声や効果音など)、画面での「文字表示」、及び画面での静止画像あるいは動画像による「絵表示」の3種類を各々独立にON/OFFできる(何れか一つあるいは任意の組み合わせを指定することができる)。ON/OFFの方法は、前述した着手イメージ選択部308に対する操作と同様に、マウス105によりカーソルを任意のボタンに移動させてでクリックすればよい。
【0022】
図3の状態では、3種すべてが選択されており、「4の16」の黒石が着手された直後にその手を打った側の声で「チョキーン」と出力され、同時に画面の文字表示部310に「チョキーン!」と表示され、さらに絵表示部311にはさみで血管を切断した画像が表示される。ちなみに、もし着手イメージ選択部308で「打たれた人」が選択されていた場合には、後述する図13に示した「打たれた人用」のインフォメーションに示す「ぎゃ〜」という悲鳴と痛々しい泣き顔が出力される。
【0023】
図4は、本実施形態におけるインフォメーション出力に関係する機能の構成を示すブロック図である。
【0024】
図4に示すように、CPU203は、ゲーム情報処理プログラムを実行することで、入力情報分岐システム401、着手決定システム402、パターンマッチング/データ取得システム403の機能を実現する。
【0025】
入力情報分岐システム401は、キーボード/マウス入力部201から入力されるユーザ入力がコマンド等の選択か着手の入力かを判別して、入力された情報の出力先を分岐させる。すなわち、入力情報分岐システム401は、コマンド選択部305、着手イメージ選択部308、出力形態選択部309に対する操作によって入力された入力情報については、RAM204の着手イメージ発信者選択状況レジスタ405または出力形態選択状況レジスタ406に出力し、盤面表示部302に対する操作によって入力された入力情報(着手情報)については、パターンマッチング/データ取得システム403及びRAM204の配石レジスタ404に出力する。
【0026】
着手決定システム402は、ユーザの対局相手としてコンピュータが指定された場合に、配石レジスタ404に記憶された現在の配石をもとにコンピュータ側の着手を決定する。着手決定システム402は、決定した着手の着手情報をパターンマッチング/データ取得システム403及び配石レジスタ404に出力する。
【0027】
パターンマッチング/データ取得システム403は、入力情報分岐システム401から取得される着手情報に対して、配石レジスタ404に記憶された現在の配石をもとにインフォメーションを出力するためのマッチングコードを生成し、このマッチングコードと配石パターンテーブル407から取得される照合用パターンとの照合を実行する。そして、照合によって適合する照合用パターンが得られた場合には、パターンマッチング/データ取得システム403はこの適合した照合用パターンに対応したデータ(出力すべきインフォメーションを示すデータ(後述するパターン分類No.データ(図11参照)))を用いたパターンコードを取得し、さらにパターンマッチング/データ取得システム403は、このパターンコードに対応したインフォメーションデータを音声データ408あるいは画像データ409から取得して、サウンドシステム205及び表示システム206を通じて出力させる。
【0028】
RAM204には、配石レジスタ404、着手イメージ発信者選択状況レジスタ405、出力形態選択状況レジスタ406が設けられる。
【0029】
配石レジスタ404は、入力情報分岐システム401及び着手決定システム402から出力される着手情報に基づき、現在の盤面における配石の状態を記録している(詳細については図5に示す)。
【0030】
着手イメージ発信者選択状況レジスタ405は、着手イメージ選択部308において設定された着手イメージ発信者(「打った人」「打たれた人」)の状況を記憶する(詳細については図6に示す)。
【0031】
出力形態選択状況レジスタ406は、文字表示部310において設定された出力形態(「音声」「文字表示」「絵表示」)の状況を記憶する(詳細については図7に示す)。
【0032】
ROM202には、配石パターンテーブル407、音声データ408、画像データ409が記憶される。
【0033】
配石パターンテーブル407は、パターンマッチング/データ取得システム403によって生成されたマッチングコードとの照合対象となる照合用パターンが記録されている。この配石パターンテーブル407に記憶される照合用パターンは、着手に対してインフォメーションを出力すべき配石パターンを表している。また、この照合用パターンには、出力すべきインフォメーションを示すデータ(後述するパターン分類No.データ)が対応づけられている。従って、照合用パターンが異なっていても、出力すべきインフォメーションが同じである場合には、同一のパターン分類No.データが対応づけられることになる。
【0034】
音声データ408は、配石パターンテーブル407に記憶されたパターンコードにより指定されるインフォメーションとして出力すべき音声のデータである。
画像データ409は、配石パターンテーブル407に記憶されたパターンコードにより指定されるインフォメーションとして出力すべき画像のデータである。
なお、図示していないが、音声データ408、画像データ409と同様にして文字データもROM202に記憶されているものとする。
【0035】
図5には配石レジスタ404の具体的な内容を示している。
配石レジスタ404は、現在の盤面における配石の状態を表すために、実際の碁盤に対応しやすいよう横方向の盤上位置Xと縦方向の盤上位置Yによる二次元マトリクスで表している。碁盤の着点は19×19=361であるが、配石レジスタ404ではその左右上下に1列増やして21×21のパラメータを備えるようにした。21×21のパラメータを備えるようにした理由は、マッチングコードの作成や、着手に対するルールの判定などのためにある特定の着手の着点の周辺配石状況を取得する際に、盤端の着手に対しても盤端以外の着手と同じ方法で処理することができるようにするために盤の周囲に1路追加したものである。
【0036】
通常、碁盤の着点を示す方法は、先に列の番号、後に行の番号を書いて、例えば「4の16」という具合に呼ぶ。「4の16」は左から4番目の縦線と上から16番目の横線の交点である。各アドレスは、それぞれ盤上の1点に対応しており、その点の配石状況を2bitデータで記憶する。例えば、「4の16」に黒石が着手された場合には、X=4,Y=16のアドレスのデータが空点を表す「01」から黒石を表す「10」に変更される。なお、本実施形態では、各データ値は、それぞれ以下の状態を表すものとして説明する。すなわち、「01」は黒白どちらも置かれていない空点、「10」は黒石が置かれている着点、「11」は白石が置かれている着点、「00」は実際の盤に存在しない点(周辺予備アドレス)をそれぞれ表している。従って、X=0または20、Y=0または20の周辺予備アドレス合計76のデータは常に「00」であり、変化することはない。それ以外のアドレスは初期値が「01」で、対局の進行に従って着手された点のアドレスのデータが「10」もしくは「11」などの値に変化してゆく。CPU203から特定のアドレスがコールされるとそのアドレスの現在のデータ値が配石レジスタ404から読み出され、CPU203へ返されるので、配石状況をCPU203側で認識することができる。
【0037】
図5(a)に示す配石レジスタ404の例では、図5(b)に示す盤面の例に表すように、「4の3」に白石が着手されているのでX=4,Y=3のアドレスのデータが「11」となっている。同様にして、「3の17」に黒石が着手されているのでX=3,Y=17のアドレスのデータが「10」、「4の17」に白石が着手されているのでX=4,Y=17のアドレスのデータが「11」となっている。
【0038】
なお、図5では、実際の碁盤に対応しやすいように二次元マトリクスで図示したが、内部的には21×21=441個のアドレスを持つものであれば他の形態でもよい。
【0039】
図6は、着手イメージ発信者選択状況レジスタ405の内容を示している。着手イメージ発信者選択状況レジスタ405には、ユーザが着手イメージ選択部308を操作することによって選択した着手イメージ発信者を示すデータ(例えば2bitデータ)が記憶される。すなわち、着手イメージ選択部308において「打った人」が選択された場合には「01」、「打たれた人」が選択された場合には「10」が記憶される。なお、「00」「11」のデータは無効である。
【0040】
図7は、出力形態選択状況レジスタ406の内容を示している。出力形態選択状況レジスタ406には、ユーザが出力形態選択部309を操作することによって選択した出力形態を示すデータ(例えば3bitデータ)が記憶される。すなわち、第1ビットは音声の出力のOFF/ONを示すデータであり、「0」が音声OFF、「1」が音声ONを表している。同様にして、第2ビットは文字表示のOFF/ONを示すデータであり、「0」が文字表示OFF、「1」が文字表示ONを表し、第3ビットは絵表示のOFF/ONを示すデータであり、「0」が絵表示OFF、「1」が絵表示ONをそれぞれ表している。
【0041】
図8は、パターンマッチング/データ取得システム403によって生成されるマッチングコードの詳細な内容を示す図である。図8に示すマッチングコードは、着点の周辺8点の部分局面を対象としている例を示している。
【0042】
図8に示すように、マッチングコードは、3byteのデータからなり、下位2byteが該当着手の周辺の配石状況、すなわち例えば着手の周辺8点の配石状況のデータ(以降これを「周辺配石データ」と呼ぶ)を示し、上位1byteが着手イメージ選択部308と出力形態選択部309とにおいて選択された状態、すなわち着手イメージ発信者選択状況レジスタ405と出力形態選択状況レジスタ406に記憶されたデータ(以降これを「インフォーメーション分類選択データ」と呼ぶ)の内容を示している。
【0043】
また、図8の例では、周辺配石データ2byteのうち、上位1byteは着点に対して斜め方向の4点(図8(b)中の(1)〜(4))の配石状態を示し、下位1byteは上下左右方向の4点(図8(b)中の(5)〜(8))の配石状態を示している。データフォーマットは、石が置かれていない場合のデータ内容については配石レジスタ404のデータと同じであるが(「00」は盤外点(無効)、「01」は空点)、石が置かれている場合には、それが該当着手の石と異なる色の石か同じ色の石かによってそれぞれ「10」と「11」を割り当ててデータの変換が行われるようにしている。これは着手イメージ発信者分類の「打った人」と「打たれた人」という分類方法に対応させるためであり、黒番あるいは白番の何れが着手をしたとしても、どちらが着手したのかを区別することなく、「打った人」「打たれた人」にとってその配石状況でのその着手がどのような着手イメージであるかを、共通の配石パターンテーブルを用いて判別することができるようになる。
【0044】
なお、図8は、着手の周辺の配石状況として、着手の周辺8点を対象としているが、周辺8点以外の位置を対象とすることもできる。この場合、8点を超える場合には、例えば周辺配石データを3バイト以上としてマッチングコードを生成することで実現できる。例えば、インフォメーションを出力すべき局面を判断するための配石パターンテーブル407に記憶される照合用パターンが対象としている範囲を周辺配石データとして切り出すものとする。
【0045】
インフォーメーション分類選択データ1byteは、上位4bitに出力形態選択状況レジスタ406の記憶内容が、また下位4bitに着手イメージ発信者選択状況レジスタ405の記憶内容がそのままコピーされる。
【0046】
図9は、パターンマッチング/データ取得システム403によって生成されるパターンコードの内容を示している。
パターンコードは、出力すべきインフォーメーションに1対1で対応する2byteデータであり、上位1byteが着手イメージ選択部308及び出力形態選択部309の選択状態から決定されるインフォーメーション分類に対応するデータ(以降、「インフォーメーション分類データ」と呼ぶ)であり、下位1byteがマッチングコードの下位2byte(周辺配石データ)と配石パターンテーブル407に記憶された照合用パターンとの照合によって得られるデータ(以降「パターン分類No.データ」と呼ぶ)である。「パターン分類No.データ」は、照合用パターン(すなわち着手周辺の配石パターン)をインフォーメーションの内容ごとに整理して分類し直した連番データであり、照合用パターンが異なる場合であっても出力すべきインフォメーションが同じであれば同じデータが用いられる。
【0047】
次に、本実施形態のシステムにおけるゲーム情報処理装置の動作について説明する。
まず、図10に示すフローチャートを参照しながら、ユーザ操作による入力に対する処理について説明する。ここでは、囲碁ゲームプログラムが起動され、囲碁ゲームの対局が実行されているものとする。
【0048】
キーボード104あるいはマウス105が操作されることで、ディスプレイ画面301上で入力操作が行われると、入力情報分岐システム401は、キーボード/マウス入力部201を通じて、キーボード104あるいはマウス105からのユーザ入力を受け付ける(図4(1))。
【0049】
入力情報分岐システム401は、ユーザ入力が盤面表示部302における着手入力であるか、コマンド選択部305、着手イメージ選択部308、出力形態選択部309の何れかにおけるコマンド入力であるかを判別する(ステップA1,A2)。
【0050】
ここで、コマンド入力であった場合、そのコマンド入力がコマンド選択部305におけるものであれば、入力情報分岐システム401が囲碁ゲームプログラムに対して指示を出すことによって入力された機能が実行される。また、入力情報分岐システム401は、着手イメージ選択部308におけるコマンド入力、すなわち着手イメージ発信者を選択する「打った人」ボタンあるいは「打たれた人」ボタンに対する入力であれば(ステップA3,Yes)、RAM204の着手イメージ発信者選択状況レジスタ405を選択されたボタンの内容に変更する(ステップA4)(図4(2))。こうして、囲碁ゲームの対局者(すなわち「打った人」ボタンあるいは「打たれた人」)の何れに対してインフォメーションを出力するか設定しておくことで、この設定された対局者に対する着手イメージをインフォメーションとして出力することができる。
【0051】
また、入力情報分岐システム401は、出力形態選択部309におけるコマンド入力、すなわち着手に対するインフォメーションの出力形態である「音声」「文字表示」「絵表示」を選択する入力であれば(ステップA5,Yes)、RAM204の出力形態選択状況レジスタ406の内容を選択された出力形態に変更する(ステップA6)(図4(2))。
【0052】
そして、これらのコマンド入力に対応した設定が行われることで、以後、着手によって特定の配石パターンとなった場合に、着手イメージ発信者選択状況レジスタ405、出力形態選択状況レジスタ406に記憶された内容に従ってインフォメーションが出力されるようになる。
【0053】
一方、入力情報分岐システム401は、ユーザ入力が着手入力であった場合、着手された位置を示す着手情報を配石レジスタ404に記憶させると共に、パターンマッチング/データ取得システム403に着手があったことを通知して着手処理を実行させる(ステップA7)。なお、囲碁ゲームプログラムでは、一般に、入力された着手を処理する際に、着手情報が正しい着手を示しているかなどのルールを自動判定する処理を実行して、着手が正しくない場合には、入力された着手情報を無効にする機能を有している。
【0054】
なお、ユーザの対局相手がコンピュータであり、着手決定システム402により着手情報が入力された場合にも着手処理が実行される。
【0055】
次に、パターンマッチング/データ取得システム403は、配石パターンテーブル407に記憶された照合用パターンをカウントするためのパターン番号カウンタを初期値1に設定し(ステップA8)、パターン番号カウンタ番目の照合用パターンを取得する(ステップA9)。
【0056】
パターンマッチング/データ取得システム403は、配石パターンテーブル407から取得した照合用パターンとの照合対象とする部分局面を、着手情報をもとにして配石レジスタ404から切り出し、図8に示す部分局面を表す周辺配石データを含むマッチングコードの生成を実行する(ステップA10)。すなわち、パターンマッチング/データ取得システム403は、着手イメージ発信者選択状況レジスタ405と出力形態選択状況レジスタ406に記憶された内容をもとにマッチングコードの上位1byteを生成し、以下に続く2byteからなる周辺配石データを配石レジスタ404に記憶された今回の着手情報の周辺のデータから生成する。
【0057】
図11には、周辺配石データを生成するために着手情報の周辺のデータを切り出す部分局面の切り出し処理のフローチャートを、また図12には、その処理で用いるデータテーブルのデータ構造を示した。
【0058】
まず、パターンマッチング/データ取得システム403は、配石パターンテーブル407から取得した現在注目している照合用パターンの「切り出すマス目数」を取得する(ステップB1)。ここでは、着点の周辺8点による図8(b)に示すような配列に対する照合用パターンを対象とするものとする。従って、ここでの「切り出すマス目数」は図12のデータテーブルに示すように、「8」となる。
【0059】
すると次に、パターンマッチング/データ取得システム403は、「切り出すマス目数」をカウントするためのマス目カウンタに初期値1をセットし(ステップB2)、マス目カウンタ番目の着点に対する切り出し位置の相対座標を取得する(ステップB3)。例えば、図12の例では、「マス目相対位置1」として(−1,−1)が指定されているので、図8(b)に示す例のように、着点の左上(1)の位置が切り出し位置とされる。
【0060】
すると、パターンマッチング/データ取得システム403は、配石レジスタ404を参照して、切り出し位置の相対座標の配石データTを取得する(ステップB4)。
【0061】
ここで、データTの値が「00」(無効を表す)である場合、そのままTの値をマッチングコード(周辺配石データ)の該当ビットにコピーする(ステップB5,B10)。例えば、着点の左上(1)が切り出し位置の相対座標である場合、周辺配石データの1byte目の先頭2ビットにコピーする。また、データTの値が「01」(空点を表す)である場合、同様にして、そのままTの値をマッチングコード(周辺配石データ)の該当ビットにコピーする(ステップB6,B10)。
【0062】
一方、データTの値が着手情報が示す着手の色C(白あるいは黒)と一致する場合(ステップB7、Yes)には、Tの値を着点の石と同色の石が存在することを表す「11」にして、マッチングコード(周辺配石データ)の該当ビットにコピーする(ステップB8,B10)。また、データTの値が着手情報が示す着手の色C(白あるいは黒)と一致しない場合(ステップB7、No)には、Tの値を着点の石と異なる石が存在することを表す「10」に変換して、マッチングコード(周辺配石データ)の該当ビットにコピーする(ステップB9,B10)。
【0063】
こうして、マス目カウンタ番目の切り出しが完了すると、マス目カウンタの値を+1することで、切り出し位置の対象を変更する(ステップB11)。ここで、「切り出すマス目数」の全てについて切り出しが完了していなければ(ステップB12,No)、パターンマッチング/データ取得システム403は、前述と同様にして、マス目カウンタ番目の着点に対する切り出し位置の相対座標を取得し、その相対座標のデータTをマッチングコードにコピーする(ステップB3〜B11)。従って、図8(b)に示す例では、図12に示されるようなデータテーブルの各マス目相対位置データを順次取得することによって、相対座標(1)〜(8)までの全てのマス目のデータTが切り出されて、順次、周辺配石データにコピーされ、マッチングコードが生成される。
【0064】
また、マッチングコードの周辺配石データは、着点の石の色と異なる石、あるいは同色の石に応じて、配石レジスタ404から得られるデータTがステップB8,B9において変換されるため、黒番あるいは白番の何れが着手をしたとしても、同じように着手による配石状況を判別できるようになっている。すなわち、後述する照合用のパターンとの比較結果をもとに、着手イメージ発信者分類の「打った人」と「打たれた人」のそれぞれにとって、どのような着手イメージであるかを判別できる。
【0065】
パターンマッチング/データ取得システム403は、上述した部分パターン切り出し処理によって周辺配石データを含むマッチングコードを生成すると、配石パターンテーブル407から取得した現在注目している照合用パターンと切り出し局面(周辺配石データ部分)との比較を行なう(ステップA11)。
【0066】
ここで、両パターンが「一致している」などの所定の条件に適合しない場合、すなわち照合用パターンと周辺配石パターン(切り出した部分局面)とが一致しない場合(ステップA12、No)、パターンマッチング/データ取得システム403は、現在対象として照合用パターンが示す配石状況にないものとして、次の照合用パターンに対する処理に移行するためにパターン番号カウンタに+1する(ステップA13)。なお、ここでは「一致している」か否かを判断する他にも、例えば、切り出した現在局面が、照合用パターンを「含んでいる」といった条件で判断する方法も可能である。
【0067】
ここで、配石パターンテーブル407に記憶された全ての照合用パターンについての処理が終了していなければ、パターンマッチング/データ取得システム403は、前述と同様にして、次の照合用パターンを取得して、この照合用パターンに対するマッチングコードを生成して両者の比較を行なう。
【0068】
なお、配石パターンテーブル407から取得される照合用パターンが前述した説明のように、着点の周辺8点以外を対象としている場合には、部分局面切り出し処理において、照合用パターンに対応する「切り出すマス目数」に従う部分局面の切り出し(周辺配石データの生成)を実行してマッチングコードが生成されるものとする。この場合には、図12に示すパターン切り出し用データとして、あらかじめ別のものを用意しておくなどの方法によって実現する。また、各照合用パターン毎に異なる範囲を部分局面として切り出しても良く、その場合には、図12のパターン切り出し用データを各照合用パターンごとに用意するなどの方法によって実現できる。
【0069】
一方、照合用パターンと切り出し局面(マッチングコード)との比較によって「一致する」などの所定の条件に適合すると判別された場合(ステップA12,Yes)、パターンマッチング/データ取得システム403は、条件に適合した照合用パターンのパターン番号に対応する出力データを取得して(ステップ15)、マッチングコードに応じたパターンコードを生成する(図4(5))。
【0070】
すなわち、各照合用パターンには、出力すべきインフォメーションを示すパターン分類No.データが対応づけられており、このパターン分類No.データと、マッチングコードのインフォメーション分類選択データ(出力形態選択状況、着手イメージ発信者選択状況)をもとにした、図9に示すようなパターンコードを取得する。
【0071】
パターンマッチング/データ取得システム403は、パターンコードのインフォメーション分類データに含まれる出力形態定義部が、出力形態として「音声」「文字表示」「絵表示(画像)」の何れを示すかを判別する(ステップA16,A18,A20)。
【0072】
ここで出力形態として「音声」が指定されていると判別されると(ステップA16、Yes)、パターンマッチング/データ取得システム403は、パターンコードに含まれるパターン分類No.データが示す音声データ408をインフォメーションデータとして取得し、サウンドシステム205を通じてスピーカー103から出力させる(ステップA17)。
【0073】
同様にして、出力形態として「絵表示(画像)」が指定されている判別されると(ステップA18,Yes)、パターンマッチング/データ取得システム403は、パターンコードに含まれるパターン分類No.データが示す画像データ409をインフォメーションデータとして取得し、表示システム206を通じてディスプレイ画面301の絵表示部311において出力させる(ステップA19)。
【0074】
また、出力形態として「文字」が指定されていると判別されると(ステップA20,Yes)、パターンマッチング/データ取得システム403は、パターンコードに含まれるパターン分類No.データが示す文字データをインフォメーションデータとして取得し、表示システム206を通じてディスプレイ画面301の文字表示部310において出力させる(ステップA21)。
なお、これらの「音声」「文字表示」「絵表示」の指定は、複数のものが選択されていてもよい。従って、設定された出力形態に応じて、出力データとして文字データ、音声データ、画像データの何れか1つもしくは任意の組み合わせで出力することができる。
【0075】
図13には、実際に着手された盤面配石状況と、マッチングコードとパターンコード及び最終的に出力されるインフォーメーションの対応例を示している。
【0076】
図13(1)の盤面配石状況における(A)(B)(C)は、何れも白番の着手によって黒石を「切断」した例を示している。
【0077】
配石状況が(A)の例では、マッチングコード(周辺配石データ)は「0101111001101001」になる。そしてこれを配石パターンテーブル407の照合用パターンと照合することによって、例えば「00011010」というパターン分類Noデータを取得することができる。なお、このパターン分類Noデータは、10進数に直すと26でありパターン分類の中の27番目のパターン「切断」に該当することを示している。この「切断」パターンに対応するインフォメーションデータの内容としては、「チョキーン」音(打った人用音声)、「ぎゃー」音(打たれた人用音声)、「チョキーン!」の文字(打った人用文字表示)、「ぎゃ〜!」の文字(打たれた人用文字表示)、打った人用絵表示、打たれた人用絵表示が用意されている。このインフォメーションデータからパターンコードの上位1バイトが示すインフォメーション分類データ(出力形態、着手イメージ発信者)に応じたインフォメーションデータが取得されて出力される。
【0078】
なお、配石状況(B)(C)の場合についても、配石パターンテーブル407と照合用パターンとの照合によって、配石状況(A)の場合と同じパターン分類No.データが取得され、同様にして「切断」パターンに対応するインフォメーションデータのうちインフォメーション分類データに応じたものが出力される。
【0079】
また、配石状況(D)は、白番の着手によって黒石をおさえつけた例(マガリの例)を示している。
【0080】
配石状況が(D)の例では、マッチングコード(周辺配石データ)は「0110110101101101」になる。これを配石パターンテーブル407の照合用パターンと照合することによって、例えば「00011011」というパターン分類Noデータを取得することができる。なお、このパターン分類Noデータは、10進数に直すと27でありパターン分類の中の28番目のパターン「マガリ」に該当することを示している。この「マガリ」パターンに対応するインフォメーションデータの内容としては、「ぐいっ」(打った人用音声)、「固いねー」(打たれた人用音声)などが用意されている。そして、このインフォメーションデータのなかからパターンコードのインフォメーション分類データ(出力形態、着手イメージ発信者)に応じたインフォメーションデータが取得されて出力される。
【0081】
このようにして、着手に対して、この着手による配石状況のイメージを「音声」「文字表示」「絵表示」などの具体的な形でユーザに提示でき、着手の意味を容易に把握することができ、囲碁の対局をいっそう楽しいものとすることができる。また、囲碁の概念を十分に把握していない初心者にとっては着手の意味やニュアンスが感覚的に捉えやすくなり、上達の助けにもなる。
【0082】
なお、前述した部分局面切り出し処理では、配石レジスタ404に記憶された実際の盤面における配石を対象として部分局面の切り出しを行って照合用パターンとの比較を行っているが、部分局面を着手情報の盤面状態に対する意味が変わらない形式に変更した上で照合用パターンとの比較に供するようにしても良い。すなわち、囲碁の盤面では配石を90°ごとに回転させたそれぞれの盤面、さらには0°、90°、180°、270°回転させ、さらにその左右を入れ替えた盤面における着手の意味は全て同じである。従って、配石パターンテーブル407に、回転させた盤面及び左右入れ替えた盤面の何れか1つの状態を対象とした照合用パターンを用意しておけば、盤面状態で表される全ての所定の状態を表すパターンを用意していなくても、配石レジスタ404から切り出した部分局面を90°ごとに回転させた局面、左右を入れ替えた局面のそれぞれについて照合を行なうことで、着手による盤面状況を判別することができるようになる。なお、配石レジスタ404に記憶された盤面を90°ごとに回転させたものと、左右を入れ替えたものとを予め用意した上で部分切り出しを行っても同様にして盤面状況を判別することができる。
【0083】
また、部分局面(あるいは盤面)を回転あるいは左右入れ替えするのではなく、周辺配石データ(マッチングコード)を生成するために、着点の周辺からデータTを取得する際に(図11、ステップB4)、そのデータ取得の順番を、盤面(部分局面)を回転させた場合、及び左右入れ替えた場合に相当する順番に変更して行なうことにより、同様の部分切り出しを実行することができる。
【0084】
また、切り出した部分局面を回転等させるかわりに、各照合用パターンを回転等させて、そのパターンそれぞれと部分局面とを比較するように構成しても良いのは言うまでもない。
【0085】
なお、当然ながら、配石パターンテーブル407に盤面(部分局面)を回転させた場合及び左右入れ替えた場合のそれぞれに対応する参照用パターンを用意しておけば、部分局面の切り出しの際に前述したような、盤面(部分局面)の回転や盤面の左右入れ替えなどの処理は不要である。
【0086】
なお、前述した説明では、説明を簡単にするために「切断」(切り)を例にしているが、その他にも「ノビ」「ケイマ」「一間トビ」「ノゾキ」など各種の状況を対象とすることができる。「ノビ」の時には「グイッ」「ニョキ」など、「ケイマ」の時には「ビョーン」など、「一間トビ」の時には「ピョン」「ジャンプ」など、「ノゾキ」の時には「じろっ」「チラリン」など、着手による状況を感覚的に把握できるような各種のインフォメーション(それぞれの音声、文字表示、絵表示用のデータ)を用意して、適宜、出力させることができる。また、石をハマとして「アゲる」場合には、「パクッ」「ガぶり」などのインフォメーションとしたり、他とは異なるインフォメーションを出力させるようにしても良い。
【0087】
また、着手イメージ発信者の選択項目を増やして、両対局者を同時選択できるようにし、一手着手されると、「打った人」に対する「チョキーン」という「切断」を表すインフォメーションを出力し、一定時間が経過した後に「打たれた人」に対する「ぎゃ〜」のインフォメーションを出力するといったことも可能である。
【0088】
また、前述した説明は、図1に示すような、スタンドアロンタイプのシステムによって実現されるものとしているが、図14に示すような、ネットワーク対局を行なうシステムに適用することができる。
【0089】
図14に示すシステムは、電子囲碁対局サーバ501がパーソナルコンピュータ、PDA(personal digital assistant)、携帯電話端末、ゲーム専用端末などにより実現される囲碁対局端末502,503とインターネットなどを含む各種ネットワーク504を介して接続されることで、囲碁対局端末502,503の間で対局させることができる。
【0090】
電子囲碁対局サーバ501には、前述したインフォメーションの出力に係わる機能、すなわち図4に示すCPU203、ROM202、RAM204により実現されている機能が設けられているものとする。
【0091】
電子囲碁対局サーバ501は、例えば囲碁対局端末502から入力されるユーザ入力(着手データ)を取得すると、対局相手の囲碁対局端末503にゲームを進行させるためのゲームデータを出力する。また、着手情報をもとに前述したように状況を判別して、インフォメーションを出力すべきと判別できた場合には、インフォメーションデータをゲームデータと共に囲碁対局端末503に送出して、着手を打たれた方の端末である囲碁対局端末503において出力させる(着手イメージ発信者選択が「打たれた人」の場合)。また、着手イメージ発信者選択が「打った人」の場合には、着手を行った方の端末である囲碁対局端末502にインフォメーションデータを送出して、囲碁対局端末502において出力させる。さらに、着手イメージ発信者選択を「打たれた人」「打った人」の両方とし、それぞれに対する異なるインフォメーションデータを送出して出力させるようにしても良い。
【0092】
ここで、一般に音声や画像のデータは非常に大きなサイズのデータとなるので、例えば、あらかじめ各端末に音声や画像のデータをCD−ROMや通信等により配信しておき、実際の対局時には、サーバは単に端末で再生すべきデータの番号等のみを送信するようにしてもよい。このようにすることで、一局ごとの通信データ量が減少するため、データ通信料を安価にすることができ、また、対局の進行を迅速なものとすることができる。
【0093】
また、前述した説明では、囲碁ゲームを対象として説明しているが、将棋、チェス、オセロゲーム、ダイヤモンドゲームなど、その他の着手によって状況が変化するゲームを対象とすることができる。
【0094】
例えば、将棋の場合には、「王手」「両どり」などの盤面の状況を表すインフォメーションの他、「持ち駒を打った」場合に武将が馳せ参じる様な盤面の状況を表す場合と異なる別の絵表示(画像)や音声を出力させるようにしても良い。
【0095】
また、チェスの場合には、「チェック」「チェックメイト」「キャスリング」などの状況となった場合に、インフォメーションを出力することができる。
【0096】
このように、対象とするゲームに応じた状況を感覚的に捉えることができる各種のインフォメーションを用意しておき、その状況となった場合に適宜出力することで、ゲームに対する興味を高め、上達の助けとすることもできる。
【0097】
なお、盤面の配列状況を判別する場合、囲碁では90°ごとの回転、将棋やチェスでは180°の回転によって、盤面の配列状況を着手者が何れの対局者であるかにかかわらず統一させることができるが、ダイヤモンドゲームでは盤面を60°あるいは30°回転させることで、他のゲームと同様にして盤面を統一することができる。盤面の配列を統一化させることによって、配石パターンテーブル407に記憶される照合用パターンの数を減らすことができ、また処理の効率化を図ることができる。
【0098】
なお、本発明は、前述した実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、前述した実施形態で実行される機能は可能な限り適宜組み合わせて実施しても良い。前述した実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜の組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件から幾つかの構成要件が削除されても、効果が得られるので有れば、この構成要件が削除された構成が発明として抽出され得る。
【0099】
また、前述した各実施形態において記載した処理は、コンピュータに実行させることのできるゲーム情報処理プログラムとして、例えば磁気ディスク(フレキシブルディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリなどの記録媒体に書き込んで各種装置に提供することができる。また、通信媒体により伝送して各種装置に提供することも可能である。ゲームを実行させるコンピュータは、記録媒体に記録されたゲーム情報処理プログラムを読み込み、または通信媒体を介してゲーム情報処理プログラムを受信し、このプログラムによって動作が制御されることにより、上述した処理を実行する。
【0100】
【発明の効果】
以上のように、本発明によれば、着手情報の入力に伴って盤面状態から当該着手情報と関連する部分的な盤面状態を切り出し、この盤面状態が所定の状態にあると判別された場合に、着手情報の盤面状態に対する意味を表現する出力データを出力するので、着手の意味を感覚的に容易に把握することが可能となる。
【図面の簡単な説明】
【図1】本実施形態におけるゲーム情報処理装置を実現するシステムの構成を示す外観図。
【図2】本実施例におけるシステムの主要な構成を示すブロック図。
【図3】本実施形態のシステムにおいて囲碁ゲームプログラムを実行する場合のディスプレイ101により表示されるメイン画面の一例を示す図。
【図4】本実施形態におけるインフォメーション出力に関係する機能の構成を示すブロック図。
【図5】配石レジスタ404の具体的な内容を示す図。
【図6】着手イメージ発信者選択状況レジスタ405の内容を示す図。
【図7】出力形態選択状況レジスタ406の内容を示す図。
【図8】パターンマッチング/データ取得システム403によって生成されるマッチングコードの詳細な内容を示す図。
【図9】パターンマッチング/データ取得システム403によって生成されるパターンコードの内容を示す図。
【図10】本実施形態におけるユーザ操作による入力に対する処理について説明するためのフローチャート。
【図11】本実施形態における周辺配石データを生成するために着手情報の周辺のデータを切り出す部分局面の切り出し処理を説明するためのフローチャート。
【図12】本実施形態における周辺配石データを生成するための、着手情報の周辺のデータを切り出す部分局面の切り出し処理に用いられる、パターン切り出し用データテーブルのデータ構造を示す図。
【図13】実際に着手された盤面配石状況と、マッチングコードとパターンコード及び最終的に出力されるインフォーメーションの対応例を示す図。
【図14】ネットワーク対局を行なうシステムの一例を示す図。
【符号の説明】
101…ディスプレイ
102…PC本体
103…スピーカー
104…キーボード
105…マウス
201…キーボード/マウス入力部
202…ROM
203…CPU
204…RAM
205…サウンドシステム
206…表示システム
301…ディスプレイ画面
303…残り時間表示部
304…メッセージ表示部
305…コマンド選択部
307…インフォメーション分類設定/表示部
308…着手イメージ選択部
309…出力形態選択部
310…文字表示部
311…絵表示部
401…入力情報分岐システム
402…着手決定システム
403…パターンマッチング/データ取得システム
404…配石レジスタ
405…着手イメージ発信者選択状況レジスタ
406…出力形態選択状況レジスタ
407…配石パターンテーブル
408…音声データ
409…画像データ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a game information processing apparatus and a game information processing program for playing a battle game such as Go, shogi, and chess.
[0002]
[Prior art]
Conventionally, in a game program for executing a game such as Go on a personal computer or the like, when a realistic sound of hitting a stone is played at the start of a game (competition), or when it becomes a “around” state of Go, for example, It was equipped with various user information functions such as automatically judging it and outputting a voice guide saying "It's around" or automatically displaying the time taken into consideration when it started.
[0003]
These functions can be roughly classified into three types.
The first is a function for enhancing the reality, which is to approximate the atmosphere of a game using a normal board and a meteorite, and a typical example is to play a stone sound. The second is a function for clearly indicating information that is effective or necessary for the progress of the game, and corresponds to a consumption time display, a display of the number of swallowtails, and the like. The third is a function for issuing information that helps to improve, and corresponds to a function that teaches the above-mentioned “around” status.
In general, games such as Go and Shogi have a long tradition, and many people think of it as a kind of entertainment or culture rather than just a game, so the additional functions of such game programs are also practical.
[0004]
[Problems to be solved by the invention]
In this way, in the conventional Go program, it was possible to automatically determine the “hit” state by the third function described above and to provide voice guidance, but in the actual game, when the “hit” state was reached, Even if there is a guide, it cannot be fully utilized for the subsequent start. Rather, notification of the meaning of the start before the “around” state is effective in considering the subsequent start, but the conventional Go program could not notify the meaning of the start. In particular, for beginners who do not fully understand the concept of Go, it is better to understand the meaning of the start more sensuously than to explain it professionally. Effective functions from such a viewpoint could not be realized.
[0005]
The present invention has been made in view of the above-described problems, and an object thereof is to provide a game information processing apparatus and a game information processing program capable of easily and intuitively grasping the meaning of a start.
[0006]
[Means for Solving the Problems]
The present invention Go game White and black Launch information Enter Input means and the start information input by the input means Based on the stone arrangement situation including the data indicating the position of Shiroishi and Kuroishi on the board surface The storage means for storing and the input of the start information by the input means are stored in the storage means Stone arrangement Partial information related to the start information from Stone arrangement A partial cut-out means for cutting out and a partial cut-out by the partial cut-out means Prearranged stone arrangement status is set in advance Determining means for determining whether or not the Stone arrangement Of the start information associated with each Stone arrangement Express the meaning of , At least one of character data, audio data, and image data Data storage means for storing output data and the partial means by the discrimination means Stone arrangement But Said Predetermined Stone arrangement The predetermined storage stored in the data storage means Stone arrangement And output means for outputting the output data associated with each other.
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is an external view showing a configuration of a system that realizes the game information processing apparatus according to the present embodiment. The game information processing apparatus according to the present embodiment is intended for Go games, and is realized, for example, by installing a Go game program in a personal computer.
[0008]
In the system shown in FIG. 1, a display 101 for displaying an image, a personal computer (PC) main body 102 storing a storage medium such as a CPU, a memory, and a hard disk device, a speaker 103 for outputting sound, and various instructions are input. A keyboard 104 and a mouse 105 are provided.
[0009]
FIG. 2 is a block diagram showing the main configuration of the system in this embodiment.
[0010]
As shown in FIG. 2, the system includes a keyboard / mouse input unit 201, a ROM 202, a CPU 203, a RAM 204, a sound system 205, and a display system 206.
[0011]
The keyboard / mouse input unit 201 inputs data instructed by the user from the keyboard 104 or the mouse 105 and notifies the CPU 203 of the data.
[0012]
The ROM 202 stores information voice / character / image data for information output in response to the start, table data for determining information corresponding to the stone arrangement pattern at that time, and the like. Note that these data may be stored in a hard disk device (not shown) instead of being stored in the ROM 202, read out as needed, stored in the RAM 204, and accessed.
[0013]
The CPU 203 executes a game information processing program stored in the RAM 204 and causes the Go game to proceed according to data notified from the keyboard / mouse input unit 201. In the present embodiment, various information can be output to the start by a function provided in the game information processing program.
[0014]
The RAM 204 includes a register for storing game arrangements and a register for storing various setting states. Details will be described later.
[0015]
The sound system 205 outputs sound through the speaker 103 in accordance with the processing in the CPU 203.
[0016]
The display system 206 displays various information on the display 101 in accordance with the processing in the CPU 203.
[0017]
FIG. 3 is a diagram illustrating an example of a main screen displayed on the display 101 when the Go game program is executed in the system of the present embodiment.
As shown in FIG. 3, the display screen 301 is provided with a board surface display unit 302 for displaying a game board surface in the center. When playing a game, it is possible to instruct to start the game by moving the cursor to the landing point (where to start) using the mouse 105 on the board surface displayed on the board display unit 302 and clicking. Stones (Kuroishi or Shiroishi) are displayed at the landing. If the opponent is a computer, the computer (game program) is automatically displayed on the board as soon as it decides to start. A message display unit 304 for displaying a message for notifying the user of the current situation in the game is provided below the board display unit 302. In addition, on the left side of the board display unit 302, the game information of each of the two players (black number, white number), for example, information such as remaining time, number of swallows, and comics, is displayed and automatically updated according to the progress of the game. Is displayed. A command selection unit 305 is provided on the upper right side of the panel display unit 302. For example, in the command selection unit 305, “next game start” for instructing the start of a new game, “one hand return” for instructing cancellation when a start is accidentally input during the game, A plurality of buttons for controlling the progress of the game, such as “declaration of end” for instructing that it is determined that the game has ended, and “termination” for instructing the end of the game, are arranged.
[0018]
The above is provided for executing a normal Go game, but in the system of this embodiment, an information classification setting / display unit 307 is further provided at the lower right side of the panel display unit 302. As illustrated in FIG. 3, the information classification setting / display unit 307 includes a start image selection unit 308, an output form selection unit 309, a character display unit 310, and a picture display unit 311.
[0019]
The start image selection unit 308 has a selection button for selecting which “start image” (described later) of the two players is output as an information, that is, a “hit” button and a “hit” button. And a “sag” button. The buttons provided in the start image selection unit 308 can be selected by moving the cursor by clicking the mouse 105 and clicking. If you click on the “Performer” button and turn it ON, the image of the start as seen by the player who performed the previous start will be output as information by voice, image expression, or text, and “Performer” will be turned ON Then, the image of the starting point as seen by the player who was struck is output as information in the same way.
[0020]
The “start image” refers to an image peculiar to Go that the player holds for the start. For example, in the board surface shown in the board surface display unit 302 of FIG. 3, black is hit to “16 of 4” (lower left star) in the 11th hand, and two white stones are cut (the immediately preceding start shows a stone). A smaller circle is displayed in the circle so that it can be distinguished from other previous launches). Such undertakings are often struck to damage and weaken by breaking the opponent's stones, and are very close to the general “cut” image. If it is expressed in some form, for example, an onomatopoeia expression such as “chokin” or “bassari” or a video expression that separates the scissors can be considered, but the game information processing apparatus of this embodiment actually expresses it as a sound or image. To output to the user as information. As a result, it is possible to provide a new type of educational effect for providing new enjoyment of the Go game and making it easier for beginners to grasp the image of Go. The starting image felt by the player who hit it for one start and the starting image felt by the hit player are contradictory. For example, in the case of the previous “cutting”, the cutting side is pleasant. On the other hand, the cut side will feel the pain of being cut if it is an effective cut. That is, since the information to be output is different, the content (starting image) of the information to be output can be switched by selecting any one in the starting image selection unit 308.
[0021]
The output form selection unit 309 is an operation unit for selecting an expression form of information (starting image) to be output, such as “voice” (for example, human voice or sound effect), “character display” on the screen, and Three types of “picture display” by a still image or a moving image on the screen can be turned ON / OFF independently (any one or any combination can be designated). The ON / OFF method may be clicked by moving the cursor to an arbitrary button with the mouse 105 as in the operation for the start image selection unit 308 described above.
[0022]
In the state of FIG. 3, all three types are selected, and immediately after the “4 of 16” black stone is launched, “Chokien” is output in the voice of the side that struck, and at the same time the character display part of the screen “Chokin!” Is displayed on 310, and an image obtained by cutting the blood vessel with scissors is displayed on the picture display unit 311. Incidentally, if “struck person” is selected by the start image selection unit 308, the scream and pain of “Gya ~” shown in the information for “struck person” shown in FIG. A new crying face is output.
[0023]
FIG. 4 is a block diagram showing a configuration of functions related to information output in the present embodiment.
[0024]
As illustrated in FIG. 4, the CPU 203 implements the functions of an input information branching system 401, a start determination system 402, and a pattern matching / data acquisition system 403 by executing a game information processing program.
[0025]
The input information branching system 401 determines whether the user input input from the keyboard / mouse input unit 201 is a command input or a start input, and branches the output destination of the input information. That is, the input information branching system 401 uses the start image sender selection status register 405 in the RAM 204 or the output form selection for the input information input by the operation to the command selection unit 305, the start image selection unit 308, and the output form selection unit 309. The input information (start information) that is output to the status register 406 and input by the operation on the panel display unit 302 is output to the pattern matching / data acquisition system 403 and the stone arrangement register 404 of the RAM 204.
[0026]
The start determination system 402 determines the start on the computer side based on the current stone arrangement stored in the stone arrangement register 404 when the computer is designated as the user's opponent. The start determination system 402 outputs the determined start information to the pattern matching / data acquisition system 403 and the stone arrangement register 404.
[0027]
The pattern matching / data acquisition system 403 generates a matching code for outputting information based on the current stone arrangement stored in the stone arrangement register 404 for the start information obtained from the input information branching system 401 Then, the matching code and the matching pattern acquired from the stone arrangement pattern table 407 are collated. When a matching pattern matching is obtained by matching, the pattern matching / data acquisition system 403 receives data corresponding to the matching pattern (data indicating information to be output (pattern classification No. described later). Data (see FIG. 11))), and the pattern matching / data acquisition system 403 acquires information data corresponding to the pattern code from the audio data 408 or the image data 409 to obtain a sound system. 205 and the display system 206.
[0028]
The RAM 204 includes a stone arrangement register 404, a start image sender selection status register 405, and an output form selection status register 406.
[0029]
The stone arrangement register 404 records the current state of stone arrangement on the board based on the initiation information output from the input information branching system 401 and the initiation decision system 402 (details are shown in FIG. 5).
[0030]
The start image sender selection status register 405 stores the status of the start image sender (“person who hit” and “person who was hit”) set in the start image selection unit 308 (details are shown in FIG. 6). .
[0031]
The output form selection status register 406 stores the status of the output form (“speech”, “character display”, “picture display”) set in the character display unit 310 (details are shown in FIG. 7).
[0032]
The ROM 202 stores a stone arrangement pattern table 407, audio data 408, and image data 409.
[0033]
In the stone arrangement pattern table 407, a pattern for collation to be collated with a matching code generated by the pattern matching / data acquisition system 403 is recorded. The matching pattern stored in the stone arrangement pattern table 407 represents a stone arrangement pattern for which information should be output to the start. Further, data indicating information to be output (pattern classification number data described later) is associated with the verification pattern. Therefore, even if the verification patterns are different, if the information to be output is the same, the same pattern classification No. Data will be associated.
[0034]
The audio data 408 is audio data to be output as information specified by the pattern code stored in the stone arrangement pattern table 407.
The image data 409 is image data to be output as information specified by the pattern code stored in the stone arrangement pattern table 407.
Although not shown, it is assumed that character data is also stored in the ROM 202 in the same manner as the audio data 408 and the image data 409.
[0035]
FIG. 5 shows specific contents of the stone arrangement register 404.
The stone arrangement register 404 is represented by a two-dimensional matrix with a horizontal board position X and a vertical board position Y so as to easily correspond to the actual board in order to represent the current state of the stone arrangement on the board surface. . The score of the board is 19 × 19 = 361, but the stone arrangement register 404 is provided with a parameter of 21 × 21 by increasing one row on the left and right and top and bottom. The reason why the 21 × 21 parameter is provided is that the board edge is started when obtaining the surrounding stone arrangement situation of a specific start for the purpose of creating a matching code or determining a rule for the start. Is added to the periphery of the board so that it can be processed in the same manner as the start of the board other than the board edge.
[0036]
In general, the method of indicating the score of the board is called by first writing the column number and then the row number, for example, “4 of 16”. “16 of 4” is the intersection of the fourth vertical line from the left and the 16th horizontal line from the top. Each address corresponds to one point on the board, and the stone arrangement status at that point is stored as 2-bit data. For example, when a black stone is started at “4 of 16”, the data at the address of X = 4, Y = 16 is changed from “01” representing an empty point to “10” representing a black stone. In the present embodiment, each data value will be described as representing the following state. That is, “01” is an empty spot where neither black and white are placed, “10” is a spot where a black stone is placed, “11” is a spot where a white stone is placed, and “00” is an actual board. Each non-existent point (peripheral spare address) is shown. Therefore, the data of the peripheral spare address total 76 of X = 0 or 20, Y = 0 or 20 is always “00” and does not change. For other addresses, the initial value is “01”, and the data at the address of the point started as the game progresses changes to a value such as “10” or “11”. When a specific address is called from the CPU 203, the current data value of the address is read from the stone arrangement register 404 and returned to the CPU 203, so that the stone arrangement state can be recognized on the CPU 203 side.
[0037]
In the example of the stone arrangement register 404 shown in FIG. 5 (a), as shown in the example of the board surface shown in FIG. 5 (b), since Shiroishi is started at “3 of 4”, X = 4, Y = 3 The address data of “11” is “11”. Similarly, since black stone is started at “17 of 3”, the address data of X = 3, Y = 17 is “10”, and white stone is started at “17 of 4”, so X = 4 The data at the address of Y = 17 is “11”.
[0038]
In FIG. 5, a two-dimensional matrix is shown so as to easily correspond to an actual board, but any other form may be used as long as it has 21 × 21 = 441 addresses internally.
[0039]
FIG. 6 shows the contents of the start image sender selection status register 405. The start image sender selection status register 405 stores data indicating the start image sender selected by the user by operating the start image selection unit 308 (for example, 2-bit data). That is, “01” is stored when “hit” is selected by the start image selection unit 308, and “10” is stored when “hit” is selected. The data “00” and “11” are invalid.
[0040]
FIG. 7 shows the contents of the output form selection status register 406. The output form selection status register 406 stores data indicating the output form selected by the user operating the output form selection unit 309 (for example, 3-bit data). That is, the first bit is data indicating OFF / ON of audio output, where “0” indicates audio OFF and “1” indicates audio ON. Similarly, the second bit is data indicating character display OFF / ON, “0” indicates character display OFF, “1” indicates character display ON, and the third bit indicates picture display OFF / ON. Data, “0” represents picture display OFF, and “1” represents picture display ON.
[0041]
FIG. 8 is a diagram showing the detailed contents of the matching code generated by the pattern matching / data acquisition system 403. The matching code shown in FIG. 8 shows an example in which partial phases of 8 points around the landing point are targeted.
[0042]
As shown in FIG. 8, the matching code is composed of 3 bytes of data, and the lower 2 bytes are the data of the surrounding stone arrangement of the corresponding start, for example, the data of the positioning of the 8 points around the start (hereinafter referred to as “the surrounding stone arrangement” Data ”), and the upper 1 byte is selected by the start image selection unit 308 and the output form selection unit 309, that is, the data stored in the start image sender selection state register 405 and the output form selection state register 406 (Hereinafter referred to as “information classification selection data”).
[0043]
In the example of FIG. 8, among the surrounding stone arrangement data 2 bytes, the upper 1 byte indicates the stone arrangement state of four points ((1) to (4) in FIG. 8B) obliquely with respect to the landing point. The lower 1 byte indicates the stone arrangement state of four points in the vertical and horizontal directions ((5) to (8) in FIG. 8B). The data format is the same as the data in the stone arrangement register 404 when the stone is not placed (“00” is the off-board point (invalid), “01” is the empty point), but the stone is placed. If it is, the data is converted by assigning “10” and “11” depending on whether it is a stone of a different color or a stone of the same color. This is in order to correspond to the classification method of “striking” and “striking” in the starter image sender classification, and whether the black number or the white number has started is distinguished from which one has started. Without using a common stone arrangement pattern table, it is possible to determine what the starting image of the person who struck and who was struck is the starting image in the stone arrangement situation. Become.
[0044]
In FIG. 8, as the stone arrangement situation around the start, 8 points around the start are targeted, but positions other than the surrounding 8 points can also be targeted. In this case, when the number exceeds eight points, for example, it can be realized by generating a matching code with surrounding stone arrangement data of 3 bytes or more. For example, it is assumed that the range targeted by the matching pattern stored in the stone arrangement pattern table 407 for determining the situation where information should be output is cut out as peripheral stone arrangement data.
[0045]
In the information classification selection data 1 byte, the storage content of the output form selection status register 406 is copied to the upper 4 bits, and the storage content of the start image sender selection status register 405 is copied to the lower 4 bits.
[0046]
FIG. 9 shows the contents of the pattern code generated by the pattern matching / data acquisition system 403.
The pattern code is 2-byte data corresponding to the information to be output on a one-to-one basis, and the data corresponding to the information classification (higher-order 1 byte is determined from the selection states of the start image selection unit 308 and the output form selection unit 309) Hereinafter, the information is referred to as “information classification data”), and the lower 1 byte is data obtained by matching the lower 2 bytes (peripheral stone arrangement data) of the matching code with the matching pattern stored in the stone arrangement pattern table 407 (hereinafter referred to as “information classification data”). Called “pattern classification No. data”). “Pattern classification No. data” is serial number data in which the pattern for collation (that is, the stone arrangement pattern around the start) is rearranged according to the information of the information, and the pattern for collation is different. If the information to be output is the same, the same data is used.
[0047]
Next, the operation of the game information processing apparatus in the system of this embodiment will be described.
First, a process for an input by a user operation will be described with reference to the flowchart shown in FIG. Here, it is assumed that the Go game program is activated and a game of Go game is being executed.
[0048]
When an input operation is performed on the display screen 301 by operating the keyboard 104 or the mouse 105, the input information branching system 401 receives a user input from the keyboard 104 or the mouse 105 through the keyboard / mouse input unit 201. (FIG. 4 (1)).
[0049]
The input information branching system 401 determines whether the user input is a start input in the board display unit 302 or a command input in any of the command selection unit 305, the start image selection unit 308, and the output form selection unit 309 ( Steps A1, A2).
[0050]
Here, in the case of command input, if the command input is from the command selection unit 305, the input function is executed by the input information branching system 401 issuing an instruction to the Go game program. Further, the input information branching system 401 is a command input in the start image selection unit 308, that is, an input to a “struck person” button or a “struck person” button for selecting a start image sender (step A3, Yes). ), The start image sender selection status register 405 of the RAM 204 is changed to the content of the selected button (step A4) (FIG. 4 (2)). In this way, by setting which information is output to which player of the Go game (that is, the “struck person” button or “struck person”), the start image for the set player can be obtained. Can be output as information.
[0051]
Further, the input information branching system 401 is a command input in the output form selection unit 309, that is, an input for selecting “speech”, “character display”, and “picture display” which are information output forms for the start (Step A 5, Yes) ) The contents of the output form selection status register 406 of the RAM 204 are changed to the selected output form (step A6) (FIG. 4 (2)).
[0052]
Then, the setting corresponding to these command inputs is performed, so that when a specific stone arrangement pattern is set by the start, the start image sender selection status register 405 and the output form selection status register 406 are stored. Information is output according to the content.
[0053]
On the other hand, if the user input is a start input, the input information branching system 401 stores start information indicating the start position in the stone register 404 and that the pattern matching / data acquisition system 403 has started. To initiate the start process (step A7). In addition, in the Go game program, in general, when processing the input start, a process for automatically determining rules such as whether the start information indicates the correct start is executed. A function to invalidate the set start information.
[0054]
The start processing is also executed when the user's opponent is a computer and the start information is input by the start determination system 402.
[0055]
Next, the pattern matching / data acquisition system 403 sets a pattern number counter for counting the matching patterns stored in the stone arrangement pattern table 407 to an initial value 1 (step A8), and the pattern number counter-th matching is performed. An operation pattern is acquired (step A9).
[0056]
The pattern matching / data acquisition system 403 cuts out the partial situation to be collated with the matching pattern obtained from the stone arrangement pattern table 407 from the stone arrangement register 404 based on the start information, and shows the partial situation shown in FIG. The matching code including the surrounding stone arrangement data representing is generated (step A10). That is, the pattern matching / data acquisition system 403 generates the upper 1 byte of the matching code based on the contents stored in the start image sender selection status register 405 and the output form selection status register 406, and consists of the following 2 bytes. Peripheral stone arrangement data is generated from the data around the current start information stored in the stone arrangement register 404.
[0057]
FIG. 11 shows a flowchart of a partial phase cutout process for cutting out the peripheral data of the start information in order to generate the peripheral stone arrangement data, and FIG. 12 shows the data structure of the data table used in the process.
[0058]
First, the pattern matching / data acquisition system 403 acquires the “number of grids to be cut out” of the verification pattern currently focused from the stone arrangement pattern table 407 (step B1). Here, it is assumed that a matching pattern for an array as shown in FIG. Accordingly, the “number of grids to be cut out” here is “8” as shown in the data table of FIG.
[0059]
Then, the pattern matching / data acquisition system 403 sets an initial value 1 to a cell counter for counting the “number of cells to be cut out” (step B2), and sets the cut-out position for the cell counter-th landing point. Relative coordinates are acquired (step B3). For example, in the example of FIG. 12, (-1, -1) is designated as “square relative position 1”, so that the upper left (1) of the landing point is as shown in the example of FIG. 8B. The position is set as the cutout position.
[0060]
Then, the pattern matching / data acquisition system 403 refers to the stone arrangement register 404 and acquires the stone arrangement data T of the relative coordinates of the cutout position (step B4).
[0061]
Here, when the value of the data T is “00” (indicating invalidity), the value of T is directly copied to the corresponding bit of the matching code (neighboring stone arrangement data) (steps B5 and B10). For example, when the upper left (1) of the landing point is the relative coordinates of the cut-out position, it is copied to the first 2 bits of the first byte of the surrounding stone arrangement data. If the value of the data T is “01” (represents an empty point), the value of T is similarly copied to the corresponding bit of the matching code (peripheral stone arrangement data) (steps B6 and B10).
[0062]
On the other hand, when the value of the data T matches the color C (white or black) of the start indicated by the start information (step B7, Yes), it is determined that there is a stone having the same color as that of the landing stone. The value is represented as “11” and copied to the corresponding bit of the matching code (neighboring stone arrangement data) (steps B8 and B10). If the value of the data T does not match the color C (white or black) of the start indicated by the start information (No in Step B7), it indicates that there is a stone whose T value is different from the landing stone. It is converted to “10” and copied to the corresponding bit of the matching code (peripheral stone arrangement data) (steps B9 and B10).
[0063]
Thus, when the cell counter-th cut-out is completed, the value of the cell counter is incremented by 1 to change the cut-out position target (step B11). Here, if the extraction has not been completed for all of the “number of grids to be cut out” (No in Step B12), the pattern matching / data acquisition system 403 cuts out the grid counter-th landing point in the same manner as described above. The relative coordinates of the position are acquired, and the data T of the relative coordinates is copied to the matching code (steps B3 to B11). Accordingly, in the example shown in FIG. 8B, all the squares from the relative coordinates (1) to (8) are obtained by sequentially obtaining the square relative position data of the squares in the data table as shown in FIG. Data T is cut out and sequentially copied to the surrounding stone arrangement data to generate a matching code.
[0064]
In addition, the surrounding stone arrangement data of the matching code is black because the data T obtained from the stone arrangement register 404 is converted in steps B8 and B9 according to the stone different from the color of the landing stone or the stone of the same color. Regardless of whether the number or white number starts, it is possible to determine the stone arrangement status by the start. In other words, based on the result of comparison with the pattern for verification described later, it is possible to determine what the starting image is for each of the “striking person” and “striking person” in the starting image sender classification. .
[0065]
When the pattern matching / data acquisition system 403 generates a matching code including peripheral stone arrangement data by the partial pattern cutout process described above, the pattern for matching currently extracted from the stone arrangement pattern table 407 and the cutout situation (peripheral arrangement) are generated. Comparison with stone data portion) (step A11).
[0066]
Here, when the two patterns do not meet a predetermined condition such as “matching”, that is, when the matching pattern does not match the surrounding stone arrangement pattern (the cut out partial phase) (step A12, No), the pattern The matching / data acquisition system 403 adds +1 to the pattern number counter in order to shift to processing for the next matching pattern, assuming that the current target is not in the stone arrangement state indicated by the matching pattern (step A13). Here, in addition to determining whether or not “match”, for example, a method of determining based on a condition that the cut-out current situation “includes” a matching pattern is also possible.
[0067]
Here, if the processing for all the matching patterns stored in the stone arrangement pattern table 407 has not been completed, the pattern matching / data acquisition system 403 acquires the next matching pattern in the same manner as described above. Then, a matching code for this verification pattern is generated and compared.
[0068]
Note that, as described above, when the matching pattern acquired from the stone arrangement pattern table 407 targets other than the eight points around the landing point, the partial phase cutout process corresponds to the matching pattern “ It is assumed that the matching code is generated by performing partial phase segmentation (generation of surrounding stone arrangement data) according to “the number of grids to be segmented”. In this case, it is realized by a method in which another data is prepared in advance as the pattern cutting data shown in FIG. Further, a different range for each matching pattern may be cut out as a partial aspect. In this case, the pattern cutting data shown in FIG. 12 can be prepared for each matching pattern.
[0069]
On the other hand, when it is determined that a predetermined condition such as “match” is satisfied by comparing the verification pattern with the cut-out aspect (matching code) (step A12, Yes), the pattern matching / data acquisition system 403 satisfies the condition. Output data corresponding to the pattern number of the matched pattern for matching is acquired (step 15), and a pattern code corresponding to the matching code is generated (FIG. 4 (5)).
[0070]
That is, each collation pattern has a pattern classification No. indicating information to be output. Data is associated, and this pattern classification No. A pattern code as shown in FIG. 9 is acquired based on the data and the information classification selection data of the matching code (output form selection situation, start image sender selection situation).
[0071]
The pattern matching / data acquisition system 403 determines whether the output form definition unit included in the information classification data of the pattern code indicates “speech”, “character display”, or “picture display (image)” as the output form ( Steps A16, A18, A20).
[0072]
If it is determined that “speech” is designated as the output form (step A16, Yes), the pattern matching / data acquisition system 403 determines the pattern classification No. included in the pattern code. Audio data 408 indicated by the data is acquired as information data and output from the speaker 103 through the sound system 205 (step A17).
[0073]
Similarly, when it is determined that “picture display (image)” is designated as the output form (step A18, Yes), the pattern matching / data acquisition system 403 determines the pattern classification No. included in the pattern code. Image data 409 indicated by the data is acquired as information data, and is output on the picture display unit 311 of the display screen 301 through the display system 206 (step A19).
[0074]
If it is determined that “character” is designated as the output form (step A20, Yes), the pattern matching / data acquisition system 403 displays the pattern classification No. included in the pattern code. The character data indicated by the data is acquired as information data, and is output on the character display unit 310 of the display screen 301 through the display system 206 (step A21).
Note that a plurality of designations of “voice”, “character display”, and “picture display” may be selected. Therefore, according to the set output form, output data can be output as any one of character data, audio data, and image data, or in any combination.
[0075]
FIG. 13 shows an example of the correspondence between the board surface arrangement actually started, the matching code, the pattern code, and the finally outputted information.
[0076]
(A), (B), and (C) in the board surface arrangement state of FIG. 13 (1) show examples of “cutting” black stones by starting with white numbers.
[0077]
In the example of the stone arrangement status (A), the matching code (neighboring stone arrangement data) is “0101111001101001”. And by collating this with the pattern for collation of the stone arrangement pattern table 407, pattern classification No data "00011010" can be acquired, for example. The pattern classification number data is 26 when converted to a decimal number, indicating that it corresponds to the 27th pattern “cut” in the pattern classification. The contents of the information data corresponding to this “cut” pattern include “chokien” sound (sound for the person who struck), “gya” sound (sound for the person who was struck), and the characters “chokin!” Character display), the character “Gya ~!” (Character display for a struck person), a picture display for a struck person, and a picture display for a struck person. Information data corresponding to the information classification data (output form, start image sender) indicated by the upper 1 byte of the pattern code is acquired from this information data and output.
[0078]
In the case of the stone arrangement status (B) and (C), the same pattern classification No. as in the case of the stone arrangement status (A) is obtained by comparing the stone arrangement pattern table 407 with the verification pattern. Similarly, data corresponding to the information classification data among the information data corresponding to the “cut” pattern is output.
[0079]
Further, the stone arrangement situation (D) shows an example (magali example) in which a black stone is pressed by starting a white turn.
[0080]
In the example where the stone arrangement status is (D), the matching code (neighboring stone arrangement data) is “0110110101101101”. By collating this with the pattern for collation of the stone arrangement pattern table 407, for example, pattern classification number data “00011011” can be acquired. The pattern classification number data is 27 when converted to a decimal number, indicating that it corresponds to the 28th pattern “magari” in the pattern classification. As the contents of the information data corresponding to the “magari” pattern, “Gui” (sound for human beings), “Hard ne” (sound for humans being struck), and the like are prepared. Then, information data corresponding to the pattern code information classification data (output form, starting image sender) is acquired and output from the information data.
[0081]
In this way, the user can be presented with specific images such as “speech”, “character display”, “picture display”, etc., and the meaning of the start can be easily grasped. Can make the game of Go more fun. In addition, for beginners who do not fully understand the concept of Go, the meaning and nuances of the start are easier to perceive and help to improve.
[0082]
In the partial phase cut-out process described above, the partial phase is cut out and compared with the matching pattern for the stone arrangement on the actual board surface stored in the stone arrangement register 404, but the partial phase is started. You may make it use for the comparison with the pattern for collation, after changing into the format which does not change the meaning with respect to the board surface state of information. In other words, on the Go board, the meanings of starting on all the board faces in which the stones are rotated every 90 °, and further rotated by 0 °, 90 °, 180 °, 270 °, and the left and right sides are interchanged are the same. It is. Therefore, if a matching pattern for any one state of the rotated board surface and the left and right board surface is prepared in the stone arrangement pattern table 407, all predetermined states represented by the board surface state can be obtained. Even if the pattern to represent is not prepared, the board surface situation by starting is discriminated by collating each of the phase obtained by rotating the partial phase cut out from the stone arrangement register 404 every 90 ° and the phase where the left and right are switched. Will be able to. In addition, it is possible to determine the board surface situation in the same way even if partial cutout is performed after preparing the board surface stored in the stone arrangement register 404 every 90 ° and the one obtained by switching the left and right. it can.
[0083]
Further, when the data T is acquired from the periphery of the landing point in order to generate the peripheral stone arrangement data (matching code) instead of rotating or changing the left and right sides of the partial phase (or the board surface) (FIG. 11, step B4). The same partial cutout can be executed by changing the order of data acquisition to the order corresponding to when the board surface (partial phase) is rotated and when the left and right are switched.
[0084]
Further, it is needless to say that instead of rotating the cut partial phase, each pattern for comparison may be rotated and the respective patterns may be compared with the partial phase.
[0085]
In addition, of course, if the reference pattern corresponding to each of the case where the board surface (partial phase) is rotated and the left and right are exchanged is prepared in the stone arrangement pattern table 407, the above-described case of cutting out the partial phase is described. Such processes as rotation of the board surface (partial phase) and left-right switching of the board surface are unnecessary.
[0086]
In the above description, “cutting” (cutting) is used as an example for the sake of simplicity, but various other situations such as “Nobi”, “Keima”, “Ichigo Tobi”, “Nozoki” are also covered. It can be. “Nobi”, “Gui”, “Nyoki”, “Keima”, “Byon”, etc. ”And the like, various information (data for each voice, character display, and picture display) can be prepared and output as appropriate. In addition, when the stone is hooked and “aged”, information such as “paku” and “gaburi” may be used, or information different from the others may be output.
[0087]
In addition, the selection item of the start image sender is increased so that both players can be selected at the same time. When one is started, information indicating “disconnection” of “chokien” for “the person who struck” is output and fixed. It is also possible to output “Gya ~” information for the “struck person” after a lapse of time.
[0088]
Further, the above description is assumed to be realized by a stand-alone type system as shown in FIG. 1, but can be applied to a system for playing a network as shown in FIG.
[0089]
The system shown in FIG. 14 includes various networks 504 including Go game terminals 502 and 503 in which the electronic Go game server 501 is realized by a personal computer, a PDA (personal digital assistant), a mobile phone terminal, a game dedicated terminal, and the like, and the Internet. It is possible to play between Go game terminals 502 and 503 by being connected to each other.
[0090]
It is assumed that the electronic Go game server 501 is provided with the functions related to the above-described information output, that is, the functions realized by the CPU 203, the ROM 202, and the RAM 204 shown in FIG.
[0091]
When the electronic Go game server 501 acquires user input (start data) input from the Go game terminal 502, for example, it outputs game data for progressing the game to the opponent Go game terminal 503. If the situation is determined based on the start information as described above and it is determined that the information should be output, the information data is sent to the Go game terminal 503 together with the game data, and the start is made. Is output at the Go game terminal 503 which is the other terminal (when the start image sender selection is “struck person”). Also, when the start image sender selection is “person who hit”, the information data is sent to the Go game terminal 502 which is the terminal that started the game, and is output from the Go game terminal 502. Furthermore, the selection of the start image sender may be both “struck person” and “struck person”, and different information data for each may be transmitted and output.
[0092]
Here, since voice and image data are generally very large data, for example, voice and image data are distributed to each terminal in advance by CD-ROM, communication, etc. May simply transmit only the number of data to be reproduced by the terminal. By doing in this way, since the communication data amount for every station reduces, a data communication charge can be made cheap and progress of a game can be made quick.
[0093]
In the above description, the Go game is described as an object. However, other games such as shogi, chess, othello games, diamond games, and the like that change in the situation can be targeted.
[0094]
For example, in the case of shogi, in addition to information indicating the status of the board such as “Ote” and “Two-dori”, it is different from the case of showing the status of the board that the warrior will be obsessed with when hitting a holding piece. The picture display (image) and sound may be output.
[0095]
Further, in the case of chess, information can be output when a situation such as “check”, “check mate”, or “casting” occurs.
[0096]
In this way, various types of information that can be used to sensuously capture the situation according to the target game are prepared, and when this situation occurs, the information is output as appropriate to increase interest in the game and improve You can also help.
[0097]
When discriminating the board layout, the board layout should be made uniform by rotating every 90 ° in Go, and 180 ° in shogi and chess regardless of who the player is. However, in the diamond game, the board surface can be unified by rotating the board surface by 60 ° or 30 ° in the same manner as other games. By unifying the arrangement of the board surfaces, the number of verification patterns stored in the stone arrangement pattern table 407 can be reduced, and the processing efficiency can be improved.
[0098]
In addition, this invention is not limited to embodiment mentioned above, In the implementation stage, it can change variously in the range which does not deviate from the summary. Further, the functions executed in the above-described embodiments may be combined as appropriate as possible. The above-described embodiments include various stages of the invention, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if several constituent requirements are deleted from all the constituent requirements shown in the embodiment, an effect can be obtained, so that a configuration from which the constituent requirements are deleted can be extracted as an invention.
[0099]
The processing described in each of the embodiments described above is a game information processing program that can be executed by a computer, such as a magnetic disk (flexible disk, hard disk, etc.), optical disk (CD-ROM, DVD, etc.), semiconductor memory, etc. It can be written on a recording medium and provided to various apparatuses. It is also possible to transmit to a variety of devices by transmitting via a communication medium. The computer that executes the game reads the game information processing program recorded on the recording medium or receives the game information processing program via the communication medium, and the operation is controlled by the program to execute the above-described processing. To do.
[0100]
【The invention's effect】
As described above, according to the present invention, when the board information is input, the partial board surface state related to the start information is cut out from the board surface state, and it is determined that this board surface state is in a predetermined state. Since the output data expressing the meaning of the start information with respect to the board surface is output, the meaning of the start can be easily grasped sensuously.
[Brief description of the drawings]
FIG. 1 is an external view showing a configuration of a system that implements a game information processing apparatus according to an embodiment.
FIG. 2 is a block diagram showing a main configuration of a system in the present embodiment.
FIG. 3 is a diagram showing an example of a main screen displayed on the display 101 when executing a Go game program in the system of the present embodiment.
FIG. 4 is a block diagram showing a configuration of functions related to information output in the present embodiment.
FIG. 5 is a diagram showing specific contents of a stone arrangement register 404;
FIG. 6 is a view showing the contents of a start image sender selection situation register 405;
FIG. 7 is a view showing the contents of an output form selection status register 406;
FIG. 8 is a diagram showing detailed contents of a matching code generated by a pattern matching / data acquisition system 403;
FIG. 9 is a view showing the contents of a pattern code generated by the pattern matching / data acquisition system 403;
FIG. 10 is a flowchart for explaining processing for an input by a user operation according to the present embodiment.
FIG. 11 is a flowchart for explaining a partial phase cut-out process of cutting out peripheral data of start information in order to generate peripheral stone arrangement data in the present embodiment.
FIG. 12 is a diagram showing a data structure of a pattern cutout data table used for partial phase cutout processing for cutting out peripheral data of start information for generating peripheral stone arrangement data in the present embodiment.
FIG. 13 is a diagram showing an example of correspondence between a board surface arrangement state actually started, a matching code, a pattern code, and finally outputted information.
FIG. 14 is a diagram illustrating an example of a system for playing a network.
[Explanation of symbols]
101 ... Display
102 ... PC body
103 ... Speaker
104 ... Keyboard
105 ... Mouse
201 ... Keyboard / mouse input section
202 ... ROM
203 ... CPU
204 ... RAM
205 ... Sound system
206 ... Display system
301 ... Display screen
303 ... Remaining time display section
304: Message display section
305 ... Command selection section
307 ... Information classification setting / display section
308 ... Start image selection section
309 ... Output form selection unit
310 ... Character display part
311 ... Picture display section
401 ... Input information branching system
402 ... Start determination system
403 ... Pattern matching / data acquisition system
404 ... stone arrangement register
405 ... Start image sender selection status register
406 ... Output form selection status register
407 ... stone pattern table
408 ... voice data
409 ... image data

Claims (7)

囲碁ゲームにおける白番及び黒番の着手情報を入力する入力手段と、
前記入力手段によって入力された着手情報に基づく白石と黒石の盤面上の位置を示すデータを含む配石状況を記憶する記憶手段と、
前記入力手段による着手情報の入力に伴って、前記記憶手段に記憶された配石状況から当該着手情報と関連する部分的な配石状況を切り出す部分切り出し手段と、
前記部分切り出し手段によって切り出された部分的な配石状況が、予め設定された所定の配石状況にあるか否かを判別する判別手段と、
前記所定の配石状況ごとに対応づけられた前記着手情報の配石状況に対する意味を表現する、文字データ、音声データ、画像データの少なくとも何れか1つの出力データを記憶するデータ記憶手段と、
前記判別手段によって前記部分的な配石状況前記所定の配石状況にあると判別された場合に、前記データ記憶手段に記憶された当該所定の配石状況と対応づけられた出力データを出力する出力手段と
を具備したことを特徴とするゲーム情報処理装置。
Input means for inputting start information of white and black numbers in the Go game;
Storage means for storing a stone arrangement situation including data indicating positions on the board surface of Shiroishi and Kuroishi based on the start information input by the input means;
A partial cutout means for cutting out a partial stone arrangement situation related to the start information from the stone arrangement situation stored in the storage means in accordance with the input of the start information by the input means;
A discriminating means for discriminating whether or not the partial stone arrangement situation cut out by the partial cut-out means is in a predetermined stone arrangement situation set in advance ;
Representing a meaning for distribution stone status of the launched information corresponding to each of the predetermined distribution stone status, and data storage means for storing character data, voice data, at least any one of output data of the image data,
Wherein when the partial distribution stones situation by determining means is determined to be in the predetermined distribution stone status, the data storage means output data associated with the predetermined distribution stones situations stored in the output And a game information processing apparatus.
前記部分切り出し手段は、
前記記憶手段に記憶された配石状況から切り出す部分的な配石状況に含まれるデータについて、前記入力手段によって白番の着手情報が入力された場合に、白石を示すデータを第1のデータ、黒石を示すデータを第2のデータに変換し、前記入力手段によって黒番の着手情報が入力された場合に、黒石を示すデータを前記第1のデータ、白石を示すデータを前記第2のデータに変換することを特徴とする請求項1記載のゲーム情報処理装置。
The partial cutout means is
Regarding data included in a partial stone arrangement situation cut out from the stone arrangement situation stored in the storage means, when white start information is input by the input means, the data indicating the white stone is the first data, Kuroishi Is converted into second data, and when black start information is input by the input means, data indicating black stone is converted into the first data, and data indicating white stone is converted into the second data . The game information processing apparatus according to claim 1, wherein conversion is performed.
前記判別手段は、
前記所定の配石状況を表すパターンを記憶するパターン記憶手段と、
前記部分切り出し手段により切り出された部分的な配石状況と前記パターン記憶手段に記憶されたパターンとを比較し、同一であった場合に前記部分的な配石状況が所定の配石状況にあると判別するパターン判別手段とを具備したことを特徴とする請求項1記載のゲーム情報処理装置。
The discrimination means includes
Pattern storage means for storing a pattern representing the predetermined stone arrangement situation ;
The partial stone arrangement situation cut out by the partial cutout means is compared with the pattern stored in the pattern storage means, and when the partial stone arrangement situation is the same, the partial stone arrangement situation is in a predetermined stone arrangement situation . The game information processing apparatus according to claim 1, further comprising pattern discriminating means for discriminating between and.
前記判別手段は、
前記部分切り出し手段により切り出された前記部分的な配石状況を90°ごとに回転させたパターンに変更する変更手段をさらに具備し、
前記パターン判別手段は、前記変更手段によって変更された部分的な配石状況のパターンのそれぞれと、前記パターン記憶手段に記憶されたパターンとを比較することを特徴とする請求項3記載のゲーム情報処理装置。
The discrimination means includes
Further comprising changing means for changing the partial stone arrangement situation cut out by the partial cut-out means to a pattern rotated every 90 ° ;
4. The game information according to claim 3, wherein the pattern discriminating unit compares each partial stone arrangement pattern changed by the changing unit with a pattern stored in the pattern storage unit. Processing equipment.
前記出力手段によって出力される出力データを文字データ、音声データ、画像データの何れの出力形態にするかを設定する出力形態設定手段を有し、
前記データ記憶手段は、前記所定の配石状況ごとに複数の出力形態に対応する出力データを記憶し、
前記出力手段は、前記出力形態設定手段により設定された出力形態に応じた出力データを前記データ記憶手段から取得して出力することを特徴とする請求項1記載のゲーム情報処理装置。
An output form setting means for setting whether the output data output by the output means is output form of character data, audio data, or image data ;
The data storage means stores output data corresponding to a plurality of output forms for each predetermined stone arrangement situation ,
2. The game information processing apparatus according to claim 1, wherein the output unit acquires and outputs output data corresponding to the output mode set by the output mode setting unit from the data storage unit.
囲碁ゲームの何れの対局者に対する出力データを出力するかを設定する出力設定手段をさらに具備し、
前記出力手段は、前記出力設定手段により設定された対局者に対する出力データを出力することを特徴とする請求項1記載のゲーム情報処理装置。
It further comprises output setting means for setting which player of the Go game to output the output data,
The game information processing apparatus according to claim 1, wherein the output unit outputs output data for the player set by the output setting unit.
コンピュータを、
囲碁ゲームにおける白番及び黒番の着手情報を入力する入力手段と、
前記入力手段によって入力された着手情報に基づく白石と黒石の盤面上の位置を示すデータを含む配石状況を記憶する記憶手段と、
前記入力手段による着手情報の入力に伴って、前記記憶手段に記憶された配石状況から当該着手情報と関連する部分的な配石状況を切り出す部分切り出し手段と、
前記部分切り出し手段によって切り出された部分的な配石状況が、予め設定された所定の配石状況にあるか否かを判別する判別手段と、
前記所定の配石状況ごとに対応づけられた前記着手情報の配石状況に対する意味を表現する、文字データ、音声データ、画像データの少なくとも何れか1つの出力データを記憶するデータ記憶手段と、
前記判別手段によって前記部分的な配石状況前記所定の配石状況にあると判別された場合に、前記データ記憶手段に記憶された当該所定の配石状況と対応づけられた出力データを出力する出力手段として機能させるためのゲーム情報処理プログラム。
Computer
Input means for inputting start information of white and black numbers in the Go game;
Storage means for storing a stone arrangement situation including data indicating positions on the board surface of Shiroishi and Kuroishi based on the start information input by the input means;
A partial cutout means for cutting out a partial stone arrangement situation related to the start information from the stone arrangement situation stored in the storage means in accordance with the input of the start information by the input means;
A discriminating means for discriminating whether or not the partial stone arrangement situation cut out by the partial cut-out means is in a predetermined stone arrangement situation set in advance ;
Representing a meaning for distribution stone status of the launched information corresponding to each of the predetermined distribution stone status, and data storage means for storing character data, voice data, at least any one of output data of the image data,
Wherein when the partial distribution stones situation by determining means is determined to be in the predetermined distribution stone status, the data storage means output data associated with the predetermined distribution stones situations stored in the output game information processing program to function as an output unit for.
JP2002255478A 2002-08-30 2002-08-30 Game information processing apparatus and game information processing program Expired - Fee Related JP3835378B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002255478A JP3835378B2 (en) 2002-08-30 2002-08-30 Game information processing apparatus and game information processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002255478A JP3835378B2 (en) 2002-08-30 2002-08-30 Game information processing apparatus and game information processing program

Publications (2)

Publication Number Publication Date
JP2004089472A JP2004089472A (en) 2004-03-25
JP3835378B2 true JP3835378B2 (en) 2006-10-18

Family

ID=32060993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002255478A Expired - Fee Related JP3835378B2 (en) 2002-08-30 2002-08-30 Game information processing apparatus and game information processing program

Country Status (1)

Country Link
JP (1) JP3835378B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006051250A (en) * 2004-08-13 2006-02-23 Aruze Corp Shogi game server and shogi game provision system
JP2006051253A (en) * 2004-08-13 2006-02-23 Aruze Corp Shogi game server and shogi game provision system
JP2019191786A (en) * 2018-04-21 2019-10-31 Heroz株式会社 Game program generation device and game program generation program
CN110399888B (en) * 2019-07-25 2021-08-27 西南民族大学 Weiqi judging system based on MLP neural network and computer vision

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61131773A (en) * 1984-11-30 1986-06-19 富士通株式会社 Game hand extraction apparatus
JP4206628B2 (en) * 2000-09-29 2009-01-14 カシオ計算機株式会社 GAME DEVICE, GAME DATA SEARCH DEVICE, GAME SYSTEM, GAME METHOD, STORAGE MEDIUM CONTAINING GAME PROGRAM
JP4211234B2 (en) * 2001-04-23 2009-01-21 カシオ計算機株式会社 GAME SERVER DEVICE AND GAME TERMINAL DEVICE

Also Published As

Publication number Publication date
JP2004089472A (en) 2004-03-25

Similar Documents

Publication Publication Date Title
US6464585B1 (en) Sound generating device and video game device using the same
US6656051B2 (en) Game progression control method, computer-readable recording medium, and game apparatus
US6913537B2 (en) Recording medium and entertainment system
JP3458090B2 (en) GAME SYSTEM HAVING MESSAGE EXCHANGE FUNCTION, GAME DEVICE USED FOR THE GAME SYSTEM, MESSAGE EXCHANGE SYSTEM, AND COMPUTER-READABLE STORAGE MEDIUM
EP1029571B1 (en) Game system, game device capable of being used in the game system, and computer-readable memory medium
JP5121669B2 (en) GAME PROGRAM, GAME NETWORK SYSTEM, GAME DEVICE, AND GAME CONTROL METHOD
JP4167710B2 (en) Video game processing apparatus and video game processing program
JP4068016B2 (en) GAME DEVICE, GAME CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2009089956A (en) Video game apparatus, game advancing method, program, and recording medium
JP2008113808A (en) Game program, game apparatus and game control method
JP3835378B2 (en) Game information processing apparatus and game information processing program
WO2005025706A1 (en) Video game program, video game device, and video game method
JP4019092B2 (en) Game device and program
JP3818769B2 (en) Information storage medium, game device, and game system
JP4599416B2 (en) GAME PROGRAM, GAME DEVICE, AND GAME CONTROL METHOD
US7136080B1 (en) Entertainment system, entertainment apparatus, recording medium, and program providing color coded display messages
JP2002282533A (en) Game program, recording medium with game program recorded thereon, story development processing method in role playing game, and game device
JP2008161248A (en) Game program, game apparatus and game control method
JP2000225272A (en) Device and method for controlling game, computer readable recording medium recording game program and game system
WO2000044457A1 (en) Control method, recorded medium, and video game machine
JP4559591B2 (en) Link game system, game information storage medium storing link game program, and link game method
JP2002369967A (en) Game system and game program
JP2001079269A (en) Game system and information memory medium
JP7009539B2 (en) Game processing equipment, terminals and programs
JP2017164552A (en) Video game device, game progress method, server device and video game processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050527

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060418

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060607

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060704

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060717

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100804

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110804

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130804

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees