JP4804253B2 - Self-operation control method, apparatus, program, and recording medium for shooting game - Google Patents
Self-operation control method, apparatus, program, and recording medium for shooting game Download PDFInfo
- Publication number
- JP4804253B2 JP4804253B2 JP2006202527A JP2006202527A JP4804253B2 JP 4804253 B2 JP4804253 B2 JP 4804253B2 JP 2006202527 A JP2006202527 A JP 2006202527A JP 2006202527 A JP2006202527 A JP 2006202527A JP 4804253 B2 JP4804253 B2 JP 4804253B2
- Authority
- JP
- Japan
- Prior art keywords
- probability
- cell
- time
- aircraft
- enemy aircraft
- 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
Links
Images
Description
本発明は、シューティングゲームのデモンストレーションプレイ(デモ画面)、又は、オートパイロット制御時における、自機の動作制御方法、装置、プログラム及びその記録媒体に関する。 The present invention relates to an operation control method, apparatus, program, and recording medium for the own apparatus at the time of demonstration play of a shooting game (demo screen) or autopilot control.
従来は、シューティングゲームにおいて自機を適切に自動操作する方法は提示されていなかった。
このため、シューティングゲームのデモンストレーションプレイ(以下、デモ画面という。)は、あるプレイヤーが過去に行った模範的なプレイの動画を再生するだけのものや、ランダムに自機を移動させ、ランダムに攻撃弾を発射するような単純なアルゴリズムを利用するものに限られていた。
ここで、シューティングゲームのデモンストレーションプレイとは、プレイヤーがプレイを行っていないいわば待ち状態のときに、シューティングゲームの内容や魅力を説明するために画面上に表示される、そのシューティングゲームの模範的なプレイのことである。
For this reason, a demonstration play of a shooting game (hereinafter referred to as a demo screen) can only be used to play a video of an exemplary play performed by a player in the past, or it can randomly move itself and attack randomly. They were limited to using simple algorithms such as firing bullets.
Here, a demonstration play of a shooting game is an example of the shooting game that is displayed on the screen to explain the content and charm of the shooting game when the player is not playing, in a waiting state. It's about playing.
しかし、模範的なプレイの動画を再生するだけでは、いつも同じデモンストレーションプレイが繰り返し表示されるだけであり、そのシューティングゲームの内容や魅力の一部しか表現することができないという問題があった。
また、ランダムに自機を移動させ、ランダムに攻撃弾を発射させるような単純なアルゴリズムは、人の目から見て理にかなった動作をするものではなく、多くの場合、敵機の攻撃によって自機はすぐに破壊されてしまう。このため、そのシューティングゲームの内容を理解させるほどの長い時間に渡って、デモ画面を表示することが難しいという問題があった。
ところで、デモンストレーションプレイにおける自機の動作アルゴリズムを知的なものにするためには、人工知能の技術を導入するのが有効であると考えられるが、現在の人口知能におけるゲームの研究は、チェス、オセロ、将棋といった非アクション系の思考ゲームが中心であった(例えば、非特許文献1参照。)。すなわち、人工知能の技術を、シューティングゲームのようなアクションゲームに応用する試みがないという問題があった。
However, there is a problem that only the same demonstration play is displayed repeatedly only by playing the movie of the exemplary play, and only a part of the content and charm of the shooting game can be expressed.
In addition, a simple algorithm that moves the aircraft randomly and fires an attack bullet at random does not work rationally from the human eye. Your aircraft will be destroyed immediately. For this reason, there has been a problem that it is difficult to display the demonstration screen for a long time that allows the contents of the shooting game to be understood.
By the way, it seems that it is effective to introduce artificial intelligence technology in order to make the operation algorithm of the own machine in the demonstration play intelligent, but the research of the game in the current artificial intelligence is chess, The focus was on non-action thinking games such as Othello and Shogi (see Non-Patent
また、チェス、オセロ、将棋といった思考ゲームを解くための人工知能の技術研究は、効率的に深い探索計算を行うための手法の開発に集中している。たしかに、効率的に深い探索計算を行う技術は重要であるが、シューティングゲームのようなアクションゲームでは、探索の深さよりも、探索計算の処理の実時間性を実現することの方が重要である。しかし、探索計算の処理の実時間性を考慮したアルゴリズムがないという問題があった。
本発明は、上記の問題に鑑み、例えばデモンストレーションプレイに使用することができる、人工知能の技術を応用したシューティングゲームの自機動作制御方法、装置、プログラム及びその記録媒体を提供することを目的とする。
Artificial intelligence technology research to solve thinking games such as chess, othello, and shogi is focused on developing methods for efficient deep search computation. Certainly, techniques for efficiently performing deep search calculations are important, but in action games such as shooting games, it is more important to achieve real-time processing of search calculations than the depth of search. . However, there is a problem that there is no algorithm that takes into consideration the real-time property of search calculation processing.
In view of the above problems, an object of the present invention is to provide a self-motion control method, an apparatus, a program, and a recording medium for a shooting game using artificial intelligence technology, which can be used for demonstration play, for example. To do.
選択された移動速度によって自機が移動を始める時刻tをt=0とし、第一存在確率計算手段が、t=nT(nは任意の自然数)において自機が敵機及び敵機の攻撃弾によって破壊されないで、ゲーム画面を分割した格子を構成する各升目sに存在する確率Ps(nT,s)を求めて、第一自機存在確率記憶手段に格納する。自機目標位置決定手段が、第一自機存在確率記憶手段から読み出した、t=nTにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで各升目sに存在する確率Ps(nT,s)のうち、その確率を最も高くする升目を選択して、その升目を目標位置とする。第二自機存在確率計算手段が、時刻t=nTにおいて自機が上記目標位置に到達することが確定している場合に、時刻t=Tにおいて自機が各升目sに存在する確率Psr(T,s)を計算して、第二自機存在確率記憶部に格納する。移動速度決定手段が、時刻t=0における自機が時刻t=Tにおいて到達することができる升目s0’のうち、第二自機存在確率記憶部から読み出した確率Psr(T,s0’)を最も高くする升目に移動するように、時刻t=0における自機の移動速度を決定する。 The time t at which the own aircraft starts moving at the selected moving speed is set to t = 0, and the first existence probability calculation means determines that the own aircraft is the enemy aircraft and the attack bullets of the enemy aircraft at t = nT (n is an arbitrary natural number). The probability Ps (nT, s) existing in each cell s constituting the grid dividing the game screen without being destroyed by the above is obtained and stored in the first own device existence probability storage means. The probability Ps (nT, nT, n) that the target position determination unit is not destroyed by the enemy aircraft and the attacking bullet of the enemy aircraft at t = nT, which is read by the own target position determination unit from the first own existence probability storage unit. s), the cell having the highest probability is selected, and the cell is set as the target position. When it is determined that the second aircraft existence probability calculating means has reached the target position at time t = nT, the probability Psr (1) that the own device exists in each cell s at time t = T. T, s) is calculated and stored in the second device existence probability storage unit. The moving speed determination means uses the probability Psr (T, s0 ′) read from the second own device existence probability storage unit among the cells s0 ′ that the own device at time t = 0 can reach at time t = T. The moving speed of the own device at time t = 0 is determined so as to move to the highest cell.
Psr(t,s)は、時刻t=nTにおいて自機が升目s(Xd,Yd)に到達するとした場合の、時刻tにおいて自機が升目sに存在する確率である。言い換えると、Psr(t,s)は、時刻tにおいて升目sに存在する自機が、時刻t=nTにおいて自機が升目s(Xd,Yd)に到達する可能性を表わす指標である。具体的には、Psr(t,s)が大きい升目に位置する自機ほど、時刻t=nTにおいて自機が升目s(Xd,Yd)に到達する確率が大きくなる。このため、時刻t=0において升目s0に位置する自機が、Psr(T,s0’)を最大にする升目s0’に移動する移動速度wを選択することにより、時刻t=nTにおいて自機が升目s(Xd,Yd)に到達することができる確率が最も高くなるのである。すなわち、このようにして、移動速度wを選択することにより、自機の生存確率を最も高くすることができる。 Psr (t, s) is a probability that the own device exists in the cell s at time t when the own device reaches the cell s (Xd, Yd) at time t = nT. In other words, Psr (t, s) is an index representing the possibility that the own aircraft existing in the cell s at time t will reach the cell s (Xd, Yd) at time t = nT. Specifically, the probability that the own device reaches the cell s (Xd, Yd) at time t = nT increases as the own device is located in the cell where Psr (t, s) is large. For this reason, by selecting the moving speed w at which the own machine located at the cell s0 at the time t = 0 moves to the cell s0 ′ that maximizes Psr (T, s0 ′), the own machine at the time t = nT. Has the highest probability of reaching the cell s (Xd, Yd). That is, by selecting the moving speed w in this way, the survival probability of the own aircraft can be maximized.
本発明により、自機が敵機に容易に破壊されなくなるため、シューティングゲームのデモンストレーションを効率的に行うことができる。 According to the present invention, since the own aircraft is not easily destroyed by the enemy aircraft, it is possible to efficiently demonstrate the shooting game.
[装置構成]
図1に、本発明によるシューティングゲームの自機動作制御装置1の機能構成を例示する。
自機動作制御装置1は、例えば、現在位置取得部2、座標変換部3、第一存在確率計算部4、存在確率記憶部5、自機目標位置決定部8、記憶部10、移動速度決定部11、表示部12、第二自機存在確率計算部91から構成される。
第一存在確率計算部4は、例えば、第一自機存在確率計算部41、敵機存在確率計算部42、敵機攻撃弾存在確率計算部44から構成される。存在確率記憶部5は、例えば、第一自機存在確率記憶部51、敵機存在確率記憶部52、敵機攻撃弾存在確率記憶部53、第二自機存在確率記憶部54から構成される。
第一自機存在確率計算部41は、図6に示すように、例えば、移動確率計算部412、積算部413、加算部414、積算部415、加算部416、積算部417、最大値抽出部419、減算部410から構成される。
[Device configuration]
FIG. 1 illustrates a functional configuration of the own game
The own device
The first presence
As shown in FIG. 6, the first own device existence
敵機存在確率計算部42は、図4に示すように、例えば、敵機移動速度部421、移動確率計算部422、積算部423、加算部424、積算部425、加算部426から構成される。
敵機攻撃弾存在確率計算部44は、図5に示すように、例えば、移動確率計算部442、積算部443、加算部444から構成される。
第二自機存在確率計算部91は、例えば、移動確率計算部912、積算部913、加算部914、積算部915、加算部916、積算部917、最大値抽出部919、減算部910から構成される。
As shown in FIG. 4, the enemy aircraft existence
As shown in FIG. 5, the enemy aircraft attack bullet existence
The second own device existence
<シューティングゲームの説明>
図2に、本発明の処理の対象となるシューティングゲームを例示する。画面上には、自機1と自機1の攻撃弾3、敵機2と敵機2の攻撃弾4が表示される。攻撃弾3、敵機2、攻撃弾4は、複数存在していても良い。敵機2が複数存在している場合には、それらの敵機にはそれぞれ異なる番号i(i=1…I)が付けられているものとする。同様に、敵機の攻撃弾4が複数存在している場合には、それらの敵機の攻撃弾4にはそれぞれ異なる番号j(j=1…J)が付けられているものとする。また、自機1、敵機2、攻撃弾3、攻撃弾4は、X軸とY軸で構成される2次元の平面上に位置するものとする。
<Explanation of shooting game>
FIG. 2 illustrates a shooting game that is a target of the processing of the present invention. On the screen, the
プレイヤーは、自機1を操作して、敵機2と闘う。プレイヤーは、一回の操作で、W種類の移動速度(方向と速さ)で、行動単位時間Tだけ自機を移動させることができる。自機1が取り得るW種類の移動速度(Vxs(w),Vys(w))は予め決められており、それぞれの移動速度(Vxs(w),Vys(w))には、異なる移動速度番号w(w=1,…,W)が付けられているものとする。以下では、移動速度番号wを選択する行動のことを行動wという。また、プレイヤーは、W種類の速度による移動と同時に、敵機2を攻撃するための攻撃弾3を発射する操作をすることができる。
The player operates the
例えば、W=9のとき、
(Vxs(1),Vys(1))=(V,0)
(Vxs(2),Vys(2))=(V,V)
(Vxs(3),Vys(3))=(0,V)
(Vxs(4),Vys(4))=(−V,V)
(Vxs(5),Vys(5))=(−V,0)
(Vxs(6),Vys(6))=(−V,−V)
(Vxs(7),Vys(7))=(0,−V)
(Vxs(8),Vys(8))=(V,−V)
(Vxs(9),Vys(9))=(0,0)
とすることができる。
For example, when W = 9,
(Vxs (1), Vys (1)) = (V, 0)
(Vxs (2), Vys (2)) = (V, V)
(Vxs (3), Vys (3)) = (0, V)
(Vxs (4), Vys (4)) = (− V, V)
(Vxs (5), Vys (5)) = (− V, 0)
(Vxs (6), Vys (6)) = (− V, −V)
(Vxs (7), Vys (7)) = (0, −V)
(Vxs (8), Vys (8)) = (V, −V)
(Vxs (9), Vys (9)) = (0, 0)
It can be.
敵機2は、移動速度(Vxei(a),Vyei(a))で移動することができる。敵機2が取り得るA種類の移動速度(Vxei(a),Vyei(a))は予め定められており、それぞれの移動速度(Vxei(a),Vyei(a))には、異なる移動速度番号a(a=1,…,A)が付けられているものとする。以下では、移動速度番号aを選択する行動のことを行動aという。敵機2は、自機を攻撃するために攻撃弾4を任意の速度(方向と速さ)で発射することができる。発射された攻撃弾4は、所定の移動速度(Vxbj,Vybj)で移動する。敵機2は既存のアルゴリズムに従い行動aを選択し、攻撃弾4を発射するものとする。
自機1が、敵機2及び敵機2が発射する攻撃弾4と衝突した場合には、自機1は破壊され、そこでゲームオーバーとなる。逆に、自機1の攻撃弾3が敵機2に衝突した場合には、敵機2は破壊される。自機1の攻撃弾3によりすべての敵機2を破壊した場合には、ユーザは、そのゲームに勝利することになる。
The
When the
本発明による自機動作制御装置及び方法は、このようなシューティングゲームにおいて、プレイヤーに代わって自機の動作を制御する。具体的には、行動単位時間Tごとに自機の移動速度を決定する。以下では、選択された移動速度によって自機が移動を始める時刻tをt=0とする。 The own device operation control apparatus and method according to the present invention controls the operation of the own device on behalf of the player in such a shooting game. Specifically, the moving speed of the own device is determined for each behavior unit time T. In the following, the time t at which the own device starts moving at the selected moving speed is set to t = 0.
<ステップ1>
現在位置取得部2は、時刻t=0における自機の位置(xs,ys)、つまり、自機の現在位置(xs,ys)を取得する。座標変換部3は、上記取得された自機の現在位置(xs,ys)を、升目の座標に変換する。
ここで、ゲーム画面は格子に分割されており、その格子の構成単位のことを升目というものとする。例えば、画面の一番左下の升目の座標を(0,0)とし、その(0,0)の升目のX個だけ右に位置し、かつ、Y個だけ上に位置する升目の座標を(X,Y)とすることができる。ここで、XとYは0以上の整数である。
なお、升目の一辺の長さSが、その辺に平行な方向に進む自機の速さVに行動単位時間Tをかけた値になるように、すなわち、S=VTとなるように、ゲーム画面を格子に分割するとよい。このように升目の一辺の長さを設定することにより、ある升目sに存在する自機が、どの移動速度(Vxs(w),Vys(w))に従って移動しても、行動単位時間T後には、必ずある升目sに100%の確率で存在することになる。このため、計算負担を軽減することができる。
<
The current
Here, the game screen is divided into lattices, and the unit of the lattice is called a grid. For example, the coordinate of the lower left cell of the screen is (0, 0), and the coordinates of the cell of (0, 0) that are X right and Y above are ( X, Y). Here, X and Y are integers of 0 or more.
In addition, the game is performed so that the length S of one side of the grid is a value obtained by multiplying the speed V of the player's own machine moving in the direction parallel to the side by the action unit time T, that is, S = VT. Divide the screen into grids. By setting the length of one side of the cell in this way, no matter what moving speed (Vxs (w), Vys (w)) the aircraft that exists in a certain cell s moves, after the action unit time T Will always exist in a certain cell s with a probability of 100%. For this reason, a calculation burden can be reduced.
また、升目の一辺の長さが大きいと、本発明の処理が荒くなり、適切に自機を制御することができない場合がある。したがって、升目の一辺の長さSが、自機の形状に内接する円の直径と、敵機の攻撃弾の形状に内接する円の直径の和の半分の長さの3分の1以下の値になるように、行動単位時間T及び自機の速さVを決定すると良い。
座標変換部3は、上記取得された自機の現在位置(xs,ys)を含む升目s0(Xs,Ys)を選択する。
第一自機存在確率計算部41は、上記選択された升目s0(Xs,Ys)に自機が存在する確率Ps(0,s0)を、Ps(0,s0)=1として、第一自機存在確率記憶部51に格納する。
In addition, if the length of one side of the mesh is large, the processing of the present invention becomes rough, and it may not be possible to properly control the own device. Therefore, the length S of one side of the square is less than one third of the length of half the sum of the diameter of the circle inscribed in the shape of the own aircraft and the diameter of the circle inscribed in the shape of the attacking bullet of the enemy aircraft. The action unit time T and the speed V of the own machine may be determined so as to be values.
The coordinate
The first own device existence
<ステップ2>
現在位置取得部2は、時刻t=0における敵機の位置(xei,yei)を取得する。敵機の初期存在確率計算部45は、上記取得された敵機の位置(xei,yei)を中心とした升目seiと、ゲーム画面を分割した格子を構成する各升目sと重なる部分の面積を計算する。そして、敵機は、その重なった部分の面積に比例した確率で、各升目sに存在しているものとする。すなわち、敵機の位置(xei,yei)を中心とした升目seiと、ゲーム画面を分割した格子を構成する各升目sj(j=1〜4)が重なっている面積を、D(sei,sj)とすると、敵機が、各升目sj(j=1〜4)に存在している確率Pei(t,sj)は、
Pei(t,sj)=D(sei,sj)/ΣjD(sei,sj) …(1)
として与えられる。
<
The current
Pei (t, sj) = D (sei, sj) / Σ j D (sei, sj) (1)
As given.
例えば、図3に示すように、敵機の位置(xei,yei)を中心とした升目seiと、ゲーム画面を分割した格子を構成する各升目sj(j=1〜4)が重なっているとする。すなわち、升目seiと升目s1が重なっている部分の面積D(sei,s1)=8、升目seiと升目s2が重なっている部分の面積D(sei,s2)=8、升目seiと升目s3が重なっている部分の面積D(sei,s3)=2、升目seiと升目s4が重なっている部分の面積D(sei,s4)=2であるとする。このとき、敵機が升目sj(j=1〜4)に存在している確率は、次のようして与えられる
Pei(t,s1)=D(sei,s1)/ΣjD(sei,sj)=8/20=0.4
Pei(t,s2)=D(sei,s2)/ΣjD(sei,sj)=8/20=0.4
Pei(t,s3)=D(sei,s3)/ΣjD(sei,sj)=2/20=0.1
Pei(t,s4)=D(sei,s4)/ΣjD(sei,sj)=2/20=0.1
敵機の初期存在確率計算部45は、上記のようにして、時刻t=0における敵機が升目sに存在する確率Pei(0,s)を計算して、その計算された確率を敵機存在確率記憶部52に格納する。
For example, as shown in FIG. 3, when the cell sei centering on the position (xei, yei) of the enemy aircraft and each cell sj (j = 1 to 4) constituting the grid dividing the game screen overlap. To do. That is, the area D (sei, s1) = 8 of the portion where the cell sei and the cell s1 overlap, the area D (sei, s2) = 8 of the portion where the cell sei and the cell s2 overlap, and the cell sei and the cell s3 are It is assumed that the area D (sei, s3) = 2 of the overlapping portion and the area D (sei, s4) = 2 of the overlapping portion of the cell sei and the cell s4. At this time, the probability that the enemy aircraft exists in the cell sj (j = 1 to 4) is given as follows: Pei (t, s1) = D (sei, s1) / Σ j D (sei, sj) = 8/20 = 0.4
Pei (t, s2) = D (sei, s2) / Σ j D (sei, sj) = 8/20 = 0.4
Pei (t, s3) = D (sei, s3) / Σ j D (sei, sj) = 2/20 = 0.1
Pei (t, s4) = D (sei, s4) / Σ j D (sei, sj) = 2/20 = 0.1
As described above, the enemy aircraft initial existence
上記説明では、升目seiが4つの升目sと重なる場合を例に取って説明したが、升目seiが4つの以上の升目sと重なる場合、升目seiが2つの升目sと重なる場合、升目seiが1つの升目sと重なる場合であっても、同様に上記(1)式により、敵機が各升目sに存在する確率を求めることができる。
なお、例えば、敵機の形状に内接する円の直径と、自機の形状に内接する円の直径との和の半分の値を、敵機の位置(xei,yei)を中心とした升目seiの一辺の長さにすることができる。
また、敵機が複数存在する場合には、すべての敵機i(i=1,・・・,I)について上記確率を計算して、その確率Pei(t,s)(i=1,・・・,I)を敵機存在確率記憶部52に格納する。Pei(t,s)(i=1,・・・,I)は、配列である。
In the above description, the case where the cell sei overlaps the four cells s has been described as an example. However, when the cell sei overlaps four or more cells s, the cell sei overlaps the two cells s. Even if it overlaps with one cell s, similarly, the probability that an enemy aircraft exists in each cell s can be obtained by the above equation (1).
Note that, for example, a half value of the sum of the diameter of a circle inscribed in the shape of the enemy aircraft and the diameter of the circle inscribed in the shape of the own aircraft is set as a scale sei centered on the position (xei, yei) of the enemy aircraft. Can be the length of one side.
If there are a plurality of enemy aircraft, the probability is calculated for all enemy aircraft i (i = 1,..., I), and the probability Pei (t, s) (i = 1,. .., I) is stored in the enemy aircraft existence
<ステップ3>
現在位置取得部2は、時刻t=0における敵機の攻撃弾の位置(xbj,ybj)を取得する。敵機攻撃弾の初期存在確率計算部46は、上記取得された敵機の攻撃弾の位置(xbj,ybj)を中心とした升目sbjと、ゲーム画面を分割した格子を構成する各升目sと重なる部分の面積を計算する。そして、敵機の攻撃弾は、その重なった部分の面積に比例した確率Pbj(0,s)で、各升目sに存在しているものとする。その確率の計算方法は、上述した敵機が各升目sに存在している確率Pei(0,s)を求める方法と同様である。
なお、例えば、敵機の攻撃弾の形状に内接する円の直径と、自機の形状に内接する円の直径との和の半分の値を、敵機の位置(xbj,ybj)を中心とした升目sbjの一辺の長さにすることができる。
また、敵機の攻撃弾が複数存在する場合には、すべての敵機の攻撃弾j(j=1,・・・,J)について上記確率を計算して、その確率Pbj(t,s)(j=1,・・・,J)を敵機存在確率記憶部52に格納する。Pbj(t,s)(j=1,・・・,J)は、配列である。
<
The current
For example, a value that is half the sum of the diameter of the circle inscribed in the shape of the attack bullet of the enemy aircraft and the diameter of the circle inscribed in the shape of the own aircraft is centered on the position (xbj, ybj) of the enemy aircraft. The length of one side of the square sbj can be made.
If there are a plurality of enemy bullets, the probability is calculated for all enemy bullets j (j = 1,..., J), and the probability Pbj (t, s) is calculated. (J = 1,..., J) is stored in the enemy aircraft existence
<ステップ4>
敵機存在確率計算部42は、τ=0,T,…,(n−1)Tとし、時刻t=τにおける敵機が升目se’(i)に存在する確率Pei(τ,se’(i))に基づいて、時刻t=τから行動単位時間T経過後の時刻t=τ+Tにおける敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を求める。そして、この処理を繰り返すことによって、最終的に、敵機存在確率計算部42は、各時刻t=kT(k=1…n)ごとに、敵機が升目se(i)に存在している確率を求める。計算した確率Pei(t,se(i))(t=kT(k=1…n))は、敵機存在確率記憶部52に格納される。
まず、敵機存在確率計算部42は、次式を計算することによって、時刻t=τにおける敵機が升目se’(i)に存在する確率Pei(τ,se’(i))に基づいて、t=τ+Tにおける敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を求める。
<
The enemy aircraft existence
First, the enemy aircraft existence
Pei(τ+T,se(i))=Σs{Ps(τ,s)・Σse’(i){Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))}} …(2)
ここで、Ai(s,se’(i),t)は、自機が存在する升目sの座標と、敵機が存在する升目se’(i)の座標に依存して、移動速度番号aを決定する関数である。Ai(s,se’(i),t)としては、任意の既存のアルゴリズムを利用することができる。例えば、Ai(s,se’(i),t)としては、時刻tにおいて自機が存在する升目sの中心の座標から、時刻tにおいて敵機が存在する升目se’(i)の中心の座標を引いたベクトルの向きに最も近い方向を与える移動速度(Vxei(a),Vyei(a))の番号aを選択するアルゴリズムを用いることができる。
Pei (τ + T, se (i)) = Σ s {Ps (τ, s) · Σ se ′ (i) {Ptrei (se ′ (i), se (i), Ai (s, se ′ (i), τ)) · Pei (τ, se ′ (i))}} (2)
Here, Ai (s, se ′ (i), t) is a movement speed number a depending on the coordinates of the cell s where the own aircraft is present and the coordinates of the cell se ′ (i) where the enemy aircraft is present. Is a function that determines Any existing algorithm can be used as Ai (s, se ′ (i), t). For example, Ai (s, se ′ (i), t) is calculated from the coordinates of the center of the cell s where the own aircraft exists at the time t to the center of the cell se ′ (i) where the enemy aircraft exists at the time t. An algorithm for selecting the number a of the moving speed (Vxei (a), Vyei (a)) that gives the direction closest to the direction of the vector minus the coordinate can be used.
Ptrei(se’(i),se(i),Ai(s,se’(i),τ))は、時刻t=τにおいて升目se’(i)に存在する敵機が、移動速度番号a=Ai(s,se’(i),τ))の移動速度(Vxei(a),Vyei(a))に従って行動単位時間Tだけ移動することによって、時刻t=τ+Tにおいて升目se(i)に存在している確率である。Ptrei(se’(i),se(i),Ai(s,se’(i),τ))の計算の仕方については後述する。 Ptrei (se ′ (i), se (i), Ai (s, se ′ (i), τ)) indicates that the enemy aircraft existing in the cell se ′ (i) at time t = τ = Ai (s, se '(i), τ)) according to the moving speed (Vxei (a), Vyei (a)) for the action unit time T, so that at time t = τ + T, the cell se (i) It is the probability of being present. A method of calculating Ptrii (se ′ (i), se (i), Ai (s, se ′ (i), τ)) will be described later.
以下、図4を参照して、上記式(2)の計算について説明する。図4は、敵機存在確率計算部42の機能構成を例示する図である。
敵機移動速度決定部421は、時刻t=τにおいて自機が存在している升目sと、敵機が存在している升目se’(i)とから、上記に例示した既存のアルゴリズムを用いて、敵機の移動速度番号a=Ai(s,se’(i),t)を決定する。
移動確率計算部422は、升目se’(i)に存在している敵機が、上記求まった敵機の移動速度番号aに対応した移動速度で行動単位時間Tだけ移動した結果、升目se(i)に存在している確率Ptrei(se’(i),se(i),Ai(s,se’(i),τ))を計算する。
積算部423は、上記計算されたPtrei(se’(i),se(i),Ai(s,se’(i),τ))と、敵機存在確率記憶部52から読み出した敵機が升目se’(i)に存在している確率Pei(τ,se’(i))との積Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))を求める。
Hereinafter, the calculation of the above equation (2) will be described with reference to FIG. FIG. 4 is a diagram illustrating a functional configuration of the enemy aircraft existence
The enemy aircraft moving
As a result of the movement
The accumulating
このようにして、敵機移動速度決定部421と移動確率計算部422と積算部423は、自機が存在する升目sを所与として、すべての升目se’(i)について上記Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))を計算する。
加算部424は、各升目se’(i)ごとに上記計算されたPtrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))を加算する。すなわち、Σse’(i){Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))}を計算する。
積算部425は、上記計算されたΣse’(i){Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))}と、時刻t=τにおける自機が升目sに存在する確率Ps(τ,s)との積Ps(τ,s)・Σse’(i){Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))}を求める。
In this way, the enemy aircraft moving
The
The accumulating
このようにして、敵機移動速度決定部421と移動確率計算部422と積算部423と加算部424と積算部425は、すべての自機が存在する升目sについて上記Ps(τ,s)・Σse’(i){Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))}を計算する。
加算部426は、各升目sごとに求まった上記Ps(τ,s)・Σse’(i){Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))}を加算する。すなわち、Σs{Ps(τ,s)・Σse’(i){Ptrei(se’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))}}を計算する。
In this way, the enemy aircraft moving
The
このように、敵機存在確率計算部42は、自機が存在するすべての升目sを考慮して、時刻t=τにおける敵機が升目se’(i)に存在する確率Pei(τ,se’(i))に基づいて、t=τ+Tにおける敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を求める。
上記の処理をすべてのτ(τ=T,…,(n−1)T)について、τが小さい順に行い、各時刻ごとに敵機が升目sに存在する確率を求め、最終的に、時刻t=nTにおいて、敵機が升目sに存在する確率を求める。これらの計算された確率は、敵機存在確率記憶部52に格納される。
In this way, the enemy aircraft existence
The above process is performed for all τ (τ = T,..., (N−1) T) in ascending order, and the probability that an enemy aircraft exists in the grid s is determined at each time. At t = nT, the probability that an enemy aircraft exists in the cell s is obtained. These calculated probabilities are stored in the enemy aircraft existence
なお、ステップ4では、自機が存在する升目sと敵機が存在する升目se(i)を区別する必要があるため、升目sと升目se(i)のように表記を分けている。しかし、画面上を分割した格子の構成単位という意味では、升目sと升目se(i)は同じ升目を意味する。
また、式(2)と数学的に等しい式である次の式、
Pei(τ+T,se(i))=ΣsΣse’(i){Ps(τ,s)・Ptrei(se ’(i),se(i),Ai(s,se’(i),τ))・Pei(τ,se’(i))} …(2a)
に基づいて、敵機の存在確率Pei(τ+T,se(i))を求めても良い。
In
Also, the following equation that is mathematically equivalent to equation (2):
Pei (τ + T, se (i)) = Σ s Σ se ′ (i) {Ps (τ, s) · Ptrei ( se ′ (i), se (i), Ai (s, se ′ (i), τ) )) · Pei (τ, se ′ (i))} (2a)
Based on the above, the existence probability Pei (τ + T, se (i)) of the enemy aircraft may be obtained.
<ステップ5>
敵機攻撃弾存在確率計算部44は、時刻t=τにおける敵機の攻撃弾が升目sb’(j)に存在する確率Pbj(τ,sb’(j))に基づいて、時刻t=τ+Tにおける敵機の攻撃弾が升目sb(j)に存在する確率Pbj(τ,sb(j))を求める。そして、敵機攻撃弾存在確率計算部44は、この処理を繰り返すことによって、最終的に、各時刻t=kT(k=1…n)ごとに、敵機の攻撃弾が升目sb(i)に存在している確率を求める。計算した確率Pbj(t,sb(j))(t=kT(k=1…n))は、敵機攻撃弾存在確率記憶部53に格納される。
まず、敵機攻撃弾存在確率計算部44は、次式を計算することによって、時刻t=τにおける敵機の攻撃弾が升目sb’(j)に存在する確率Pbj(τ,sb’(j))に基づいて、時刻t=τ+Tにおける敵機の攻撃弾が升目sb(j)に存在する確率Pbj(τ,sb(j))を求める。
<
Based on the probability Pbj (τ, sb ′ (j)) that the enemy's attack bullet at the time t = τ exists in the cell sb ′ (j), the enemy aircraft attacking bullet presence
First, the enemy aircraft attack bullet existence
Pbj(τ+T,sb(j))=Σsb’(j){Ptrbj(sb’(j),sb(j))・Pbj(τ,sb’(j))} …(3)
ここで、Ptrbj(sb’(j),sb(j))は、時刻t=τにおいて升目sb’(j)に存在する敵機の攻撃弾が、所定の移動速度(Vxbj,Vybj)に従って行動単位時間Tだけ移動することによって、時刻t=τ+Tにおいて升目sb(j)に存在している確率である。Ptrbj(sb’(j),sb(j))の計算の仕方については後述する。
Pbj (τ + T, sb (j)) = Σ sb ′ (j) {Ptrbj (sb ′ (j), sb (j)) · Pbj (τ, sb ′ (j))} (3)
Here, Ptrbj (sb ′ (j), sb (j)) indicates that the attacking bullet of the enemy aircraft existing in the cell sb ′ (j) at the time t = τ acts according to a predetermined moving speed (Vxbj, Vybj). This is the probability of moving in the unit time T and existing in the cell sb (j) at time t = τ + T. A method of calculating Ptrbj (sb ′ (j), sb (j)) will be described later.
以下、図5を参照して、上記式(3)の計算について説明する。図5は、敵機攻撃弾存在確率計算部44の機能構成を例示する図である。
移動確率計算部442は、升目sb’(j)に存在している敵機の攻撃弾が、記憶部10から読み出した所定の移動速度(Vxbj,Vybj)で行動単位時間Tだけ移動した結果、升目sb’(j)に存在している確率Ptrbj(sb’(j),sb(j))を計算する。
積算部443は、上記計算されたPtrbj(sb’(j),sb(j))と、敵機攻撃弾存在確率記憶部53から読み出した敵機の攻撃弾が升目sb’(j)に存在している確率Pbj(τ,sb’(j))との積Ptrbj(sb’(j),sb(j))・Pbj(τ,sb’(j))を求める。
このようにして、移動確率計算部442と積算部443は、すべての升目sb’(j)について上記Ptrbj(sb’(j),sb(j))・Pbj(τ,sb’(j))を計算する。
加算部444は、各升目sb’(j)ごとに上記計算されたPtrbj(sb’(j),sb(j))・Pbj(τ,sb’(j))を加算する。すなわち、Σsb’(j){Ptrbj(sb’(j),sb(j))・Pbj(τ,sb’(j))}を計算する。
Hereinafter, with reference to FIG. 5, the calculation of the above equation (3) will be described. FIG. 5 is a diagram illustrating a functional configuration of the enemy aircraft attack bullet presence
As a result of the movement
The accumulating
In this way, the movement
The
このように、敵機攻撃弾存在確率計算部44は、時刻t=τにおける敵機の攻撃弾が升目sb’(j)に存在する確率Pbj(τ,sb’(j))に基づいて、t=τ+Tにおける敵機が升目sb(j)に存在する確率Pbj(τ+T,sb(j))を求める。
上記の処理をすべてのτ(τ=T,…,(n−1)T)について、τが小さい順に行い、各時刻ごとに敵機の攻撃弾が升目sに存在する確率を求め、最終的に、時刻t=nTにおいて、敵機の攻撃弾が升目sに存在する確率を求める。これらの計算された確率は、敵機攻撃弾存在確率記憶部53に格納される。
In this manner, the enemy aircraft attack bullet existence
The above processing is performed for all τ (τ = T,..., (N−1) T) in ascending order of τ, and the probability that an enemy's attack bullet is present in the square s is obtained at each time. In addition, at time t = nT, the probability that an attacking bullet of an enemy aircraft exists in the cell s is obtained. These calculated probabilities are stored in the enemy aircraft attack bullet existence
<ステップ6>
第一自機存在確率計算部41は、τ=0,T,…,(n−1)Tとし、時刻t=τにおける自機が升目s’に存在する確率Ps(τ,s’)に基づいて、時刻t=τから行動単位時間T経過後の時刻t=τ+Tにおける自機が升目sに存在する確率Ps(τ+T,s)を求める。そして、この処理を繰り返すことによって、最終的に、第一自機存在確率計算部41は、各時刻t=kT(k=1…n)ごとに、自機が升目sに存在している確率を求める。計算した確率Ps(t,s)(t=kT(k=1…n))は、第一自機存在確率記憶部51に格納される。
まず、第一自機存在確率計算部41は、次式を計算することによって、時刻t=τにおける自機が升目s’に存在する確率Ps(τ,s’)に基づいて、t=τ+Tにおける自機が升目sに存在する確率Ps(τ+T,s)を求める。
<Step 6>
The first own device existence
First, the first own device existence
Ps(τ+T,s)=(1−max(Pei(t+T,s),Pbj(t+T,s)))Σw{Psel(w,τ)・Σs’{Ptrs(s’,s,w))・Ps(τ,s’)}} …(4)
ここで、Psel(w,t)は、時刻tにおいて自機が移動速度番号wを選択する確率である。例えば、自機が等しい確率で移動速度番号wを選択すると仮定して、Psel(w,t)=1/Wとすることができる。この他にも、ユーザが任意にPsel(w,t)の値を選択することができる。Psel(w,t)の値は予め設定され、記憶部10に格納されているものとする。
Ps (τ + T, s) = (1−max (Pei (t + T, s), Pbj (t + T, s))) Σ w {Psel (w, τ) · Σ s ′ {Ptrs (s ′, s, w) ) · Ps (τ, s ′)}} (4)
Here, Psel (w, t) is the probability that the own device will select the moving speed number w at time t. For example, assuming that the mobile device selects the moving speed number w with equal probability, Psel (w, t) = 1 / W can be set. In addition, the user can arbitrarily select the value of Psel (w, t). It is assumed that the value of Psel (w, t) is set in advance and stored in the
Ptrs(s’,s,w)は、時刻t=τにおいて升目s’に存在する自機が、移動速度番号wの移動速度(Vxs(w),Vys(w))に従って行動単位時間Tだけ移動することによって、時刻t=τ+Tにおいて升目sに存在している確率である。Ptrs(s’,s,w)の計算の仕方については後述する。
以下、図6を参照して、上記式(4)の計算について説明する。図6は、第一自機存在確率計算部41の機能構成を例示する図である。
移動確率計算部412は、升目s’に存在している自機が、自機の移動速度番号wに対応した移動速度(Vxs(w),Vys(w))で行動単位時間Tだけ移動した結果、升目s’に存在している確率Ptrs(s’,s,w)を計算する。
積算部413は、上記計算されたPtrs(s’,s,w)と、第一自機存在確率記憶部51から読み出した自機が升目s’に存在している確率Ps(τ,s’)との積Ptrs(s’,s,w)・Ps(τ,s’)を求める。
Ptrs (s ′, s, w) is the time when the own unit existing in the cell s ′ at time t = τ is only the action unit time T according to the moving speed (Vxs (w), Vys (w)) of the moving speed number w. It is the probability of moving and existing in the cell s at time t = τ + T. A method of calculating Ptrs (s ′, s, w) will be described later.
Hereinafter, the calculation of the above equation (4) will be described with reference to FIG. FIG. 6 is a diagram illustrating a functional configuration of the first device existence
The movement
The accumulating
このようにして、移動確率計算部412と積算部413は、すべての升目s’について上記Ptrs(s’,s,w)・Ps(τ,s’)を計算する。
加算部414は、各升目s’ごとに上記計算されたPtrs(s’,s,w)・Ps(τ,s’)を加算する。すなわち、Σs’{Ptrs(s’,s,w)・Ps(τ,s’)}を計算する。
積算部415は、上記計算されたΣs’{Ptrs(s’,s,w)・Ps(τ,s’)}と、記憶部10から読み出した、時刻t=τにおける自機が移動速度番号wを選択する確率Psel(w,τ)との積Psel(w,τ)・Σs’{Ptrs(s’,s,w)・Ps(τ,s’)}を求める。
In this manner, the movement
The
The accumulating
このようにして、移動確率計算部412と積算部413と加算部414と積算部415は、すべての自機が取り得る移動速度番号wについて上記Psel(w,τ)・Σs’{Ptrs(s’,s,w)・Ps(τ,s’)}を計算する。
加算部416は、各移動速度番号wごとに求まった上記Psel(w,τ)・Σs’{Ptrs(s’,s,w)・Ps(τ,s’)}を加算する。すなわち、ΣwPsel(w,τ)・Σs’{Ptrs(s’,s,w)・Ps(τ,s’)}を計算する。
最大値抽出部419は、max(Pei(τ+T,s),Pbj(τ+T,s))を計算する。すなわち、敵機存在確率記憶部52から読み出した時刻t=τ+Tにおいて敵機が升目sに存在する確率Pei(τ+T,s)(i=1,・・・,I)と、敵機攻撃弾存在確率記憶部53から読み出した時刻t=τ+Tにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ+T,s)(j=1,・・・,J)とを比較して、最も大きい値を出力する。
In this way, the movement
The adding
The maximum
すなわち、すべてのi=1,・・・,IについてのPei(τ+T,s)と、j=1,・・・,JについてのPbj(τ+T,s)とを比較して最も大きい値を出力する。
減算部410は、1から、上記計算されたmax(Pei(τ+T,s),Pbj(τ+T,s))を減算した値を計算する。
積算部417は、加算部416が計算したΣwPsel(w,τ)・Σs’{Ptrs(s’,s,w)・Ps(τ,s’)}と、減算部410が計算した1−max(Pei(τ+T,s),Pbj(τ+T,s))との積を求める。
That is, Pei (τ + T, s) for all i = 1,..., I and Pbj (τ + T, s) for j = 1,. To do.
The
The accumulating
このようにして、1−max(Pei(τ+T,s),Pbj(τ+T,s))を乗算することにより、時刻t=τ+Tにおいて敵機又は敵機の攻撃弾が升目sに存在している場合には自機が破壊されたものとして、自機の存在確率Ps(τ,s)を計算することができる。
このようにして、第一自機存在確率計算部41は、時刻t=τにおける自機が升目sに存在する確率Ps(τ,s)に基づいて、時刻t=τ+Tにおける自機が升目sに存在する確率Ps(τ+T,s)を計算する。
上記の処理をすべてのτ(τ=T,…,(n−1)T)について、τが小さい順に行い、各時刻ごとに自機が升目sに存在する確率を求め、最終的に、時刻t=nTにおいて、自機が升目sに存在する確率を求める。これらの計算された確率は、第一自機存在確率記憶部51に格納される。
In this way, by multiplying by 1-max (Pei (τ + T, s), Pbj (τ + T, s)), the enemy aircraft or the enemy's attack bullet exists at the grid s at time t = τ + T. In this case, the existence probability Ps (τ, s) of the own apparatus can be calculated on the assumption that the own apparatus has been destroyed.
In this way, the first own device existence
The above processing is performed for all τ (τ = T,..., (N−1) T) in ascending order of τ, and the probability that the own device exists in the cell s is determined at each time. At t = nT, the probability that the own device exists in the cell s is obtained. These calculated probabilities are stored in the first device existence
<移動確率の計算方法>
以下、升目s’に存在する敵機が敵機の移動速度番号aの移動速度(Vxei(a),Vyei(a))に従って行動単位時間Tだけ移動することによって升目sに移動する確率Ptrei(s’,s,a)、升目s’に存在する敵機の攻撃弾が所定の移動速度(Vxbj,Vybj)に従って行動単位時間Tだけ移動することによって升目sに移動する確率Ptrbj(s’,s)、升目s’に存在する自機が移動速度番号wの移動速度(Vxs(w),Vys(w))に従って行動単位時間Tだけ移動することによって升目sに移動する確率Ptrs(s’,s,w)の求め方について説明する。
<Movement probability calculation method>
Hereinafter, a probability Ptrii that an enemy aircraft existing in the cell s ′ moves to the cell s by moving by the action unit time T according to the movement speed (Vxei (a), Vyei (a)) of the movement speed number a of the enemy aircraft. s ′, s, a) and the probability Ptrbj (s ′, s ′, s, a) that the attacking bullet of the enemy aircraft existing in the cell s ′ moves by the action unit time T according to the predetermined moving speed (Vxbj, Vybj). s), the probability Ptrs (s ′) that the aircraft that exists in the cell s ′ moves to the cell s by moving for the action unit time T according to the movement speed (Vxs (w), Vys (w)) of the movement speed number w. , S, w) will be described.
まず、Ptrs(s’,s,w)の求め方について説明する。自機が移動速度番号wを選択して行動単位時間Tだけ移動した場合のx座標とy座標の変位量(dxs,dys)は、
dxs=Vxs(w)×T
dys=Vys(w)×T
である。自機が存在する升目s’を上記変位量(dxs,dys)だけ平行移動した升目をsdsとする。升目sdsと升目sが重なる面積の、升目s全体の面積に対する比率をPtr(s’,s,w)とする。すなわち、ステップ2で、敵機の存在確率を計算したのと同様にして、Prt(s’,s,w)を求める。
First, how to obtain Ptrs (s ′, s, w) will be described. The displacement amount (dxs, dys) of the x coordinate and the y coordinate when the own machine selects the movement speed number w and moves by the action unit time T is
dxs = Vxs (w) × T
dys = Vys (w) × T
It is. A cell s ′ where the own device is present is defined as a cell sds which has been translated by the displacement (dxs, dys). Let Ptr (s ′, s, w) be the ratio of the area where the cell sds overlaps the cell s to the area of the entire cell s. That is, in
例えば、図17に示すように、升目sdsが、升目s1〜s9と重なったとする。ここで、各升目に記載された0から1までの数値は、升目sdsとその升目が重なる面積の、その升目の面積に対する比率を表わしたものである。このとき、Ptr(s’,s1,w)=0.2、Ptr(s’,s2,w)=0.33、Ptr(s’,s3,w)=0.09、Ptr(s’,s4,w)=0.6、Ptr(s’,s5,w)=1、Ptr(s’,s6,w)=0.24、Ptr(s’,s7,w)=0.25、Ptr(s’,s8,w)=0.38、Ptr(s’,s9,w)=0.1となる。 For example, as shown in FIG. 17, it is assumed that the cell sds overlaps the cells s1 to s9. Here, the numerical values from 0 to 1 written in each cell represent the ratio of the area where the cell sds overlaps the cell to the area of the cell. At this time, Ptr (s ′, s1, w) = 0.22, Ptr (s ′, s2, w) = 0.33, Ptr (s ′, s3, w) = 0.09, Ptr (s ′, w) s4, w) = 0.6, Ptr (s ′, s5, w) = 1, Ptr (s ′, s6, w) = 0.24, Ptr (s ′, s7, w) = 0.25, Ptr (S ′, s8, w) = 0.38, Ptr (s ′, s9, w) = 0.1.
次に、Ptrei(s’,s,a)の求め方について説明する。敵機が移動速度番号aを選択して行動単位時間Tだけ移動した場合のx座標とy座標の変位量(dxei,dyei)は、
dxei=Vxei(a)×T
dyei=Vyei(a)×T
である。敵機が存在する升目s’の中心に、一辺の大きさが敵機の大きさ(敵機の形状に内接する円の直径)と自機の大きさ(自機に内接する円の直径)の和の半分である升目を新たに作成し、この升目を上記変位量(dxei,dyei)だけ平行移動した升目をsdeiとする。升目sdeiと升目sが重なる面積の、升目s全体の面積に対する比率をPtrei(s’,s,a)とする。
Next, how to obtain Ptrii (s ′, s, a) will be described. The displacement (dxei, dyei) of the x coordinate and y coordinate when the enemy aircraft selects the movement speed number a and moves for the action unit time T is as follows:
dxei = Vxei (a) × T
dyei = Vyei (a) × T
It is. The size of one side is the size of the enemy aircraft (the diameter of the circle inscribed in the shape of the enemy aircraft) and the size of the own aircraft (the diameter of the circle inscribed in the own aircraft) at the center of the square s' where the enemy aircraft exists A new cell which is half the sum of the two is newly created, and this cell is defined as a cell sdei which has been translated by the displacement (dxei, dyei). Let Ptrei (s ′, s, a) be the ratio of the area where the cell sdei and the cell s overlap to the area of the entire cell s.
最後に、Ptrbj(s’,s)の求め方について説明する。敵機の攻撃弾が所定の移動速度(Vxbj,Vybj)に従って行動単位時間Tだけ移動した場合のx座標とy座標の変位量(dxbj,dybj)は、
dxbj=Vxbj×T
dybj=Vybj×T
である。敵機の攻撃弾が存在する升目s’の中心に、一辺の大きさが敵機の攻撃弾の大きさ(敵機の攻撃弾の形状に内接する円の直径)と自機の大きさ(自機の形状に内接する円の直径)の和の半分である升目を新たに作成し、この升目を上記変位量(dxbj,dybj)だけ平行移動した升目をsdbjとする。升目sdbjと升目sが重なる面積の、升目s全体の面積に対する比率をPtrbj(s’,s)とする。
Finally, how to obtain Ptrbj (s ′, s) will be described. The displacement (dxbj, dybj) of the x-coordinate and y-coordinate when the attacking bullet of the enemy aircraft moves by the action unit time T according to the predetermined moving speed (Vxbj, Vybj) is
dxbj = Vxbj × T
dybj = Vybj × T
It is. The size of one side is the size of the enemy's attack bullet (the diameter of the circle inscribed in the shape of the enemy's attack bullet) and the size of your aircraft ( A new cell which is half the sum of the diameter of the circle inscribed in the shape of the own machine is newly created, and this cell is defined as a cell sdbj which has been translated by the displacement (dxbj, dybj). Let Ptrbj (s ′, s) be the ratio of the area where the cell sdbj and the cell s overlap to the total area of the cell s.
このように、敵機が位置する升目の一辺の長さ、及び、この升目を敵機の位置の変位量(dxei,dyei)だけ移動させた升目sdeiの一辺の長さを、敵機の大きさ(敵機の形状に内接する円の直径)と自機の大きさ(自機の形状に内接する円の直径)の和の半分の値とすると、敵機が自機を破壊することができる範囲と上記升目が覆う範囲がほぼ同一となり、敵機と自機の接触をより適切に判定することができる。なお、敵機の攻撃弾が位置する升目を敵機の攻撃弾の位置の変位量(dxbj,dybj)だけ移動させた升目sdbjの一辺の長さを、敵機攻撃弾の大きさ(敵機の攻撃弾の形状に内接する円の直径)と自機の大きさ(自機の形状に内接する円の直径)の和の半分の値とした理由についても同様である。 Thus, the length of one side of the cell where the enemy aircraft is located and the length of one side of the cell sdei obtained by moving this cell by the amount of displacement (dxei, dyei) of the enemy aircraft are the size of the enemy aircraft. If the value is half of the sum of the diameter (the diameter of the circle inscribed in the shape of the enemy aircraft) and the size of the own aircraft (the diameter of the circle inscribed in the shape of the own aircraft), the enemy aircraft may destroy itself. The range that can be covered is substantially the same as the range covered by the mesh, and the contact between the enemy aircraft and the own aircraft can be more appropriately determined. It should be noted that the length of one side of the square sdbj obtained by moving the square where the enemy's attack bullet is located by the displacement (dxbj, dybj) of the enemy's attack bullet is the size of the enemy attack bullet (enemy The reason why the value of the sum of the diameter of the circle inscribed in the shape of the attack bullet) and the size of the own aircraft (diameter of the circle inscribed in the shape of the own aircraft) is the same.
<ステップ7>
自機目標位置決定部8は、第一自機存在確率記憶部51からt=nTにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで各升目sに存在する確率Ps(nT,s)のうち、その確率を最も高くする升目を選択して、その升目を目標位置(Xd,Ys)とする。計算された目標位置(Xd,Ys)は、第二自機存在確率計算部91に出力される。
<
The own target
上記のようにして計算された目標位置(Xd,Yd)は、自機が、敵機及び敵機の攻撃弾を避けつつ最も到達しやすい位置である。言い換えると、上記目標位置(Xd,Yd)を目指す行動が、自機の生存率を最も高くするということができる。
通常の探索計算では、例えば自機の未来の移動パターン(例えば、Wのn乗通りの移動方向選択履歴を表わす順列)の一つ一つのデータを保持する必要があるため探索の深さnが増すと累乗で計算時間が増す。しかし、上記のようにして探索の計算をすると、探索の深さnが増しても高々探索の深さnに比例して計算時間が増すだけであり、実時間性の要求を満たすことができるというメリットがある。
The target position (Xd, Yd) calculated as described above is the position where the aircraft is most likely to reach while avoiding enemy aircraft and enemy bullets. In other words, it can be said that the action aiming at the target position (Xd, Yd) maximizes the survival rate of the own device.
In normal search calculation, for example, it is necessary to hold each piece of data of the future movement pattern of the own aircraft (for example, a permutation representing a movement direction selection history of W to the nth power). As it increases, the calculation time increases with a power. However, if the search is calculated as described above, even if the search depth n increases, the calculation time only increases in proportion to the search depth n at most, and the requirement for real-time performance can be satisfied. There is a merit.
<ステップ8>
第二自機存在確率計算部91は、時刻t=nTにおいて自機が上記目標位置(Xd,Yd)に到達することが確定している場合に時刻t=τ+Tにおいて自機が升目s’に存在する確率Psr(τ+T,s’)に基づいて、時刻t=nTにおいて自機が上記目標位置(Xd,Yd)に到達することが確定している場合に時刻t=τにおいて自機が升目sに存在する確率Psr(τ,s)を計算する。この計算を、すべてのτ=mT(mはn−1以下の自然数)について行うことにより、最終的に、時刻t=nTにおいて自機が上記目標位置に到達することが確定している場合に、時刻t=Tにおいて自機が各升目sに存在する確率Psr(T,s)を計算する。計算された確率Psr(t,s)は、第二自機存在確率記憶部54に格納される。
<
The second own device existence
まず、第二自機存在確率計算部91は、次式を計算することによって、時刻t=nTにおいて自機が上記目標位置(Xd,Yd)に到達することが確定している場合に時刻t=τ+Tにおける自機が升目s’に存在する確率Psr(τ+T,s’)に基づいて、時刻t=nTにおいて自機が上記目標位置(Xd,Yd)に到達することが確定している場合にt=τにおける自機が升目sに存在する確率Psr(τ,s)を求める。
First, the second own device existence
Psr(τ,s)=(1−max(Pei(t,s),Pbj(t,s)))Σw{Psel(w,τ)・Σs’{Ptrs(s,s’,w))・Psr(τ+T,s’)}} …(5)
ステップS6で説明したように、Psel(w,t)は、時刻tにおいて自機が移動速度番号wを選択する確率であり、Ptrs(s,s’,w)は、時刻t=τにおいて升目sに存在する自機が、移動速度番号wの移動速度(Vxs(w),Vys(w))に従って行動単位時間Tだけ移動することによって、時刻t=τ+Tにおいて升目s’に存在している確率である。
Psr (τ, s) = (1-max (Pei (t, s), Pbj (t, s))) Σ w {Psel (w, τ) · Σ s ′ {Ptrs (s, s ′, w) ) · Psr (τ + T, s ′)}} (5)
As described in step S6, Psel (w, t) is a probability that the own device selects the moving speed number w at time t, and Ptrs (s, s ′, w) is a square at time t = τ. The own aircraft that exists in s moves in the action unit time T according to the moving speed (Vxs (w), Vys (w)) of the moving speed number w, so that it exists in the cell s ′ at time t = τ + T. It is a probability.
以下、図7を参照して、上記式(5)の計算について説明する。図7は、第二自機存在確率計算部91の機能構成を例示する図である。
移動確率計算部912は、升目sに存在している自機が、自機の移動速度番号wに対応した移動速度(Vxs(w),Vys(w))で行動単位時間Tだけ移動した結果、升目s’に存在している確率Ptrs(s,s’,w)を計算する。
積算部913は、上記計算されたPtrs(s,s’,w)と、第二自機存在確率記憶部54から読み出したPsr(τ+T,s’)との積Ptrs(s,s’,w)・Psr(τ+T,s’)を求める。
このようにして、移動確率計算部912と積算部913は、すべての升目s’について上記Ptrs(s,s’,w)・Psr(τ+T,s’)を計算する。
加算部914は、各升目s’ごとに上記計算されたPtrs(s,s’,w)・Psr(τ+T,s’)を加算する。すなわち、Σs’{Ptrs(s,s’,w)・Psr(τ+T,s’)}を計算する。
積算部915は、上記計算されたΣs’{Ptrs(s,s’,w)・Psr(τ+T,s’)}と、記憶部10から読み出した、時刻t=τにおける自機が移動速度番号wを選択する確率Psel(w,τ)との積Psel(w,τ)・Σs’{Ptrs(s,s’,w)・Psr(τ+T,s’)}を求める。
Hereinafter, the calculation of the above equation (5) will be described with reference to FIG. FIG. 7 is a diagram illustrating a functional configuration of the second own device existence
The movement
The integrating
In this way, the movement
The
The accumulating
このようにして、移動確率計算部912と積算部913と加算部914と積算部915は、すべての自機が取り得る移動速度番号wについて上記Psel(w,τ)・Σs’{Ptrs(s,s’,w)・Psr(τ+T,s’)}を計算する。
加算部916は、各移動速度番号wごとに求まった上記Psel(w,τ)・Σs’{Ptrs(s,s’,w)・Psr(τ+T,s’)}を加算する。すなわち、ΣwPsel(w,τ)・Σs’{Ptrs(s,s’,w)・Psr(τ+T,s’)}を計算する。
最大値抽出部919は、max(Pei(τ,s),Pbj(τ,s))を計算する。すなわち、敵機存在確率記憶部52から読み出した時刻t=τにおいて敵機が升目sに存在する確率Pei(τ,s)(i=1,・・・,I)と、敵機攻撃弾存在確率記憶部53から読み出した時刻t=τにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ,s)(j=1,・・・,J)とを比較して、最も大きい値を出力する。
In this way, the movement
The
The maximum
すなわち、すべてのi=1,・・・,IについてのPei(τ,s)と、j=1,・・・,JについてのPbj(τ,s)とを比較して最も大きい値を出力する。
減算部910は、1から、上記計算されたmax(Pei(τ,s),Pbj(τ,s))を減算した値を計算する。
積算部917は、加算部916が計算したΣwPsel(w,τ)・Σs’{Ptrs(s,s’,w)・Psr(τ+T,s’)}と、減算部910が計算した1−max(Pei(τ,s),Pbj(τ,s))との積を求める。
That is, Pei (τ, s) for all i = 1,..., I and Pbj (τ, s) for j = 1,. To do.
The
The accumulating
このようにして、1−max(Pei(τ,s),Pbj(τ,s))を乗算することにより、時刻t=τにおいて敵機又は敵機の攻撃弾が升目sに存在している場合には自機が破壊されたものとして、確率Psr(τ,s)を計算することができる。
このようにして、第二自機存在確率計算部91は、確率Psr(τ+T,s)に基づいて、確率Psr(τ,s)を計算する。
上記の処理をすべてのτ(τ=T,…,(n−1)T)について、τが小さい順に行い、時刻t=nTにおいて自機が上記目標位置(Xd,Yd)に到達することが確定している場合の、各時刻における自機が升目sに存在する確率を求め、最終的に、時刻t=nTにおいて自機が上記目標位置(Xd,Yd)に到達することが確定している場合に、時刻t=Tにおいて自機が升目sに存在する確率を求める。これらの計算された確率は、第二自機存在確率記憶部54に格納される。
In this way, by multiplying by 1-max (Pei (τ, s), Pbj (τ, s)), the enemy aircraft or the enemy's attack bullet is present in the cell s at time t = τ. In this case, the probability Psr (τ, s) can be calculated assuming that the aircraft has been destroyed.
In this way, the second device existence
The above processing is performed for all τ (τ = T,..., (N−1) T) in ascending order of τ, and the own aircraft may reach the target position (Xd, Yd) at time t = nT. If it has been determined, the probability that the aircraft at each time is present in the cell s is obtained, and it is finally determined that the aircraft will reach the target position (Xd, Yd) at time t = nT. If there is, the probability that the own device exists in the cell s at time t = T is obtained. These calculated probabilities are stored in the second own existence
<ステップ9>
移動速度決定部11は、時刻t=0における自機が時刻t=Tにおいて到達することができる升目s0’のうち、第二自機存在確率記憶部54から読み出した確率Psr(T,s0’)を最も高くする升目に移動するように、時刻t=0における自機の移動速度を決定する。
升目の一辺の長さが、その辺に平行な方向に進む自機の速さに行動単位時間Tをかけた値に設定されている場合には、時刻t=0における自機が存在する升目s0に隣接する升目又は升目s0が、時刻t=0における自機が時刻t=Tにおいて到達することができる升目s0’となる。
<
The moving
When the length of one side of the cell is set to a value obtained by multiplying the speed of the own device traveling in the direction parallel to the side by the action unit time T, the cell having the own device at time t = 0 exists. The cell adjacent to s0 or the cell s0 becomes the cell s0 ′ that the aircraft at time t = 0 can reach at time t = T.
移動速度決定部11は、この升目s0’の中で、第二自機存在確率記憶部54から読み出した確率Psr(T,s0’)を最も高くする升目を選択する。そして、この升目に移動する自機の移動速度番号wを決定する。移動速度決定部11は、この移動速度番号wの移動速度(Vxs(w),Vys(w)))に従って移動する自機の、行動単位時間T後位置を計算して、その移動後の自機を表示部12に出力する。
以上のステップ1〜ステップ9の処理を、行動単位時間Tごとに行うことにより、各行動単位ステップにおける自機の移動速度を決定する。以上が、本実施形態の概要である。
なお、出願時における計算機の能力を考慮すると、上記探索計算における探索の深さnとしては、10〜20程度にすると望ましい。しかし、計算機の性能が今後向上すれば、探索の深さnをさらに大きな値にすることができる。
The moving
By performing the processes of
In consideration of the ability of the computer at the time of filing, it is desirable that the search depth n in the search calculation is about 10-20. However, if the performance of the computer improves in the future, the search depth n can be made larger.
[変形例1]
図7に示された第二自機存在確率計算部91に替えて、図8,9に示された第二自機存在確率計算部92を用いても良い。図8,9は第二自機存在確率計算部92の機能構成を例示する図である。
図8に示された第二自機存在確率計算部92の機能構成は、図7に示された第二自機存在確率計算部91の機能構成と同じである。第二自機存在確率計算部92は、図9に示された機能構成・処理を有する点で、第二自機存在確率計算部91と異なる。第二自機存在確率計算部92は、第二自機存在確率計算部91と同じ処理で求めたPsr(τ,s)を、より敵機を破壊することができるように補正したPsr’(τ,s)を計算する。
[Modification 1]
Instead of the second own device existence
The functional configuration of the second own device existence
第二自機存在確率計算部92の移動確率計算部912、積算部913、加算部914、積算部915、加算部916、積算部917、最大値抽出部919、減算部910は、第二自機存在確率計算部91と同じであるため、説明を省略する。
射線判定部922(図9)は、升目sに存在する自機の射線上にある升目scを選択する。例えば、自機が画面の上方向に攻撃弾を発射する場合には、升目sの座標を(X,Y)とすると、(Xc,Yc)(Xc=X,Yc>Y)を座標に持つ升目が、自機の射線上にある升目scとなる。
加算部923は、升目scに存在する敵機の存在確率Pei(τ,s)を加算する。すなわち、Σsc∈sPei(τ,s)を計算する。そして、計算されたΣsc∈sPei(τ,s)に1を加算する。
積算部924は、記憶部10から予め定められた定数bを読み出し、上記計算された1+Σsc∈sPei(τ,s)に乗算する。
積算部925は、積算部917が計算したPsr(τ,s)に、上記計算されたb(1+Σsc∈sPei(τ,s))を乗算する。これにより、敵機をより多く破壊することができる位置に、より高い確率で自機が存在するようにすることができる。
積算部925は、すべての升目sについて、上記確率b(1+Σsc∈sPei(τ,s))・Psr(τ,s)を求める。
加算部926は、積算部925がすべての升目sにすいて求めた確率b(1+Σsc∈sPei(τ,s))・Psr(τ,s)を加算する。すなわち、Σsb(1+Σsc∈sPei(τ,s))・Psr(τ,s)を計算する。
The movement
The ray determination unit 922 (FIG. 9) selects a cell sc existing on the ray of the own aircraft existing in the cell s. For example, when the subject fires an attack bullet in the upward direction of the screen, assuming that the coordinates of the square s are (X, Y), the coordinates are (Xc, Yc) (Xc = X, Yc> Y). The cell is the cell sc on the ray of the aircraft.
The adding
The accumulating
The accumulating
The accumulating
The adding
割算部927は、各升目sごとに、Psr’(τ,s)={b(1+Σsc∈sPei(τ,s))・Psr(τ,s)}/{Σsb(1+Σsc∈sPei(τ,s))・Psr(τ,s)}を演算する。この演算結果が、Psr’(τ,s)となる。
このように、加算部926と割算部927は、積算部925が求めた確率b(1+Σsc∈sPei(τ,s))・Psr(τ,s)を正規化し、ΣsPsr’(τ,s)=1となるようにする。
なお、加算部923の替わりに、最大値抽出部923’を設けても良い。最大値抽出部923’は、maxsc∈sPei(τ、s)を計算する。そして、この値に1を加算した値を積算部924に出力する。他の処理は、上述したものと同様である。
Dividing
In this way, the adding
Note that a maximum
[変形例2]
自機の位置が常にゲーム画面の中央付近にあることは、未来において不測の事態が生じた場合に、ゲーム画面端のような自機の移動が制限される状況を生み出さないためにも重要である。
このため、図7に示された第二自機存在確率計算部91に替えて、図8,10に示された第二自機存在確率計算部93を用いても良い。図8,10は第二自機存在確率計算部93の機能構成を例示する図である。
図8に示された第二自機存在確率計算部93の機能構成は、図7に示された第二自機存在確率計算部91の機能構成と同じである。第二自機存在確率計算部93は、図10に示された機能構成・処理を有する点で、第二自機存在確率計算部91と異なる。第二自機存在確率計算部93は、第二自機存在確率計算部91と同じ処理で求めたPsr(τ,s)を、自機がよりゲーム画面の中央に位置するように補正したPsr’’(τ,s)を計算する。
[Modification 2]
It is important that the position of your machine is always near the center of the game screen in order not to create a situation where the movement of your machine is restricted, such as the edge of the game screen, if an unexpected situation occurs in the future. is there.
Therefore, instead of the second own device existence
The functional configuration of the second own device existence
第二自機存在確率計算部93の移動確率計算部912、積算部913、加算部914、積算部915、加算部916、積算部917、最大値抽出部919、減算部910は、第二自機存在確率計算部91と同じであるため、説明を省略する。
距離計算部932(図10)は、ゲーム画面の中央と、自機が存在する升目sとの距離rを計算する。
割算部934は、記憶部10から予め定められた定数dを読み出し、上記計算されたrで割算をして、d/rを求める。
積算部935は、積算部917が計算したPsr(τ,s)に、上記計算されたd/rを乗算して、(d/r)・Psr(τ,s)を求める。このように、ゲーム画面の中央に位置する自機の存在確率を高くすることにより、自機がよりゲーム画面の中央に位置するように制御することができる。
加算部926と割算部927は、変形例1で説明したのと同様の方法で、上記補正された確率(d/r)・Psr(τ,s)を正規化して、確率Psr’’(τ,s)を計算する。
The movement
The distance calculation unit 932 (FIG. 10) calculates the distance r between the center of the game screen and the cell s where the own device exists.
The
The integrating
The adding
なお、d/rではなく、距離rを入力として、画面中央に近い升目ほど大きく、画面中央から離れる升目ほど小さい値となるAzを出力する関数F(r)、例えば、F(r)=exp(−r)、F(r)=exp(−r2)、F(r)=1/(1+r2)、F(r)={a+exp(−r)}/(a+1)、F(r)={a+exp(−r2)}/(a+1)、F(r)={a+b^(−r2)}/(a+1)を用いて、確率Psr(τ,s)を補正しても良い。a,bは正定数である。expは、自然対数の底の冪乗演算である。記号^は冪乗を表す。ここでは、0以上1以下の範囲に収まる値を出力する関数を例示したが、適当な定数係数kを乗じることで0以上k以下の範囲に収まる値を出力するようにすることもできる。また、画面中央に近い升目ほど大きく画面中央から離れる升目ほど小さい値となる分布の程度は、例えば、cを正定数としてF(r)=exp(−r2/c)などとし、このcの値を適宜に設定することで調整可能である。また、F(r)={a+b×exp(−r)}/(a+1)、F(r)={a+c×b^(−r2)}/(a+1)などは、画面中央よりも遠方でa/(a+1)に漸近するから、aの値を0ではない値に適宜に設定することで、画面中央から離れた升目sのPsr(τ,s)を事実上無駄にしない、あるいは、画面中央から離れた升目sのPsr(τ,s)を過小評価しないことができる。 Note that a function F (r) that outputs Az that takes a distance r as input instead of d / r and outputs Az that is larger as the square closer to the center of the screen and smaller as the square away from the center of the screen, for example, F (r) = exp (−r), F (r) = exp (−r 2 ), F (r) = 1 / (1 + r 2 ), F (r) = {a + exp (−r)} / (a + 1), F (r) The probability Psr (τ, s) may be corrected using = {a + exp (−r 2 )} / (a + 1) and F (r) = {a + b ^ (− r 2 )} / (a + 1). a and b are positive constants. exp is the power of the base of the natural logarithm. The symbol ^ represents a power. Here, a function that outputs a value that falls within the range of 0 to 1 is illustrated, but a value that falls within the range of 0 to k can be output by multiplying by an appropriate constant coefficient k. Further, the degree of distribution that becomes larger as the grid closer to the center of the screen becomes larger as the grid farther from the center of the screen becomes, for example, F (r) = exp (−r 2 / c), where c is a positive constant. Adjustment is possible by appropriately setting the value. In addition, F (r) = {a + b × exp (−r)} / (a + 1), F (r) = {a + c × b ^ (− r 2 )} / (a + 1), etc. are far from the center of the screen. Since it is asymptotic to a / (a + 1), by appropriately setting the value of a to a value other than 0, Psr (τ, s) of the cell s away from the center of the screen is virtually not wasted, or the screen Psr (τ, s) of the cell s away from the center can not be underestimated.
また、上記変形例1と上記変形例2を組み合わせて行っても良い。すなわち、上記変形例1で求めたPsr’(τ,s)を、図10の積算部935に入力することにより、また、上記変形例2で求めたPsr’’(τ,s)を、図9の積算部925に入力することにより、より多くの敵機を破壊することができ、かつ、よりゲーム画面の中央に自機が位置するようにPsr(τ,s)を補正した確率Psr’’’(τ,s)を求めて、本発明を実施しても良い。
Moreover, you may carry out combining the said
[変形例3]
上記実施形態では、敵機存在確率計算部42は、上記式(2)を用いて、時刻t=τにおける敵機が升目se’(i)に存在する確率Pei(τ,se’(i))に基づいて、時刻t=τ+Tにおける敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を求めた。
しかし、敵機iの移動速度aの決定関数が、敵機の升目se’(i)と自機の升目sと時刻tによって、確率的に記述される場合には、敵機存在確率計算部42に替えて敵機存在確率計算部43が、上記式(2)に替えて、
Pei(τ+T,se(i))=Σs{Ps(τ,s)・Σse’(i)Σa{PAi(a,s,se’(i),τ)・Ptrei(se’(i),se(i),a)・Pei(τ,se’(i))}} …(6)
を、図12に示すように計算することにより、時刻t=τにおける敵機が升目se’(i)に存在する確率Pei(τ,se’(i))に基づいて、時刻t=τ+Tにおける敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を求めても良い。
[Modification 3]
In the above embodiment, the enemy aircraft existence
However, when the determination function of the moving speed a of the enemy aircraft i is described probabilistically by the enemy aircraft cell se ′ (i), the host aircraft cell s, and the time t, the enemy aircraft existence probability calculation unit In place of 42, the enemy aircraft existence
Pei (τ + T, se (i)) = Σ s {Ps (τ, s) · Σ se ′ (i) Σ a {PAi (a , s, se ′ (i), τ) · Ptrii (se ′ (i ), Se (i), a) · Pei (τ, se ′ (i))}} (6)
The by calculating as shown in FIG. 12, 'probability Pei present in (i) (tau, se' enemy machine squares se at time t = tau based on (i)), at time t = τ + T probability Pei that enemy is present in the squares se (i) (τ + T , s e (i)) may be obtained.
ここで、PAi(a,s,se’(i),τ)は、敵機の升目se’(i)と自機の升目sと時刻tによって、移動速度番号aが選択される確率である。
また、上記式(6)と数学的に等しい次式
Pei(τ+T,se(i))=ΣsΣse’(i)Σa{Ps(τ,s)・PAi(a,s,se’(i),τ)・Ptrei(se’(i),se(i),a)・Pei(τ,se’(i))} …(6a)
に基づいて、時刻t=τ+Tにおける敵機が升目se’(i)に存在する確率Pei(τ+T,se’(i))を求めても良い。
上記(2)式、(6)式は、敵機の未来での移動を考慮した敵機の各位置での正確な存在確率の計算方法である。
Here, PAi (a, s, se ′ (i), τ) is a probability that the moving speed number a is selected based on the enemy aircraft cell se ′ (i), the host aircraft cell s, and time t. .
Further, the following expression Pei (τ + T, se (i)) = Σ s Σ se ′ (i) Σ a {Ps (τ, s) · PAi (a , s , se ′) mathematically equivalent to the above-described expression (6). (I), τ) · Ptrei (se ′ (i), se (i), a) · Pei (τ, se ′ (i))} (6a)
Based on the, enemy aircraft at time t = τ + T is squares se 'probability exists in the (i) Pei (τ + T , se' (i)) may be obtained.
The above formulas (2) and (6) are calculation methods for the accurate existence probability at each position of the enemy aircraft considering the future movement of the enemy aircraft.
しかし、計算機に十分な速度や記憶容量がない場合には、図13に示す敵機存在確率計算部44、又は、図14に示す敵機存在確率計算部45が、以下の簡略化した式に基づいて計算をしても良い。
Pei(τ+T,se(i))=Σse’(i){Ptrei(se’(i),se(i),Ai(smax,se’(i),τ))・Pei(τ,se’(i))} …(2’)
Pei(τ+T,se(i))=Σse’(i)Σa{PAi(a,smax,se’(i),t−1)・Ptrei(se’(i),se(i),a)・Pei(τ,se’(i))} …(6’)
上記(2’)式、(6’)は、自機の升目sについて和を取ることを省略した代わりに、関数Aiと関数PAiが参照する升目sを、時刻t=τにおける自機の存在確率Ps(τ,s)を最大化する升目smaxとしたものである。
However, if the computer does not have sufficient speed and storage capacity, the enemy aircraft existence
Pei (τ + T, se (i)) = Σse ′ (i) {Ptrei (se ′ (i), se (i), Ai (smax, se ′ (i), τ)) · Pei (τ, se ′ (I)) } (2 ')
Pei (τ + T, se ( i)) = Σ se '(i) Σ a {PAi (a, smax, se' (i), t-1) · Ptrei (se '(i), se (i), a ) · Pei (τ, se ′ (i)) } (6 ′)
The above equations (2 ′) and (6 ′) represent the existence of the own aircraft at time t = τ, instead of omitting the summation of the own cell s, instead of the function Ai and the function PAi referring to the cell s. This is a cell smax that maximizes the probability Ps (τ, s).
また、図15に示す敵機存在確率計算部46、又は、図16に示す敵機存在確率計算部47が、さらに簡略化した、下記の式を用いて計算をしても良い。
Pei(τ+T,se(i))=Σse’(i){Ptrei(se’(i),se(i),Ai(τ))・Pei(τ,se’(i))} …(2’’)
Pei(τ+T,se(i))=Σse’(i)Σa{PAi(a,t−1)・Ptrei
(se’(i),se(i),a)・Pei(τ,se’(i))} …(6’’) 上記(2’’)式、(6’’)は、関数Aiと関数PAiが、時刻tのみに依存することとしたものである。
Further, the enemy aircraft existence
Pei (τ + T, se (i)) = Σse ′ (i) {Ptrei (se ′ (i), se (i), Ai (τ)) · Pei (τ, se ′ (i)) } (2 '')
Pei (τ + T, se (i)) = Σ se ′ (i) Σ a {PAi (a, t−1) · Ptrei
(Se ′ (i), se (i), a) · Pei (τ, se ′ (i)) } (6 ″) The above equation (2 ″), (6 ″) is the function Ai The function PAi depends only on the time t.
[変形例4]
上記実施形態においては、格子は画面に固定されており、t=zTにおける自機の位置が升目の中心に位置するとは限らなかった(zは整数)。そこで、t=zTにおける自機の現在位置が升目の中心に位置するように、格子を張り直しても良い。t=zTにおける自機の現在位置が升目の中心に位置するように格子を張り直すことにより、升目の一辺の長さSがS=VTである場合には、Ptr(s’,s,w)の値が必ず0か1となる。なぜなら、かかる場合には、x軸方向とy軸方向の自機の位置の変位量と、升目の一辺の長さが一致するため、升目t=zTにおいて自機が位置する升目を自機の位置の変位量(dxs,dys)だけ移動させた升目sdsは、格子上の升目とずれがなく、ぴったりと重なるからである。
[Modification 4]
In the above embodiment, the lattice is fixed to the screen, and the position of the own device at t = zT is not always located at the center of the cell (z is an integer). Therefore, the lattice may be re-stretched so that the current position of the aircraft at t = zT is located at the center of the cell. When the length S of one side of the square is S = VT by re-grinding the lattice so that the current position of the aircraft at t = zT is positioned at the center of the square, Ptr (s ′, s, w ) Is always 0 or 1. This is because in such a case, the displacement amount of the position of the own machine in the x-axis direction and the y-axis direction matches the length of one side of the grid, so that the grid where the machine is located at the grid t = zT This is because the grid sds moved by the positional displacement amount (dxs, dys) does not deviate from the grid on the lattice and exactly overlaps.
その他の実施例・変形例について
また、上記シューティングゲームの自機動作制御装置・方法をコンピュータによって実現することができる。この場合、シューティングゲームの自機動作制御装置・方法の内容はプログラムによって記述される。そして、このプログラムを、図11に示すようなコンピュータで実行することにより、上記シューティングゲームの自機動作制御装置・方法の処理機能がコンピュータ上で実現される。
この処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体としては、例えば、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリ等どのようなものでもよい。具体的には、例えば、磁気記録装置として、ハードディスク装置、フレキシブルディスク、磁気テープ等を、光ディスクとして、DVD(Digital Versatile Disc)、DVD−RAM(Random Access Memory)、CD−ROM(Compact Disc Read Only Memory)、CD−R(Recordable)/RW(ReWritable)等を、光磁気記録媒体として、MO(Magneto-Optical disc)等を、半導体メモリとしてEEP−ROM(Electronically Erasable and Programmable-Read Only Memory)等を用いることができる。
As for other embodiments and modifications , the above-mentioned shooting game player's own operation control device / method can be realized by a computer. In this case, the contents of the self-motion control device / method of the shooting game are described by a program. Then, by executing this program on a computer such as that shown in FIG. 11, the processing functions of the own operation control device / method for the shooting game are realized on the computer.
The program describing the processing contents can be recorded on a computer-readable recording medium. As the computer-readable recording medium, for example, any recording medium such as a magnetic recording device, an optical disk, a magneto-optical recording medium, and a semiconductor memory may be used. Specifically, for example, as a magnetic recording device, a hard disk device, a flexible disk, a magnetic tape or the like, and as an optical disk, a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD-ROM (Compact Disc Read Only). Memory), CD-R (Recordable) / RW (ReWritable), etc., magneto-optical recording medium, MO (Magneto-Optical disc), etc., semiconductor memory, EEP-ROM (Electronically Erasable and Programmable-Read Only Memory), etc. Can be used.
また、このプログラムの流通は、例えば、そのプログラムを記録したDVD、CD−ROM等の可搬型記録媒体を販売、譲渡、貸与等することによって行う。さらに、このプログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することにより、このプログラムを流通させる構成としてもよい。
このようなプログラムを実行するコンピュータは、例えば、まず、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、一旦、自己の記憶装置に格納する。そして、処理の実行時、このコンピュータは、自己の記録媒体に格納されたプログラムを読み取り、読み取ったプログラムに従った処理を実行する。また、このプログラムの別の実行形態として、コンピュータが可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することとしてもよく、さらに、このコンピュータにサーバコンピュータからプログラムが転送されるたびに、逐次、受け取ったプログラムに従った処理を実行することとしてもよい。また、サーバコンピュータから、このコンピュータへのプログラムの転送は行わず、その実行指示と結果取得のみによって処理機能を実現する、いわゆるASP(Application Service Provider)型のサービスによって、上述の処理を実行する構成としてもよい。なお、本形態におけるプログラムには、電子計算機による処理用に供する情報であってプログラムに準ずるもの(コンピュータに対する直接の指令ではないがコンピュータの処理を規定する性質を有するデータ等)を含むものとする。
The program is distributed by selling, transferring, or lending a portable recording medium such as a DVD or CD-ROM in which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of the server computer and transferring the program from the server computer to another computer via a network.
A computer that executes such a program first stores, for example, a program recorded on a portable recording medium or a program transferred from a server computer in its own storage device. When executing the process, the computer reads a program stored in its own recording medium and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from a portable recording medium and execute processing according to the program, and the program is transferred from the server computer to the computer. Each time, the processing according to the received program may be executed sequentially. Also, the program is not transferred from the server computer to the computer, and the above-described processing is executed by a so-called ASP (Application Service Provider) type service that realizes the processing function only by the execution instruction and result acquisition. It is good. Note that the program in this embodiment includes information that is provided for processing by an electronic computer and that conforms to the program (data that is not a direct command to the computer but has a property that defines the processing of the computer).
また、この形態では、コンピュータ上で所定のプログラムを実行させることにより、シューティングゲームの自機動作制御装置・方法を構成することとしたが、これらの処理内容の少なくとも一部をハードウェア的に実現することとしてもよい。
以上の各実施形態の他、本発明であるシューティングゲームの自機動作制御装置・方法等は上述の実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲で適宜変更が可能である。
In this embodiment, the self-motion control device / method for the shooting game is configured by executing a predetermined program on the computer. However, at least a part of these processing contents is realized by hardware. It is good to do.
In addition to the above-described embodiments, the self-motion control device / method for a shooting game according to the present invention is not limited to the above-described embodiments, and can be appropriately changed without departing from the spirit of the present invention. is there.
Claims (13)
選択された移動速度によって自機が移動を始める時刻tをt=0とし、
第一存在確率計算手段が、t=nT(nは任意の自然数)において自機が敵機及び敵機の攻撃弾によって破壊されないで、ゲーム画面を分割した格子を構成する各升目sに存在する確率Ps(nT,s)を求めて、第一自機存在確率記憶手段に格納する第一存在確率計算ステップと、
自機目標位置決定手段が、第一自機存在確率記憶手段から読み出した、t=nTにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで各升目sに存在する確率Ps(nT,s)のうち、その確率を最も高くする升目を選択して、その升目を目標位置とする自機目標位置決定ステップと、
第二自機存在確率計算手段が、時刻t=nTにおいて自機が上記目標位置に到達するとした場合に、時刻t=Tにおいて自機が各升目sに存在する確率Psr(T,s)を計算して、第二自機存在確率記憶手段に格納する第二自機存在確率計算ステップと、
移動速度決定手段が、時刻t=0における自機が時刻t=Tにおいて到達することができる升目s0’のうち、第二自機存在確率記憶手段から読み出した確率Psr(T,s0’)を最も高くする升目に移動するように、時刻t=0における自機の移動速度を決定する移動速度決定ステップと、
を有し、
上記第一存在確率計算ステップは、
敵機の初期存在確率計算手段が、時刻t=0における敵機が、各升目sに存在している確率Pei(0,s)を求め、敵機存在確率記憶手段に格納する敵機の初期存在確率計算ステップと、
敵機攻撃弾の初期存在確率計算手段が、時刻t=0における敵機の攻撃弾が、各升目sに存在している確率Pbj(0,s)を求め、敵機攻撃弾存在確率記憶手段に格納する敵機攻撃弾の初期存在確率計算ステップと、
自機の初期存在確率計算手段が、時刻t=0における自機が、格子に分割されたゲーム画面において、その格子を構成する各升目sに存在している確率Ps(0,s)を求め、第一存在確率記憶手段に格納する自機の初期存在確率計算ステップと、
敵機存在確率計算手段が、時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τと升目se’(i)と升目sの位置によって移動速度を決定する移動速度決定関数に基づいて決定される移動速度aに従って敵機が行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動する確率と、時刻t=τにおいて自機が升目sに存在する確率との積を、すべての升目se’と升目sの組ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納する敵機存在確率計算ステップと、
敵機攻撃弾存在確率計算手段が、時刻t=τにおいて敵機の攻撃弾が升目s’に存在する確率Pbj(τ,s’)と、敵機の攻撃弾が移動速度Vbjに従って行動単位時間Tだけ移動することによって升目s’から升目sに移動する確率との積を、すべての升目s’ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ+T,s)を、すべての升目sとτ=kT(kはn−1以下の自然数)の組について求めて、敵機攻撃弾存在確率記憶手段に格納する敵機攻撃弾存在確率計算ステップと、
最大値抽出手段が、すべてのτ+Tと升目sの組ごとに、上記敵機存在確率記憶手段から読み出した時刻t=τ+Tにおいて敵機が升目sに存在する確率Pei(τ+T,s)と、上記敵機攻撃弾存在確率記憶手段から読み出した時刻t=τ+Tにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ+T,s)との大小関係を比較し、最も大きい確率を出力する最大値抽出ステップと、
第一自機存在確率計算手段が、時刻t=τにおいて自機が升目s’に存在する確率Ps(τ,s’)と、自機が移動速度wを選択する確率と、自機が移動速度wに従って行動単位時間Tだけ移動することによって升目s’から升目sに移動する確率Ptr(s’,s,w)との積を、すべての升目s’と自機の移動速度wの組ごとに求め、これら求まった積を加算した値に、上記最大値抽出手段がτ+Tと升目sの組について出力した確率を1から引いた値を乗算することによって、時刻t=τ+Tにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで升目sに存在する確率Ps(τ+T,s)を、すべての升目sとτ=kT(kはn−1以下の自然数)の組について求めて、第一自機存在確率記憶手段に格納する第一自機存在確率計算ステップと、
から構成され、
上記第二自機存在確率計算ステップは、
第二自機存在確率計算手段が、時刻t=nTにおいて自機が上記目標位置に到達するとした場合に時刻t=τ+Tにおいて自機が升目s’に存在する確率Psr(τ+T,s’)と、自機が移動速度wを選択する確率と、自機が移動速度wに従って行動単位時間Tだけ移動することによって升目sから升目s’に移動する確率Ptr(s,s’,w)との積を、すべての升目s’と自機の移動速度wの組ごとに求め、これら求まった積を加算した値に、上記最大値抽出手段がTと升目sの組について求めた確率を1から引いた値を乗算することによって、時刻t=nTにおいて自機が上記目標位置に到達するとした場合に時刻t=τにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで升目sに存在する確率Psr(t,s)を、すべての升目sとτ=mT(mはn−1以下の自然数)の組について求めて、第二自機存在確率記憶手段に格納する第二自機存在確率計算ステップ、
である、
ことを特徴とするシューティングゲームの自機動作制御方法。 A computer comprising first existence probability calculation means, own apparatus target position determination means, second own apparatus existence probability calculation means, and movement speed determination means is a method for performing own apparatus operation control of a shooting game,
The time t at which the aircraft starts moving at the selected moving speed is set to t = 0,
The first existence probability calculation means exists in each cell s constituting the lattice dividing the game screen without being destroyed by the enemy aircraft and the enemy bullets at t = nT (n is an arbitrary natural number). A first existence probability calculation step of obtaining a probability Ps (nT, s) and storing the probability Ps (nT, s) in the first device existence probability storage means;
The probability Ps (nT, nT, n) that the target position determination unit is not destroyed by the enemy aircraft and the attacking bullet of the enemy aircraft at t = nT, which is read by the own target position determination unit from the first own existence probability storage unit. s), selecting the cell having the highest probability, and determining the target position of the aircraft as a target position;
The second ship existence probability calculation unit, when the own apparatus at time t = nT is to reach the target position, the probability own apparatus at time t = T is present in each square s Psr (T, s) And calculating the second own machine existence probability storing in the second own machine existence probability storage means ,
The moving speed determining means uses the probability Psr (T, s0 ′) read from the second own existence probability storage means among the cells s0 ′ that the own apparatus at time t = 0 can reach at time t = T. A moving speed determining step for determining the moving speed of the own device at time t = 0 so as to move to the highest cell.
I have a,
The first existence probability calculation step includes:
The initial existence probability calculation means of the enemy aircraft obtains the probability Pei (0, s) that the enemy aircraft at time t = 0 exists in each cell s, and stores it in the enemy aircraft existence probability storage means. An existence probability calculation step;
The enemy aircraft attack bullet initial existence probability calculation means obtains the probability Pbj (0, s) that the enemy aircraft attack bullet at time t = 0 exists in each cell s, and the enemy aircraft attack bullet existence probability storage means. The initial existence probability calculation step of enemy aircraft attack bullets stored in
The initial existence probability calculation means of the own device obtains a probability Ps (0, s) that the own device at time t = 0 exists in each cell s constituting the lattice in the game screen divided into the lattice. , The initial existence probability calculation step of the own device stored in the first existence probability storage means,
The enemy aircraft existence probability calculating means calculates the probability Pei (τ, se ′ (i)) that the enemy aircraft exists in the cell se ′ (i) at the time t = τ, and the time t = τ and the cell se ′ (i). The enemy aircraft moves from the cell se ′ (i) to the cell se (i) by moving for the action unit time T according to the movement speed a determined based on the movement speed determination function that determines the movement speed according to the position of the cell s. And the probability that the aircraft is present in the cell s at time t = τ is obtained for each set of all cells se ′ and cell s, and these obtained products are added to obtain a time t = The probability Pei (τ + T, se (i)) that an enemy aircraft exists in the cell se (i) at τ + T is obtained for all τ = kT (k is a natural number less than n−1), and the enemy aircraft existence probability storage means The enemy aircraft existence probability calculation step stored in
The enemy aircraft attack bullet presence probability calculating means determines the probability Pbj (τ, s ′) that the enemy's attack bullet is present in the cell s ′ at time t = τ and the enemy unit's attack bullet according to the movement speed Vbj. The product of the probability of moving from the cell s ′ to the cell s by moving by T is obtained for every cell s ′, and by adding these obtained products, the attack bullet of the enemy aircraft at time t = τ + T The probability Pbj (τ + T, s) existing in the cell s is obtained for all pairs of cells s and τ = kT (k is a natural number equal to or less than n−1) and stored in the enemy aircraft attack bullet existence probability storage means. Enemy aircraft attack bullet existence probability calculation step,
The maximum value extraction means, for every set of τ + T and cell s, the probability Pei (τ + T, s) that the enemy aircraft exists in cell s at time t = τ + T read from the enemy aircraft existence probability storage means, and the above The maximum value that outputs the highest probability by comparing the magnitude relationship with the probability Pbj (τ + T, s) that the enemy bullet is present in the cell s at the time t = τ + T read from the enemy aircraft bullet presence probability storage means An extraction step;
The first own device existence probability calculation means determines that the own device exists in the cell s ′ at time t = τ, the probability Ps (τ, s ′), the probability that the own device selects the moving speed w, and the own device moves. The product of the probability Ptr (s ′, s, w) of moving from the cell s ′ to the cell s by moving by the action unit time T according to the speed w is a set of all the cells s ′ and the movement speed w of the own aircraft. By multiplying the value obtained by adding each of the obtained products and the value obtained by subtracting from 1 the probability that the maximum value extraction means has output for the set of τ + T and the grid s, the own device at time t = τ + T The probability Ps (τ + T, s) existing in the cell s without being destroyed by the enemy aircraft and the enemy's attacking bullet is determined for all the cells s and τ = kT (k is a natural number less than n−1). First own existence probability calculation step stored in the first own existence probability storage means And,
Consisting of
The second aircraft existence probability calculation step
The second ship existence probability calculation unit, own apparatus at time t = nT is own apparatus at time t = τ + T when the reaching the target position squares s 'probability present in Psr (τ + T, s' ) And the probability that the own device selects the moving speed w, and the probability Ptr (s, s ′, w) that the own device moves from the cell s to the cell s ′ by moving for the action unit time T according to the moving speed w. Is obtained for each set of all the cells s ′ and the moving speed w of the own machine, and the probability obtained by the maximum value extraction means for the set of T and the cell s is added to a value obtained by adding these products. by multiplying the value obtained by subtracting from, in the own device is not destroyed by the own apparatus attack bomb enemy planes and enemy aircraft at time t = tau when the reaching the target position at time t = nT squares s The probability Psr (t, s) existing in s and τ = mT (m is n-1 following a natural number) are determined for the set of the second ship existence probability calculating step of storing the second ship existence probability memory means,
Is,
A self-motion control method of a shooting game characterized by the above.
上記敵機存在確率計算ステップは、
敵機存在確率計算手段が、時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τと升目se’(i)と升目sの位置によって移動速度を決定する移動速度決定関数に基づいて敵機が移動速度aを選択する確率と、敵機が移動速度aに従って行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動する確率と、時刻t=τにおいて自機が升目sに存在する確率との積を、すべての移動速度aと升目se’と升目sの組ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納するステップである、
ことを特徴とするシューティングゲームの自機動作制御方法。 In the own game operation control method of the shooting game according to claim 1,
The enemy aircraft existence probability calculation step
The enemy aircraft existence probability calculating means calculates the probability Pei (τ, se ′ (i)) that the enemy aircraft exists in the cell se ′ (i) at the time t = τ, and the time t = τ and the cell se ′ (i). The probability that the enemy aircraft selects the moving speed a based on the moving speed determination function that determines the moving speed according to the position of the cell s, and the enemy aircraft moving by the action unit time T according to the moving speed a will result in the cell se ′ (i ) To the cell se (i) and the product of the probability that the aircraft exists in the cell s at time t = τ for each set of the moving speed a, the cell se ′, and the cell s. By adding these obtained products, the probability Pei (τ + T, se (i)) that an enemy aircraft is present in the cell se (i) at time t = τ + T is calculated as all τ = kT (k is n−1 or less). Natural number) and store it in the enemy aircraft existence probability storage means. Tsu is a flop,
A self-motion control method of a shooting game characterized by the above.
上記敵機存在確率計算ステップは、
敵機存在確率計算手段が、時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τと升目se’(i)と自機が最も高い確率で存在する升目sの位置によって移動速度を決定する移動速度決定関数に基づいて決定される移動速度aに従って敵機が行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動する確率と、時刻t=τにおいて自機が升目sに存在確率との積を、すべての升目se’ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納する敵機存在確率計算ステップである、
ことを特徴とするシューティングゲームの自機動作制御方法。 In the own game operation control method of the shooting game according to claim 1,
The enemy aircraft existence probability calculation step
The enemy aircraft existence probability calculating means calculates the probability Pei (τ, se ′ (i)) that the enemy aircraft exists in the cell se ′ (i) at the time t = τ, and the time t = τ and the cell se ′ (i). The enemy aircraft moves by the action unit time T according to the movement speed a determined based on the movement speed determination function that determines the movement speed according to the position of the cell s that exists with the highest probability. ) To the cell se (i) and the product of the existence probability for the cell s at time t = τ for each cell se ′, and adding these obtained products, The probability Pei (τ + T, se (i)) that an enemy aircraft exists in the cell se (i) at time t = τ + T is obtained for all τ = kT (k is a natural number of n−1 or less), and the enemy aircraft exists. In the enemy aircraft existence probability calculation step stored in the probability storage means That,
A self-motion control method of a shooting game characterized by the above.
上記敵機存在確率計算ステップは、
敵機存在確率計算手段が、時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τと升目se’(i)と自機が最も高い確率で存在する升目sの位置によって移動速度を決定する移動速度決定関数に基づいて敵機が移動速度aを選択する確率と、敵機が移動速度aに従って行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動する確率と、時刻t=τにおいて自機が升目sに存在する確率との積を、すべての移動速度aと升目se’の組ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納するステップである、
ことを特徴とするシューティングゲームの自機動作制御方法。 In the own game operation control method of the shooting game according to claim 1,
The enemy aircraft existence probability calculation step
The enemy aircraft existence probability calculating means calculates the probability Pei (τ, se ′ (i)) that the enemy aircraft exists in the cell se ′ (i) at the time t = τ, and the time t = τ and the cell se ′ (i). The probability that the enemy aircraft will select the moving speed a based on the moving speed determination function that determines the moving speed according to the position of the cell s that has the highest probability of the own aircraft, and the enemy aircraft only for the action unit time T according to the moving speed a The product of the probability of moving from the cell se ′ (i) to the cell se (i) by the movement and the probability that the own aircraft is in the cell s at time t = τ is the product of all the moving speeds a and the cell se ′. And the probability Pei (τ + T, se (i)) that an enemy aircraft exists in the cell se (i) at time t = τ + T is obtained for all τ = kT ( k is a natural number less than n-1) A step of storing the 憶 means,
A self-motion control method of a shooting game characterized by the above.
上記敵機存在確率計算ステップは、
敵機存在確率計算手段が、時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τによって移動速度を決定する移動速度決定関数に基づいて決定される移動速度aに従って敵機が行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動する確率と、時刻t=τにおいて自機が升目sに存在確率との積を、すべての升目se’ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納する敵機存在確率計算ステップである、
ことを特徴とするシューティングゲームの自機動作制御方法。 In the own game operation control method of the shooting game according to claim 1,
The enemy aircraft existence probability calculation step
The enemy aircraft existence probability calculation means determines the movement speed based on the probability Pei (τ, se ′ (i)) that the enemy aircraft exists in the cell se ′ (i) at time t = τ and the time t = τ. The probability that the enemy aircraft moves from the cell se ′ (i) to the cell se (i) by moving for the action unit time T according to the moving speed a determined based on the determination function, and the own aircraft at time t = τ. The product of the existence probability in the cell s is obtained for every cell se ′, and by adding these obtained products, the probability Pei (τ + T, T) that the enemy aircraft exists in the cell se (i) at time t = τ + T. se (i)) is calculated for all τ = kT (k is a natural number equal to or less than n−1), and is stored in the enemy aircraft existence probability storage means.
A self-motion control method of a shooting game characterized by the above.
上記敵機存在確率計算ステップは、
敵機存在確率計算手段が、時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τによって移動速度を決定する移動速度決定関数に基づいて敵機が移動速度aを選択する確率と、敵機が移動速度aに従って行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動する確率と、時刻t=τにおいて自機が升目sに存在する確率との積を、すべての移動速度aと升目se’の組ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納するステップである、
ことを特徴とするシューティングゲームの自機動作制御方法。 In the own game operation control method of the shooting game according to claim 1,
The enemy aircraft existence probability calculation step
The enemy aircraft existence probability calculation means determines the movement speed based on the probability Pei (τ, se ′ (i)) that the enemy aircraft exists in the cell se ′ (i) at time t = τ and the time t = τ. The probability that the enemy aircraft selects the moving speed a based on the decision function, and the probability that the enemy aircraft moves from the cell se ′ (i) to the cell se (i) by moving for the action unit time T according to the moving speed a. At time t = τ + T, the product of the probability that the aircraft exists in the cell s at time t = τ is obtained for each set of all moving speeds a and cell se ′, and the obtained products are added. The probability Pei (τ + T, se (i)) that an enemy aircraft exists in the cell se (i) is obtained for all τ = kT (k is a natural number less than n−1) and stored in the enemy aircraft existence probability storage means. Is the step to
A self-motion control method of a shooting game characterized by the above.
上記第二自機存在確率計算ステップは、
加算手段が、上記敵機存在確率記憶手段から読み出した、自機の射線上にある升目se(i)に存在する敵機の存在確率Pei(t,se(i))を加算する加算ステップと、
第一乗算手段が、上記すべての升目sと時刻tの組ごとに求まった確率Psr(t,s)に、上記加算ステップで求まった加算値に1を加えた値に比例した値を乗算する第一乗算ステップと、
正規化手段が、上記第一乗算ステップで求まった値をそれぞれ、上記乗算ステップで求まった値を時刻tにおけるすべての升目sについて足し合わせた値で割算することにより上記確率Psr(t,s)を正規化して、第二自機存在確率記憶手段に格納する正規化ステップと、
をさらに有する、
ことを特徴とするシューティングゲームの自機動作制御方法。 A method for controlling the own operation of a shooting game according to claim 1,
The second aircraft existence probability calculation step
An adding step in which the adding means adds the existence probability Pei (t, se (i)) of the enemy aircraft existing in the cell se (i) on the ray of the own aircraft read out from the enemy aircraft existence probability storage means; ,
The first multiplication means multiplies the probability Psr (t, s) obtained for each set of all the cells s and time t by a value proportional to the value obtained by adding 1 to the addition value obtained in the addition step. A first multiplication step;
The normalizing means divides the value obtained in the first multiplication step by the value obtained by adding the values obtained in the multiplication step for all the cells s at time t, thereby calculating the probability Psr (t, s ) To normalize and store in the second aircraft presence probability storage means;
Further having
A self-motion control method of a shooting game characterized by the above.
上記第二自機存在確率計算ステップは、
第二乗算手段が、上記すべての升目sと時刻tの組ごとに求まった確率Psr(t,s)に、画面の中央部と上記升目sに存在する自機との距離に反比例した値を乗算する第二乗算ステップと、
正規化手段が、上記第二乗算ステップで求まった値をそれぞれ、上記第二乗算ステップで求まった値を時刻tにおけるすべての升目sについて足し合わせた値で割算することにより上記確率Psr(t,s)を正規化して、第二自機存在確率記憶手段に格納する正規化ステップと、
をさらに有する、
ことを特徴とするシューティングゲームの自機動作制御方法。 A self-machine operation control method for a shooting game according to claim 1,
The second aircraft existence probability calculation step
The second multiplication means sets a value inversely proportional to the distance between the center of the screen and the own aircraft existing in the cell s to the probability Psr (t, s) obtained for each set of the cells s and time t. A second multiplication step to multiply;
The normalizing means divides the value obtained in the second multiplication step by the value obtained by adding the values obtained in the second multiplication step for all the cells s at time t, thereby calculating the probability Psr (t , S) is normalized, and stored in the second own device existence probability storage means;
Further having
A self-motion control method of a shooting game characterized by the above.
上記ゲーム画面を分割した各升目の一辺の長さは、自機の形状に内接する円の直径と敵機の攻撃弾の形状に内接する円の直径の和の半分の値の3分の1以下である、
ことを特徴とするシューティングゲームの自機動作制御方法。 A self-machine operation control method for a shooting game according to claim 1,
The length of one side of each square dividing the above game screen is one third of the sum of the diameter of the circle inscribed in the shape of its own aircraft and the diameter of the circle inscribed in the shape of the attacking bullet of the enemy aircraft. Is
A self-motion control method of a shooting game characterized by the above.
上記ゲーム画面を分割した各升目の一辺の長さは、その辺に平行な方向に進む自機の速さに行動単位時間Tをかけたものである、
ことを特徴とするシューティングゲームの自機動作制御方法。 A self-machine operation control method for a shooting game according to claim 1,
The length of one side of each square that divides the game screen is obtained by multiplying the speed of one's own machine traveling in a direction parallel to the side by the action unit time T.
A self-motion control method of a shooting game characterized by the above.
第一自機存在確率記憶手段と、
第二自機存在確率記憶手段と、
t=nT(nは任意の自然数)において自機が敵機及び敵機の攻撃弾によって破壊されないで、ゲーム画面を分割した格子を構成する各升目sに存在する確率Ps(nT,s)を求めて、第一自機存在確率記憶手段に格納する第一存在確率計算手段と、
第一自機存在確率記憶手段から読み出した、t=nTにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで各升目sに存在する確率Ps(nT,s)のうち、その確率を最も高くする升目を選択して、その升目を目標位置とする自機目標位置決定手段と、
時刻t=nTにおいて自機が上記目標位置に到達するとした場合に、時刻t=Tにおいて自機が各升目sに存在する確率Psr(T,s)を計算して、第二自機存在確率記憶手段に格納する第二自機存在確率計算手段と、
時刻t=0における自機が時刻t=Tにおいて到達することができる升目s0’のうち、第二自機存在確率記憶手段から読み出した確率Psr(T,s0’)を最も高くする升目に移動するように、時刻t=0における自機の移動速度を決定する移動速度決定手段と、
を有し、
上記第一存在確率計算手段は、
時刻t=0における敵機が、各升目sに存在している確率Pei(0,s)を求め、敵機存在確率記憶手段に格納する敵機の初期存在確率計算手段と、
時刻t=0における敵機の攻撃弾が、各升目sに存在している確率Pbj(0,s)を求め、敵機攻撃弾存在確率記憶手段に格納する敵機攻撃弾の初期存在確率計算手段と、
時刻t=0における自機が、格子に分割されたゲーム画面において、その格子を構成する各升目sに存在している確率Ps(0,s)を求め、第一存在確率記憶手段に格納する自機の初期存在確率計算手段と、
時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τと升目se’(i)と升目sの位置によって移動速度を決定する移動速度決定関数に基づいて決定される移動速度aに従って敵機が行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動する確率と、時刻t=τにおいて自機が升目sに存在する確率との積を、すべての升目se’と升目sの組ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納する敵機存在確率計算手段と、
時刻t=τにおいて敵機の攻撃弾が升目s’に存在する確率Pbj(τ,s’)と、敵機の攻撃弾が移動速度Vbjに従って行動単位時間Tだけ移動することによって升目s’から升目sに移動する確率との積を、すべての升目s’ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ+T,s)を、すべての升目sとτ=kT(kはn−1以下の自然数)の組について求めて、敵機攻撃弾存在確率記憶手段に格納する敵機攻撃弾存在確率計算手段と、
すべてのτ+Tと升目sの組ごとに、上記敵機存在確率記憶手段から読み出した時刻t=τ+Tにおいて敵機が升目sに存在する確率Pei(τ+T,s)と、上記敵機攻撃弾存在確率記憶手段から読み出した時刻t=τ+Tにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ+T,s)との大小関係を比較し、最も大きい確率を出力する最大値抽出手段と、
時刻t=τにおいて自機が升目s’に存在する確率Ps(τ,s’)と、自機が移動速度wを選択する確率と、自機が移動速度wに従って行動単位時間Tだけ移動することによって升目s’から升目sに移動する確率Ptr(s’,s,w)との積を、すべての升目s’と自機の移動速度wの組ごとに求め、これら求まった積を加算した値に、上記最大値抽出手段がτ+Tと升目sの組について出力した確率を1から引いた値を乗算することによって、時刻t=τ+Tにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで升目sに存在する確率Ps(τ+T,s)を、すべての升目sとτ=kT(kはn−1以下の自然数)の組について求めて、第一自機存在確率記憶手段に格納する第一自機存在確率計算手段と、
から構成され、
上記第二自機存在確率計算手段は、
時刻t=nTにおいて自機が上記目標位置に到達するとした場合に時刻t=τ+Tにおいて自機が升目s’に存在する確率Psr(τ+T,s’)と、自機が移動速度wを選択する確率と、自機が移動速度wに従って行動単位時間Tだけ移動することによって升目sから升目s’に移動する確率Ptr(s,s’,w)との積を、すべての升目s’と自機の移動速度wの組ごとに求め、これら求まった積を加算した値に、上記最大値抽出手段がTと升目sの組について求めた確率を1から引いた値を乗算することによって、時刻t=nTにおいて自機が上記目標位置に到達するとした場合に時刻t=τにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで升目sに存在する確率Psr(t,s)を、すべての升目sとτ=mT(mはn−1以下の自然数)の組について求めて、第二自機存在確率記憶手段に格納する第二自機存在確率計算手段、
であることを特徴とするシューティングゲームの自機動作制御装置。The time t at which the aircraft starts moving at the selected moving speed is set to t = 0,
The first aircraft existence probability storage means,
Second own aircraft existence probability storage means;
At t = nT (n is an arbitrary natural number), the probability Ps (nT, s) that exists in each cell s constituting the grid dividing the game screen without being destroyed by the enemy aircraft and the attacking bullets of the enemy aircraft. Obtaining the first existence probability calculating means for storing in the first own existence probability storage means;
Of the probabilities Ps (nT, s) that are read from the first own machine existence probability storage means and are not destroyed by the enemy aircraft and the enemy's attack bullet at t = nT, The own target position determining means for selecting the cell to be the highest and setting the cell as the target position;
When the own apparatus at time t = nT is to reach the target position, the probability Psr (T, s) the own apparatus is present in each square s at time t = T to calculate the second ship there A second own existence probability calculation means for storing in the probability storage means ;
Among the cells s0 ′ that can be reached at time t = T, the device at time t = 0 moves to the cell that has the highest probability Psr (T, s0 ′) read from the second device existence probability storage means. A moving speed determining means for determining the moving speed of the aircraft at time t = 0,
I have a,
The first existence probability calculation means includes:
An enemy aircraft initial existence probability calculating means for determining the probability Pei (0, s) that the enemy aircraft at time t = 0 exists in each cell s, and storing the probability Pei (0, s) in the enemy aircraft existence probability storage means;
The probability Pbj (0, s) that an enemy aircraft's attack bullet at time t = 0 is present in each cell s is obtained, and the enemy aircraft's initial attack probability calculation stored in the enemy aircraft's attack bullet presence probability storage means is calculated. Means,
The own machine at time t = 0 obtains the probability Ps (0, s) existing in each cell s constituting the lattice in the game screen divided into lattices, and stores it in the first existence probability storage means. Your own aircraft's initial existence probability calculation means,
The probability Pei (τ, se ′ (i)) that an enemy aircraft exists in the cell se ′ (i) at time t = τ, and the moving speed according to the position of the time t = τ, the cell se ′ (i), and the cell s. The probability that the enemy aircraft moves from the cell se ′ (i) to the cell se (i) by moving the enemy aircraft according to the movement speed a determined based on the moving speed determination function to be determined, and the time t = τ. At the time t = τ + T, the enemy aircraft is determined to obtain the product of the probability that the own aircraft is present in the cell s for each set of all the cells se ′ and the cell s. The probability Pei (τ + T, se (i)) existing in i) is calculated for all τ = kT (k is a natural number equal to or less than n−1) and stored in the enemy aircraft existence probability storage means. Means,
The probability Pbj (τ, s ′) that an enemy aircraft's attack bullet is present in the cell s ′ at time t = τ and the enemy aircraft's attack bullet move from the cell s ′ by moving for the action unit time T according to the moving speed Vbj. The product of the probability of moving to the cell s is obtained for every cell s ′, and by adding these obtained products, the probability Pbj (τ + T) that an enemy bullet is present in the cell s at time t = τ + T. , S) for all sets of squares s and τ = kT (k is a natural number equal to or less than n−1) and stored in the enemy aircraft attack bullet existence probability storage means,
The probability Pei (τ + T, s) that the enemy aircraft exists in the mesh s at the time t = τ + T read from the enemy aircraft existence probability storage means for every set of τ + T and the mesh s, and the enemy aircraft attack bullet existence probability A maximum value extracting means for comparing the magnitude relationship with the probability Pbj (τ + T, s) that the attacking bullet of the enemy aircraft is present in the cell s at time t = τ + T read from the storage means, and outputting the highest probability;
The probability Ps (τ, s ′) that the own device exists in the cell s ′ at the time t = τ, the probability that the own device selects the moving speed w, and the own device moves by the action unit time T according to the moving speed w. Accordingly, the product of the probability Ptr (s ′, s, w) of moving from the cell s ′ to the cell s is obtained for each set of all the cells s ′ and the moving speed w of the own aircraft, and the obtained products are added. Is multiplied by a value obtained by subtracting from 1 the probability output by the maximum value extraction means for the set of τ + T and the square s from the above value, so that at time t = τ + T The probability Ps (τ + T, s) existing in the cell s without being obtained is obtained for all pairs of cells s and τ = kT (k is a natural number of n−1 or less) and stored in the first own device existence probability storage means. The first own aircraft existence probability calculation means,
Consisting of
The second own existence probability calculation means is:
When the aircraft arrives at the target position at time t = nT, the probability Psr (τ + T, s ′) that the aircraft exists in the cell s ′ at time t = τ + T and the movement speed w are selected by the aircraft. The product of the probability and the probability Ptr (s, s ′, w) that the aircraft moves from the cell s to the cell s ′ by moving for the action unit time T according to the moving speed w is calculated as the product of all cells s ′ The value obtained by subtracting the probability obtained by the maximum value extracting means for the set of T and the square s from the value obtained by obtaining for each set of the moving speed w of the machine and adding the obtained products to the time When it is assumed that the aircraft reaches the target position at t = nT, the probability Psr (t, s) that the aircraft is not destroyed by the enemy aircraft and the enemy's attack bullet at time t = τ is All cells s and τ = mT (m is n-1 or less Second natural machine existence probability calculating means for obtaining the second natural machine existence probability storing means,
Self-riot operation control unit of the shooter, characterized in that it is.
第一存在確率計算手段が、t=nT(nは任意の自然数)において自機が敵機及び敵機の攻撃弾によって破壊されないで、ゲーム画面を分割した格子を構成する各升目sに存在する確率Ps(nT,s)を求めて、第一自機存在確率記憶手段に格納する第一存在確率計算ステップと、 The first existence probability calculation means exists in each cell s constituting the lattice dividing the game screen without being destroyed by the enemy aircraft and the enemy bullets at t = nT (n is an arbitrary natural number). A first existence probability calculation step of obtaining a probability Ps (nT, s) and storing the probability Ps (nT, s) in the first device existence probability storage means;
自機目標位置決定手段が、第一自機存在確率記憶手段から読み出した、t=nTにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで各升目sに存在する確率Ps(nT,s)のうち、その確率を最も高くする升目を選択して、その升目を目標位置とする自機目標位置決定ステップと、 The probability Ps (nT, nT, n) that the target position determination unit is not destroyed by the enemy aircraft and the attacking bullet of the enemy aircraft at t = nT, which is read by the own target position determination unit from the first own existence probability storage unit. s), selecting the cell having the highest probability, and determining the target position of the aircraft as a target position;
第二自機存在確率計算手段が、時刻t=nTにおいて自機が上記目標位置に到達するとした場合に、時刻t=Tにおいて自機が各升目sに存在する確率Psr(T,s)を計算して、第二自機存在確率記憶手段に格納する第二自機存在確率計算ステップと、 When the second own device existence probability calculating means determines that the own device reaches the target position at time t = nT, the probability Psr (T, s) that the own device exists in each cell s at time t = T is calculated. A second own device existence probability calculating step for calculating and storing the second own device existence probability storage means;
移動速度決定手段が、時刻t=0における自機が時刻t=Tにおいて到達することができる升目s0’のうち、第二自機存在確率記憶手段から読み出した確率Psr(T,s0’)を最も高くする升目に移動するように、時刻t=0における自機の移動速度を決定する移動速度決定ステップと、 The moving speed determining means uses the probability Psr (T, s0 ′) read from the second own existence probability storage means among the cells s0 ′ that the own apparatus at time t = 0 can reach at time t = T. A moving speed determining step for determining the moving speed of the own device at time t = 0 so as to move to the highest cell.
をコンピュータに実行させるためのシューティングゲーム処理プログラムであって、 A shooting game processing program for causing a computer to execute
上記第一存在確率計算ステップは、 The first existence probability calculation step includes:
敵機の初期存在確率計算手段が、時刻t=0における敵機が、各升目sに存在している確率Pei(0,s)を求め、敵機存在確率記憶手段に格納する敵機の初期存在確率計算ステップと、 The initial existence probability calculation means of the enemy aircraft obtains the probability Pei (0, s) that the enemy aircraft at time t = 0 exists in each cell s, and stores it in the enemy aircraft existence probability storage means. An existence probability calculation step;
敵機攻撃弾の初期存在確率計算手段が、時刻t=0における敵機の攻撃弾が、各升目sに存在している確率Pbj(0,s)を求め、敵機攻撃弾存在確率記憶手段に格納する敵機攻撃弾の初期存在確率計算ステップと、 The enemy aircraft attack bullet initial existence probability calculation means obtains the probability Pbj (0, s) that the enemy aircraft attack bullet at time t = 0 exists in each cell s, and the enemy aircraft attack bullet existence probability storage means. The initial existence probability calculation step of enemy aircraft attack bullets stored in
自機の初期存在確率計算手段が、時刻t=0における自機が、格子に分割されたゲーム画面において、その格子を構成する各升目sに存在している確率Ps(0,s)を求め、第一存在確率記憶手段に格納する自機の初期存在確率計算ステップと、 The initial existence probability calculation means of the own device obtains a probability Ps (0, s) that the own device at time t = 0 exists in each cell s constituting the lattice in the game screen divided into the lattice. , The initial existence probability calculation step of the own device stored in the first existence probability storage means,
敵機存在確率計算手段が、時刻t=τにおいて敵機が升目se’(i)に存在する確率Pei(τ,se’ (i))と、時刻t=τと升目se’(i)と升目sの位置によっ The enemy aircraft existence probability calculating means calculates the probability Pei (τ, se ′ (i)) that the enemy aircraft exists in the cell se ′ (i) at the time t = τ, and the time t = τ and the cell se ′ (i). Depending on the position of the cell s
て移動速度を決定する移動速度決定関数に基づいて決定される移動速度aに従って敵機が行動単位時間Tだけ移動することによって升目se’ (i)から升目se(i)に移動The enemy aircraft moves from the cell se ′ (i) to the cell se (i) by moving the enemy aircraft for the action unit time T according to the moving speed a determined based on the moving speed determination function.
する確率と、時刻t=τにおいて自機が升目sに存在する確率との積を、すべての升目se’と升目sの組ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機が升目se(i)に存在する確率Pei(τ+T,se(i))を、すべてのτ=kT(kはn−1以下の自然数)について求めて、敵機存在確率記憶手段に格納する敵機存在確率計算ステップと、And the probability that the aircraft is present in the cell s at time t = τ is obtained for each set of all cells se ′ and cell s, and these obtained products are added to obtain a time t = The probability Pei (τ + T, se (i)) that an enemy aircraft exists in the cell se (i) at τ + T is obtained for all τ = kT (k is a natural number less than n−1), and the enemy aircraft existence probability storage means The enemy aircraft existence probability calculation step stored in
敵機攻撃弾存在確率計算手段が、時刻t=τにおいて敵機の攻撃弾が升目s’に存在する確率Pbj(τ,s’)と、敵機の攻撃弾が移動速度Vbjに従って行動単位時間Tだけ移動することによって升目s’から升目sに移動する確率との積を、すべての升目s’ごとに求め、これら求まった積を加算することによって、時刻t=τ+Tにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ+T,s)を、すべての升目sとτ=kT(kはn−1以下の自然数)の組について求めて、敵機攻撃弾存在確率記憶手段に格納する敵機攻撃弾存在確率計算ステップと、 The enemy aircraft attack bullet presence probability calculating means determines the probability Pbj (τ, s ′) that the enemy's attack bullet is present in the cell s ′ at time t = τ and the enemy unit's attack bullet according to the movement speed Vbj. The product of the probability of moving from the cell s ′ to the cell s by moving by T is obtained for every cell s ′, and by adding these obtained products, the attack bullet of the enemy aircraft at time t = τ + T The probability Pbj (τ + T, s) existing in the cell s is obtained for all pairs of cells s and τ = kT (k is a natural number equal to or less than n−1) and stored in the enemy aircraft attack bullet existence probability storage means. Enemy aircraft attack bullet existence probability calculation step,
最大値抽出手段が、すべてのτ+Tと升目sの組ごとに、上記敵機存在確率記憶手段から読み出した時刻t=τ+Tにおいて敵機が升目sに存在する確率Pei(τ+T,s)と、上記敵機攻撃弾存在確率記憶手段から読み出した時刻t=τ+Tにおいて敵機の攻撃弾が升目sに存在する確率Pbj(τ+T,s)との大小関係を比較し、最も大きい確率を出力する最大値抽出ステップと、 The maximum value extraction means, for every set of τ + T and cell s, the probability Pei (τ + T, s) that the enemy aircraft exists in cell s at time t = τ + T read from the enemy aircraft existence probability storage means, and the above The maximum value that outputs the highest probability by comparing the magnitude relationship with the probability Pbj (τ + T, s) that the enemy bullet is present in the cell s at the time t = τ + T read from the enemy aircraft bullet presence probability storage means An extraction step;
第一自機存在確率計算手段が、時刻t=τにおいて自機が升目s’に存在する確率Ps(τ,s’)と、自機が移動速度wを選択する確率と、自機が移動速度wに従って行動単位時間Tだけ移動することによって升目s’から升目sに移動する確率Ptr(s’,s,w)との積を、すべての升目s’と自機の移動速度wの組ごとに求め、これら求まった積を加算した値に、上記最大値抽出手段がτ+Tと升目sの組について出力した確率を1から引いた値を乗算することによって、時刻t=τ+Tにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで升目sに存在する確率Ps(τ+T,s)を、すべての升目sとτ=kT(kはn−1以下の自然数)の組について求めて、第一自機存在確率記憶手段に格納する第一自機存在確率計算ステップと、 The first own device existence probability calculation means determines that the own device exists in the cell s ′ at time t = τ, the probability Ps (τ, s ′), the probability that the own device selects the moving speed w, and the own device moves. The product of the probability Ptr (s ′, s, w) of moving from the cell s ′ to the cell s by moving by the action unit time T according to the speed w is a set of all the cells s ′ and the movement speed w of the own aircraft. By multiplying the value obtained by adding each of the obtained products and the value obtained by subtracting from 1 the probability that the maximum value extraction means has output for the set of τ + T and the grid s, the own device at time t = τ + T The probability Ps (τ + T, s) existing in the cell s without being destroyed by the enemy aircraft and the enemy's attacking bullet is determined for all the cells s and τ = kT (k is a natural number less than n−1). First own machine existence probability calculation stored in the first own machine existence probability storage means And the step,
から構成され、 Consisting of
上記第二自機存在確率計算ステップは、 The second aircraft existence probability calculation step
第二自機存在確率計算手段が、時刻t=nTにおいて自機が上記目標位置に到達するとした場合に時刻t=τ+Tにおいて自機が升目s’に存在する確率Psr(τ+T,s’)と、自機が移動速度wを選択する確率と、自機が移動速度wに従って行動単位時間Tだけ移動することによって升目sから升目s’に移動する確率Ptr(s,s’,w)との積を、すべての升目s’と自機の移動速度wの組ごとに求め、これら求まった積を加算した値に、上記最大値抽出手段がTと升目sの組について求めた確率を1から引いた値を乗算することによって、時刻t=nTにおいて自機が上記目標位置に到達するとした場合に時刻t=τにおいて自機が敵機及び敵機の攻撃弾によって破壊されないで升目sに存在する確率Psr(t,s)を、すべての升目sとτ=mT(mはn−1以下の自然数)の組について求めて、第二自機存在確率記憶手段に格納する第二自機存在確率計算ステップ、 When the second own machine existence probability calculating means assumes that the own machine reaches the target position at time t = nT, the probability Psr (τ + T, s ′) that the own machine exists in the cell s ′ at time t = τ + T The probability that the own device selects the moving speed w and the probability Ptr (s, s ′, w) that the own device moves from the cell s to the cell s ′ by moving for the action unit time T according to the moving speed w. The product is obtained for each set of all the cells s ′ and the moving speed w of the own machine, and the probability obtained by the maximum value extraction means for the set of T and the cell s from the value obtained by adding these obtained products from 1 By multiplying the subtracted value, if the aircraft arrives at the target position at time t = nT, the aircraft will not be destroyed by the enemy aircraft and the enemy's attack bullet at time t = τ. Probability Psr (t, s) (The m n-1 following a natural number) of the square s and tau = mT asking for the set of the second ship existence probability calculating step of storing the second ship existence probability memory means,
であることを特徴とするシューティングゲーム処理プログラム。 A shooting game processing program characterized by
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006202527A JP4804253B2 (en) | 2006-07-25 | 2006-07-25 | Self-operation control method, apparatus, program, and recording medium for shooting game |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006202527A JP4804253B2 (en) | 2006-07-25 | 2006-07-25 | Self-operation control method, apparatus, program, and recording medium for shooting game |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008023268A JP2008023268A (en) | 2008-02-07 |
| JP4804253B2 true JP4804253B2 (en) | 2011-11-02 |
Family
ID=39114504
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006202527A Expired - Fee Related JP4804253B2 (en) | 2006-07-25 | 2006-07-25 | Self-operation control method, apparatus, program, and recording medium for shooting game |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4804253B2 (en) |
-
2006
- 2006-07-25 JP JP2006202527A patent/JP4804253B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008023268A (en) | 2008-02-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7476235B2 (en) | Method, apparatus, and computer program for controlling virtual objects | |
| US20230330530A1 (en) | Prop control method and apparatus in virtual scene, device, and storage medium | |
| Uriarte et al. | Game-tree search over high-level game states in RTS games | |
| JP7170397B2 (en) | Program, image processing method, and image processing apparatus | |
| US11628370B2 (en) | Combat game providing device and method | |
| Świechowski et al. | Combining utility ai and mcts towards creating intelligent agents in video games, with the use case of tactical troops: Anthracite shift | |
| Moy et al. | The application of AlphaZero to wargaming | |
| JP2023548802A (en) | Stage screen display method, device, and equipment | |
| US20180126274A1 (en) | Battle-attribute-based arrangement of map areas | |
| JP4804253B2 (en) | Self-operation control method, apparatus, program, and recording medium for shooting game | |
| CN112933600B (en) | Virtual object control method, device, computer equipment and storage medium | |
| CN114307129B (en) | Game interaction control methods, devices, equipment and media | |
| JP4996267B2 (en) | Enemy aircraft action control method, apparatus, program, and recording medium thereof | |
| JP4996275B2 (en) | Difficulty determination method, device, program | |
| JP4804226B2 (en) | Shooting game processing method, apparatus thereof, program thereof, and recording medium thereof | |
| CN115944924A (en) | Model training method, action strategy formulation method, server and storage medium | |
| CN114733194A (en) | Game resource preloading method and device | |
| JP4804230B2 (en) | Shooting game processing method, apparatus thereof, program thereof, and recording medium thereof | |
| JP4976754B2 (en) | Shooting game processing method, apparatus thereof, program thereof, and recording medium thereof | |
| EP4091078A1 (en) | Cluster update accelerator circuit | |
| Bernstein et al. | Evaluating the Effectiveness of Multi-Agent Organisational Paradigms in a Real-Time Strategy Environment: Engineering Multiagent Systems Track | |
| CN115671733B (en) | Methods, devices, storage media and electronic devices for predicting the behavior of virtual objects | |
| CN120571233A (en) | Virtual object display method, device, equipment, medium and program product | |
| JP4804240B2 (en) | Enemy aircraft attack control method of shooting game, apparatus thereof, program thereof, and recording medium thereof | |
| JP5301391B2 (en) | GAME DEVICE, IMAGE GENERATION METHOD, AND PROGRAM |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080804 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110506 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110629 |
|
| 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: 20110802 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110809 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4804253 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140819 Year of fee payment: 3 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |