JP2011206445A - Program, information storage medium, route creating device, and arrangement board creating device - Google Patents

Program, information storage medium, route creating device, and arrangement board creating device Download PDF

Info

Publication number
JP2011206445A
JP2011206445A JP2010079544A JP2010079544A JP2011206445A JP 2011206445 A JP2011206445 A JP 2011206445A JP 2010079544 A JP2010079544 A JP 2010079544A JP 2010079544 A JP2010079544 A JP 2010079544A JP 2011206445 A JP2011206445 A JP 2011206445A
Authority
JP
Japan
Prior art keywords
route
mass
cell
candidate
array board
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.)
Pending
Application number
JP2010079544A
Other languages
Japanese (ja)
Inventor
Hiroyuki Hiraishi
博之 平石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bandai Namco Entertainment Inc
Original Assignee
Namco Bandai Games Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Namco Bandai Games Inc filed Critical Namco Bandai Games Inc
Priority to JP2010079544A priority Critical patent/JP2011206445A/en
Publication of JP2011206445A publication Critical patent/JP2011206445A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a novel puzzle game using letters.SOLUTION: The route of arrangement of letters in a string of letters presented as a question on a letter board 30 used in the letter puzzle game to make a letter string having a meaning by connecting the letters in a way of drawing one continuous line is created first by determining a starting square and after that, adding squares one by one to extend the route from the starting square. At the time, a candidate square for the next route is selected from unfixed squares adjacent to the head square of the fixed route. Then, when the route is temporarily extended to the selected candidate square, whether the route shall be completed or not is determined based on whether a dead-end square is made and whether an unfixed square is connected. When it is determined that completion is possible, the candidate square is fixed as a new route and the route is extended by one square.

Description

本発明は、コンピュータに、縦横方向に連接配置されたマスの配列盤に対して正答順路となる文字等の割り当て順路を作成させるためのプログラム等に関する。   The present invention relates to a program or the like for causing a computer to create a route for assigning characters or the like as a correct answer route for a square array panel arranged in a vertical and horizontal direction.

文字を用いたパズルゲームの一種として、与えられた単語を定められた空白領域に埋めてゆくクロスワードパズルがよく知られている。また、意味のある単語ができるよう、定められた空白領域に1文字ずつ自由に文字を埋めてゆくゲームも知られている(例えば、特許文献1参照)。   As a kind of puzzle game using characters, a crossword puzzle in which a given word is filled in a predetermined blank area is well known. A game is also known in which characters are freely filled one by one in a predetermined blank area so that meaningful words can be formed (see, for example, Patent Document 1).

特開2002−253840号公報JP 2002-253840 A

文字を用いたパズルゲームは、シューティングゲームや格闘アクションゲームのようには反射神経を必要としないため、老若男女を問わず、幅広い層が楽しめるゲームの1つである。しかしながら、ゲームに飽きが来ることが否めず、常に新しいゲームが要求される。本発明は、新たなアプローチで文字を用いたパズルゲームを実現することを目的としている。   A puzzle game using characters does not require reflexes like a shooting game or a fighting action game, and is one of the games that can be enjoyed by a wide range of people regardless of gender. However, it is undeniable that the game gets bored, and a new game is always required. An object of the present invention is to realize a puzzle game using characters by a new approach.

上記課題を解決するための第1の形態は、
文字、数字、記号又はこれらの組合せ(以下「文字等」という。)の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置された文字等マス(以下「マス」という。)を1度だけ通過する順路をプレーヤに見出させるゲームに用いるために、前記文字等が割り当てられていないマスの配列盤(例えば、図5の文字盤30)に対して、正答順路となる前記文字等の割り当て順路を作成させるようコンピュータに演算処理させるためのプログラム(例えば、図20の順路生成プログラム312)であって、
前記配列盤のうち、前記順路の始点マスを選択し、確定マスとする始点マス選択手段(例えば、図20の順路生成部212;図24のステップC9,C13)、
最新の確定マスに隣接する未確定マスの中から候補マスを選択する候補マス選択手段(例えば、図20の順路生成部212;図24のステップC19)、
前記候補マスに仮順路を伸延した場合の順路完成の可否を判定する可否判定手段(例えば、図20の順路生成部212;図24のステップC21)、
前記可否判定手段により可と判定された場合に前記候補マスを最新の確定マスとして仮順路を1マス分延伸する延伸手段(例えば、図20の順路生成部212;図24のステップC25)、
として前記コンピュータを機能させるとともに、前記候補マス選択手段、前記可否判定手段、及び前記延伸手段を繰り返し機能させて前記配列盤の全てのマスが確定マスとなった場合の前記仮順路を前記正答順路とさせるためのプログラムである。
The first form for solving the above problem is
Characters such as letters, numbers, symbols, or combinations thereof (hereinafter referred to as “characters”) are assigned letters, etc., and are connected in the vertical and horizontal directions (hereinafter referred to as “mass”). .)) For a game in which the player finds a route that passes only once, the correct answer route is determined with respect to an array board (for example, the dial 30 in FIG. 5) to which the character or the like is not assigned. A program for causing a computer to perform an arithmetic process so as to create an assignment route for the character or the like (for example, a route generation program 312 in FIG. 20),
From the array board, a start point cell selection means (for example, the route generation unit 212 of FIG. 20; steps C9 and C13 of FIG. 24) that selects the start point cell of the route and sets it as a definite cell,
Candidate cell selection means for selecting candidate cells from the undefined cells adjacent to the latest confirmed cell (for example, the route generation unit 212 in FIG. 20; step C19 in FIG. 24),
Availability determination means for determining whether or not a route is completed when a temporary route is extended to the candidate cell (for example, route generator 212 in FIG. 20; step C21 in FIG. 24);
Extending means for extending the temporary route by one cell when the candidate cell is determined to be acceptable by the candidate cell as the latest determined cell (for example, the route generator 212 in FIG. 20; step C25 in FIG. 24),
And the function of the computer as well as the candidate mass selection means, the availability determination means, and the extension means are repeatedly functioned, and the temporary route in the case where all the squares of the array board become a definite mass, the correct answer route It is a program to make it.

また、他の形態として、
文字等の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるために、前記文字等が割り当てられていないマスの配列盤に対して、正答順路となる前記文字等の割り当て順路を作成する順路作成装置(例えば、図20の携帯型ゲーム装置1000)であって、
前記配列盤のうち、前記順路の始点マスを選択し、確定マスとする始点マス選択手段と、
最新の確定マスに隣接する未確定マスの中から候補マスを選択する候補マス選択手段と、
前記候補マスに仮順路を伸延した場合の順路完成の可否を判定する可否判定手段と、
前記可否判定手段により可と判定された場合に前記候補マスを最新の確定マスとして仮順路を1マス分延伸する延伸手段と、
を備え、前記候補マス選択手段、前記可否判定手段、及び前記延伸手段を繰り返し機能させて前記配列盤の全てのマスが確定マスとなった場合の前記仮順路を前記正答順路とする順路作成装置を構成することとしても良い。
As another form,
The character or the like is assigned for use in a game that allows the player to find a route that passes once through the squares that are assigned and connected in the vertical and horizontal directions so that a meaningful sequence of characters or the like is obtained. A route creation device (for example, the portable game device 1000 in FIG. 20) that creates an assignment route of the characters and the like that are the correct answer route with respect to an unordered square array board,
From the array board, selecting a starting point mass of the route, a starting point mass selecting means as a fixed mass,
Candidate mass selection means for selecting candidate masses from uncertain masses adjacent to the latest confirmed mass;
Availability determination means for determining whether or not a route is completed when a temporary route is extended to the candidate mass;
An extension means for extending the temporary route by 1 square with the candidate mass as the latest confirmed mass when it is determined as acceptable by the availability determination means;
And a route creation device in which the candidate route selection unit, the availability determination unit, and the extension unit are repeatedly functioned so that the temporary route when the all squares of the array board are determined squares is the correct route. It is good also as comprising.

この第1の形態等によれば、文字等の意味のある並びとなるように縦横方向に連接配置されたマスを1度だけ通過する順序をプレーヤに見出させるゲームに用いるための、文字等が割り当てられていないマスの配列盤に対して正答順路となる文字等の割り当て順路を作成することができる。また、割り当て順路の生成は、始点マスを選択して確定マスとし、最新の確定マスに隣接する未確定マスの中から候補マスを選択し、この候補マスに仮順路を伸延した場合の順路完成の可否を判定し、順路完成が可と判定した場合に、候補マスを最新の確定マスとして仮順路を1マス分延伸するといった処理を繰り返し、配列盤の全てのマスが確定マスとなった場合に、仮順路を正答順路とすることで実現される。   According to the first embodiment, characters and the like for use in a game that allows the player to find the order of passing the cells arranged in the vertical and horizontal directions so as to form a meaningful arrangement of the characters only once. It is possible to create a route for assigning characters and the like that will be the correct route for a square array board to which no is assigned. In addition, the allocation route is generated by selecting the starting point cell as a confirmed cell, selecting a candidate cell from among the unestablished cells adjacent to the latest confirmed cell, and completing the route when the temporary route is extended to this candidate cell. If it is determined whether or not the route is complete and the completion of the route is determined to be possible, the process repeats the process of extending the temporary route by one cell with the candidate cell as the latest determined cell, and all cells on the array board become the fixed cell In addition, it is realized by setting the provisional route as the correct answer route.

第2の形態として、第1の形態のプログラムであって、
前記配列盤の各マスを配置位置に応じて市松模様状に互い違いにマスを選択することで2つのグループにグループ分けするグループ分け手段(例えば、図20の順路生成部212;図23のステップB9)として前記コンピュータを機能させ、
前記選択手段が、前記2つのグループそれぞれの所属マス数が異なる場合、多い方のグループに所属するマスの中から始点マスを選択する(例えば、図24のステップC13)ように前記コンピュータを機能させる、
ためのプログラムを構成することとしても良い。
As a second form, a program of the first form,
Grouping means for grouping each square of the array board into two groups by alternately selecting squares in a checkered pattern according to the arrangement position (for example, the route generation unit 212 in FIG. 20; step B9 in FIG. 23) ) To function the computer,
If the number of cells belonging to the two groups is different, the selection unit causes the computer to function so as to select a starting point cell from among cells belonging to the larger group (for example, step C13 in FIG. 24). ,
It is also possible to configure a program for this purpose.

この第2の形態によれば、配列盤の各マスを配置位置に応じて市松模様状に互い違いに選択することでグループ分けされた2つのグループそれぞれの所属マス数が異なる場合、多い方のグループに所属するマスの中から、始点マスが選択される。各マスを市松模様状に互い違いに選択することでグループ分けしていることから、正答順路は、2つのグループそれぞれの所属マスを交互に選択することになる。このため、正答順路の始点マス及び終点マスは、所属マス数が多い方のグループに所属するマスとなる。   According to this second mode, when the two groups divided by selecting each square of the array board in a checkered pattern according to the arrangement position are different from each other, the larger group The starting point cell is selected from the cells belonging to. Since the cells are grouped by alternately selecting the cells in a checkered pattern, the correct answer route is to select the cells belonging to each of the two groups alternately. For this reason, the start point cell and the end point cell of the correct answer route are cells belonging to the group having the larger number of cells.

第3の形態として、第1又は第2の形態のプログラムであって、
前記可否判定手段が、
前記候補マスに仮順路を伸延することで所定の袋小路条件を満たすこととなる未確定マスを検出する袋小路検出手段(例えば、図20の順路生成部212;図25のステップD15)と、
前記袋小路検出手段の検出結果を用いて前記順路完成の可否を判定する袋小路判定手段(例えば、図20の順路生成部212;図25のステップD17〜D25)と、
を有するように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
As a third form, a program according to the first or second form,
The availability determination means is
A dead path detection means (for example, a forward path generation unit 212 in FIG. 20; step D15 in FIG. 25) for detecting an indeterminate mass that satisfies a predetermined dead path condition by extending a temporary path to the candidate mass;
Using a detection result of the narrow path detecting means, a narrow path determining means (for example, the normal path generating unit 212 in FIG. 20; steps D17 to D25 in FIG. 25) for determining whether or not the normal path is completed;
It is good also as comprising the program for functioning the said computer so that it may have.

この第3の形態によれば、候補マスに仮順路を伸延することで所定の袋小路条件を満たすこととなる未確定マスを検出することで、順路完成の可否が判定される。   According to the third embodiment, whether or not a route is completed is determined by detecting an undefined cell that satisfies a predetermined bag path condition by extending a provisional route to a candidate cell.

具体的には、第4の形態のように、
前記袋小路判定手段が、前記袋小路検出手段の検出結果を含めて前記袋小路条件を満たす未確定マスが2以上存在することとなる場合に、前記順路完成を不可と判定する手段(例えば、図20の順路生成部212;図25のステップD19:YES〜D23)を有する、
ように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
Specifically, as in the fourth form,
Means for determining that the forward path completion is not possible when there are two or more uncertain masses that satisfy the condition of the path including the detection result of the path narrowing detection means (for example, FIG. 20). The route generation unit 212; step D19 of FIG. 25: YES to D23),
Thus, a program for causing the computer to function may be configured.

この第4の形態によれば、袋小路条件を満たすとして検出された未確定マスを含めて、袋小路条件を満たす未確定マスが2以上存在することとなる場合に、順路完成が不可と判定される。これは、袋小路条件を満たす未確定マスは、終点マスにしかなり得ないためである。   According to the fourth embodiment, when there are two or more undetermined masses that satisfy the culled path condition including the undetermined masses that are detected as satisfying the culled path condition, it is determined that the forward path is not completed. . This is because an uncertain cell that satisfies the dead-line condition cannot be obtained as an end point cell.

第5の形態として、第3又は第4の形態のプログラムであって、
前記配列盤の各マスを配置位置に応じて市松模様状に互い違いにマスを選択することで2つのグループにグループ分けするグループ分け手段(例えば、図20の順路生成部212;図23のステップB9)として前記コンピュータを機能させ、
前記袋小路判定手段が、前記袋小路検出手段により検出された未確定マスが、前記始点マスと同じグループに属するか否かに応じて前記順路完成の可否を判定する手段(例えば、図20の順路生成部212;図25のステップD21)を有する、
ように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
A fifth form is a program of the third or fourth form,
Grouping means for grouping each square of the array board into two groups by alternately selecting squares in a checkered pattern according to the arrangement position (for example, the route generation unit 212 in FIG. 20; step B9 in FIG. 23) ) To function the computer,
Means for determining whether or not the route is completed depending on whether or not the uncertain cell detected by the bag route detecting means belongs to the same group as the starting point cell (for example, the route generation in FIG. 20) Part 212; step D21) of FIG.
Thus, a program for causing the computer to function may be configured.

この第5の形態によれば、袋小路条件を満たすとして検出された未確定マスが始点マスと同じグループに属するか否かに応じて、順路完成の可否が判定される。各マスを市松模様状に互い違いに選択することでグループ分けしていることから、正答順路は、2つのグループそれぞれの所属マスを交互に選択することになる。つまり、2つの各グループの所属マス数が同じ場合には、始点マスと終点マスとは所属するグループが異なり、一方、2つの各グループの所属マス数が異なる場合には、マス数が多い方のグループに所属するマスが始点マス及び終点マスとなる。このように、始点マスが所属するグループによって終点マスが所属するグループが決まるため、袋小路条件を満たす未確定マスの所属するグループが、終点マスとして所属すべきグループか否かによって、順路完成の可能/不可能を判定することができる。   According to the fifth embodiment, whether or not the forward route is completed is determined according to whether or not the undefined cell detected as satisfying the dead-line condition belongs to the same group as the starting point cell. Since the cells are grouped by alternately selecting the cells in a checkered pattern, the correct answer route is to select the cells belonging to each of the two groups alternately. In other words, if two groups belong to the same number of cells, the start and end cells belong to different groups. On the other hand, if two groups belong to a different number, the larger number of cells. The cells belonging to this group become the start point cell and the end point cell. In this way, since the group to which the end point cell belongs is determined by the group to which the start point cell belongs, the route can be completed depending on whether or not the group to which the indeterminate cell condition that satisfies the dead-end condition belongs is the group that should belong to the end point cell. / Impossibility can be determined.

第6の形態として、第1〜第5の何れかの形態のプログラムであって、
前記可否判定手段が、前記候補マスに仮順路を伸延することで、未確定マス全てが所定の連接条件を満たさなくなる場合に、前記順路完成を不可と判定する連接性判定手段(例えば、図20の順路生成部212;図25のステップD5〜D11)を有する、
ように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
As a sixth form, the program according to any one of the first to fifth forms,
The connectivity determination means (for example, FIG. 20) determines that the route completion is impossible when the undecided mass does not satisfy a predetermined connection condition by extending the provisional route to the candidate mass. A normal path generation unit 212; steps D5 to D11) of FIG.
Thus, a program for causing the computer to function may be configured.

この第6の形態によれば、候補マスに仮順路を伸延することで、未確定マス全てが所定の連接条件を満たさなくなる場合に、順路完成が不可と判定される。   According to the sixth aspect, when the tentative route is extended to the candidate mass, and all the unconfirmed masses do not satisfy the predetermined connection condition, it is determined that the route cannot be completed.

具体的には、第7の形態のように、
前記連接性判定手段が、
前記配列盤の周囲に仮想マス(例えば、図13の判定用マス50)を配置する仮想マス配置手段(例えば、図20の順路生成部212;図24のステップC1〜C3)と、
最新の確定マスが前記仮想マスの何れかと隣接した場合に全ての仮想マスを仮想確定マスとする仮想マス確定手段(例えば、図20の順路生成部212;図25のステップD1〜D3)と、
を有し、前記候補マスの周囲8マスに含まれる未確定マス及び仮想未確定マスが前記連接条件を満たさなくなる場合に前記順路完成を不可と判定する、
ように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
Specifically, as in the seventh embodiment,
The connectivity determination means includes
Virtual mass placement means (for example, route generator 212 in FIG. 20; steps C1 to C3 in FIG. 24) for placing a virtual mass (for example, the judgment mass 50 in FIG. 13) around the array board;
Virtual mass confirmation means (for example, the route generation unit 212 in FIG. 20; steps D1 to D3 in FIG. 25) that sets all virtual masses as virtual confirmed masses when the latest confirmed mass is adjacent to any of the virtual cells;
Determining that the route completion is impossible when the uncertain mass and the virtual uncertain mass included in the eight cells around the candidate mass do not satisfy the connection condition.
Thus, a program for causing the computer to function may be configured.

この第7の形態によれば、配列盤の周囲に仮想マスが配置され、最新の確定マスが仮想マスの何れかと隣接した場合に、全ての仮想マスが仮想確定マスとされる。そして、候補マスの周囲8マスに含まれる未確定マス及び仮想未確定マスが連接条件を満たさなくなる場合に、順路完成が不可と判定される。   According to the seventh embodiment, when a virtual cell is arranged around the array board and the latest determined cell is adjacent to any one of the virtual cells, all virtual cells are set as virtual determined cells. Then, when the unconfirmed cell and the virtual unconfirmed cell included in the eight cells around the candidate cell do not satisfy the connection condition, it is determined that the route is not completed.

第8の形態として、第1〜第7の何れかの形態のプログラムであって、
前記候補マス選択手段が、最新の確定マスに隣接する未確定マスのうち、最新の確定マスと、その1つ前に確定した確定マスとを結ぶ直線方向に無い未確定マスを優先的に候補マスとして選択するように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
As an eighth form, the program according to any one of the first to seventh forms,
The candidate mass selection means preferentially selects an unconfirmed mass that is not in a straight line direction connecting the latest confirmed mass and the confirmed mass determined immediately before the unconfirmed mass adjacent to the latest confirmed mass. A program for causing the computer to function as a cell may be configured.

この第8の形態によれば、最新の確定マスに隣接する未確定マスのうち、最新の確定マスとその1つ前に確定した確定マスとを結ぶ直線方向にない未確定マスが、優先的に候補マスとして選択される。これにより、作成される順路の屈曲部が多くなって意味のある文字等の並びを見つけ出し難くなり、ゲームの難易度が高くなる。   According to the eighth embodiment, of the unconfirmed cells adjacent to the latest confirmed cell, the unconfirmed cell that is not in the straight line direction connecting the latest confirmed cell and the one confirmed immediately before it is preferential. Selected as a candidate cell. As a result, the number of bent portions in the route to be created increases, making it difficult to find meaningful characters and the like, increasing the difficulty of the game.

第9の形態として、第1〜第7の何れかの形態のプログラムであって、
前記候補マス選択手段が、最新の確定マスに隣接する未確定マスのうち、最新の確定マスと、その1つ前に確定した確定マスとを結ぶ直線方向に有る未確定マス、及び、直線方向に無い未確定マスの何れを優先的に候補マスとして選択するかを、所与の難易度に応じて可変する手段(例えば、図20の順路生成部212)を有するように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
A ninth form is a program according to any one of the first to seventh forms,
The candidate mass selection means has an unconfirmed mass in a straight direction connecting the latest confirmed mass and the confirmed mass confirmed immediately before the unconfirmed mass adjacent to the latest confirmed mass, and the linear direction The computer is made to function so as to have means (for example, the route generation unit 212 in FIG. 20) that changes which of the unconfirmed cells that are not in the list is preferentially selected as a candidate cell in accordance with a given difficulty level. It is also possible to configure a program for this purpose.

この第9の形態によれば、最新の確定マスに隣接する未確定マスのうち、最新の確定マスとその1つ前に確定した確定マスとを結ぶ直線方向に有る未確定マスを優先的に候補マスとして選択すると、作成される順路の屈曲部が少なくなって意味のある文字等の並びを見つけ出し易くなり、ゲームの難易度が低くなる。逆に、直線方向に無いマスを優先的に候補マスとして選択すると、作成される順路の屈曲部が多くなって意味のある文字等の並びを見つけ出し難くなり、ゲームの難易度が高くなる。このように、望まれる難易度に応じた順路を作成することが可能となる。   According to the ninth embodiment, among the unconfirmed cells adjacent to the latest confirmed cell, the unconfirmed cell in the straight line direction connecting the latest confirmed cell and the one confirmed immediately before it is given priority. If it is selected as a candidate cell, the number of bent portions in the route to be created is reduced, and it becomes easier to find a line of meaningful characters and the like, and the difficulty of the game is reduced. On the other hand, if a square that is not in the straight line direction is preferentially selected as a candidate square, it becomes difficult to find a line of meaningful characters and the like because the number of bent portions in the created route increases and the difficulty of the game increases. In this way, it is possible to create a route according to a desired difficulty level.

第10の形態として、第1〜第7の何れかの形態のプログラムであって、
前記候補マス選択手段が、最新の確定マスに隣接する未確定マスのうち、最新の確定マスの右又は下に位置する未確定マス、及び、左又は上に位置する未確定マスの何れを優先的に候補マスとして選択するかを、所与の難易度に応じて可変する手段を有するように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
As a tenth form, the program according to any one of the first to seventh forms,
The candidate mass selection means gives priority to the unconfirmed mass located to the right or below the latest confirmed mass and the unconfirmed mass located to the left or above among the unconfirmed masses adjacent to the latest confirmed mass. It is also possible to configure a program for causing the computer to function so as to have means for changing whether to select a candidate cell according to a given difficulty level.

この第10の形態によれば、最新の確定マスに隣接する未確定マスのうち、最新の確定マスの右又は下に位置する未確定マスを優先的に候補マスとして選択すると、作成される順路が、大まかには右方向或いは下方向に進む順路となる。つまり、日本語の横書き或いは縦書きに準じた方向となって文字等の並びを見つけ出し易くなり、ゲームの難易度が低くなる。逆に、最新の確定マスの左又は上に位置する未確定マスを優先的に候補マスとして選択すると、作成される順路の大まかな方向が、日本語の横書き或いは縦書きとは逆の方向となって文字等の並びを見つけ出し難くなり、ゲームの難易度が高くなる。このように、望まれる難易度に応じた順路を作成することが可能となる。   According to the tenth embodiment, when an unconfirmed cell located to the right or below the latest confirmed cell is preferentially selected as a candidate cell among unconfirmed cells adjacent to the latest confirmed cell, the route created However, it is a normal route that goes to the right or down. In other words, it becomes easier to find a line of characters or the like in a direction according to Japanese horizontal writing or vertical writing, and the difficulty of the game is reduced. On the other hand, if the unconfirmed cell located on the left or top of the latest confirmed cell is selected as a candidate cell, the rough direction of the route to be created is the opposite of the horizontal or vertical writing in Japanese. It becomes difficult to find out the line of characters and the like, and the difficulty of the game becomes high. In this way, it is possible to create a route according to a desired difficulty level.

第11の形態として、
文字等の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるための前記マスの出題用の配列盤を作成させるようコンピュータに演算処理させるためのプログラムであって、
始点マス及び終点マスが周囲何れかのマスとされて割り当て順路が予め定められたN個(Nは2以上)の基礎配列盤を、i番目(i=1〜(N−1))の基礎配列盤の終点マスとi+1番目の基礎配列盤の始点マスとが隣接するように配置構成することで1番目の基礎配列盤の始点マスからN番目の基礎配列盤の終点マスまでを正答順とする前記出題用の配列盤を作成させる配置構成手段として前記コンピュータを機能させるためのプログラムを構成することとしても良い。
As an eleventh form,
For use in a game in which the player finds a route that passes through a cell that has been assigned a character or the like and is connected in the vertical and horizontal directions only once so as to form a meaningful sequence of characters. A program for causing a computer to perform calculation processing to create an array board,
N (N is 2 or more) basic array boards whose allocation route is determined in advance with the start point cell and the end point cell being one of the surrounding cells, the i-th (i = 1 to (N−1)) basis By arranging the end point cell of the array board and the start point cell of the (i + 1) th basic array board adjacent to each other, the order from the start point mass of the first basic array board to the end point mass of the Nth basic array board is in the correct answer order. A program for causing the computer to function as the arrangement configuration means for creating the layout board for the questions may be configured.

また、他の形態として、
文字等の意味のある並びとなるように、縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるための前記マスの出題用の配列盤を作成する配列盤作成装置であって、
始点マス及び終点マスが周囲何れかのマスとされて割り当て順路が予め定められたN個(Nは2以上)の基礎配列盤を、i番目(i=1〜(N−1))の基礎配列盤の終点マスとi+1番目の基礎配列盤の始点マスとが隣接するように配置構成することで1番目の基礎配列盤の始点マスからN番目の基礎配列盤の終点マスまでを正答順とする前記出題用の配列盤を作成する配列盤作成装置を構成することとしても良い。
As another form,
An array for creating an array board for questions of the squares to be used in a game that allows a player to find a route that passes through the squares connected in the vertical and horizontal directions only once so that a meaningful sequence of characters or the like is obtained. A board creation device,
N (N is 2 or more) basic array boards whose allocation route is determined in advance with the start point cell and the end point cell being one of the surrounding cells, the i-th (i = 1 to (N−1)) basis By arranging the end point cell of the array board and the start point cell of the (i + 1) th basic array board adjacent to each other, the order from the start point mass of the first basic array board to the end point mass of the Nth basic array board is in the correct answer order. It is also possible to constitute an array board creation device that creates the array board for the questions to be asked.

この第11の形態等によれば、文字等の意味のある並びとなるように縦横方向に連接配置されたマスを1度だけ通過する順序をプレーヤに見出させるゲームに用いるための、マスの出題用の配列盤を作成することができる。   According to the eleventh form, etc., the squares for use in a game that allows the player to find the order of passing the squares connected in the vertical and horizontal directions so as to form a meaningful sequence of characters etc. only once. You can create a layout board for questions.

第12の形態として、
文字等の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるために、前記マスの配置位置が決定され前記文字等が割り当てられていない前記マスの配列盤の作成及び当該配列盤に対する正答順路となる前記文字等の割り当て順路の作成をコンピュータに演算処理させるためのプログラムであって、
前記マスを配列することにより前記配列盤の候補となる配列盤候補を作成する配列盤候補作成手段、
前記配列盤候補の各マスを配置位置に応じて市松模様状に互い違いにマスを選択することで2つのグループにグループ分けした場合に、当該2つのグループそれぞれの所属マス数が2以上異なるか否かで前記配列盤候補の良否を判定する配列盤候補良否判定手段、
前記配列盤候補良否判定手段により良と判定されるまで前記配列盤候補作成手段に繰り返し再作成させる再作成制御手段、
として前記コンピュータを機能させるとともに、前記配列盤候補良否判定手段により良と判定された配列盤候補を配列盤として第1〜第10の何れかの形態のプログラムを実行させることで前記正答順路を作成させるように前記コンピュータを機能させるためのプログラムを構成することとしても良い。
As a twelfth form,
In order to use in a game that allows the player to find a route that passes only once through the squares that are allocated in the vertical and horizontal directions so as to form a meaningful sequence of letters, etc. Is a program for causing a computer to calculate the creation of an array board of the cells to which the character or the like is not assigned and the creation of the assignment route of the letters, etc., which is the correct answer route for the array board,
An array board candidate creating means for creating an array board candidate to be a candidate for the array board by arranging the cells;
Whether or not the number of assigned squares of each of the two groups differs by two or more when each square of the array board candidates is grouped into two groups by alternately selecting squares in a checkered pattern according to the arrangement position The sequence board candidate pass / fail judgment means for judging pass / fail of the sequence board candidate in
Re-creation control means for repeatedly re-creating the array board candidate creation means until it is determined to be good by the array board candidate quality determination means,
The correct answer route is created by causing the computer to function as and executing the program of any of the first to tenth forms using the array board candidate determined to be good by the array board candidate pass / fail determination means as the array board It is also possible to configure a program for causing the computer to function.

この第12の形態によれば、文字等の意味のある並びとなるように縦横方向に連接配置されたマスを1度だけ通過する順序をプレーヤに見出させるゲームに用いるための、マスの出題用の配列盤を作成することができるとともに、この配列盤に対して正答順路となる文字等の割り当て順路を作成することができる。   According to the twelfth aspect, the square questions for use in a game that allows the player to find out the order of passing the squares connected in the vertical and horizontal directions only once so as to form a meaningful arrangement of characters and the like. An array board for the user can be created, and an assignment path for characters or the like that will be the correct answer path can be created for the array board.

第13の形態として、第1〜第12の何れかの形態のプログラムを記憶したコンピュータ読み取り可能な情報記憶媒体(例えば、図20の記憶部300)を構成することとしても良い。   As a thirteenth mode, a computer-readable information storage medium (for example, the storage unit 300 in FIG. 20) that stores the program of any one of the first to twelfth modes may be configured.

ここでいう「情報記憶媒体」とは、例えば磁気ディスクや光学ディスク、ICメモリなどを含む。そして、この第13の形態によれば、情報記憶媒体に記憶されたプログラムをコンピュータに読み取らせて実行させることで、第1〜第12の何れかの発明と同様の作用効果を発揮させることができる。   The “information storage medium” here includes, for example, a magnetic disk, an optical disk, an IC memory, and the like. Then, according to the thirteenth aspect, by causing a computer to read a program stored in an information storage medium and executing the program, the same operational effects as any of the first to twelfth inventions can be exhibited. it can.

携帯型ゲーム装置の外観例。An external appearance example of a portable game device. ゲーム画面の一例。An example of a game screen. ゲーム画面の一例。An example of a game screen. ゲーム画面の一例。An example of a game screen. 文字盤の構成例。Example of dial configuration. 文字盤に対する順路生成の概要図。Schematic diagram of route generation for the dial. マスのパリティの説明図。Explanatory drawing of the parity of a cell. 始点マスの決定の説明図。Explanatory drawing of the determination of a starting point mass. 袋小路マスの説明図。Explanatory drawing of Fukurokoji trout. 袋小路マスに基づく順路完成可否の判定の説明図。Explanatory drawing of the determination of the normality completion of a normal route based on a dead-end street mass. 袋小路マスに基づく順路完成可否の判定の説明図。Explanatory drawing of the determination of the normality completion of a normal route based on a dead-end street mass. 未確定マスの連結/非連結の説明図。Explanatory drawing of the connection / disconnection of an indefinite mass. 未確定マスの連結/非連結に基づく順路完成可否の判定の説明図。Explanatory drawing of determination of the possibility of completion of a normal route based on connection / disconnection of an indeterminate mass. 未確定マスの連結/非連結に基づく順路完成可否の判定の説明図。Explanatory drawing of determination of the possibility of completion of a normal route based on the connection / disconnection of an indeterminate mass. 未確定マスの連結/非連結に基づく順路完成可否の判定の説明図。Explanatory drawing of determination of the possibility of completion of a normal route based on the connection / disconnection of an indeterminate mass. 未確定マスの連結/非連結に基づく順路完成可否の判定の説明図。Explanatory drawing of determination of the possibility of completion of a normal route based on the connection / disconnection of an indeterminate mass. 未確定マスの連結/非連結に基づく順路完成可否の判定の説明図。Explanatory drawing of determination of the possibility of completion of a normal route based on the connection / disconnection of an indeterminate mass. 未確定マスの連結/非連結に基づく順路完成可否の判定の説明図。Explanatory drawing of determination of the possibility of completion of a normal route based on the connection / disconnection of an indeterminate mass. 未確定マスの連結/非連結に基づく順路完成可否の判定の説明図。Explanatory drawing of determination of the possibility of completion of a normal route based on the connection / disconnection of an indeterminate mass. 携帯型ゲーム装置の機能構成図。The functional block diagram of a portable game device. 生成文字盤データのデータ構成例。Data structure example of generated dial data. ゲーム処理のフローチャート。The flowchart of a game process. ゲーム処理中に実行される文字盤生成処理のフローチャート。The flowchart of the dial face production | generation process performed during a game process. ゲーム処理中に実行される順路生成処理のフローチャート。The flowchart of the route generation process performed during a game process. 順路生成処理中に実行される順路完成可否判定処理のフローチャート。The flowchart of the route completion possibility determination process performed during a route generation process. 順路における屈曲部の数による難易度の違いを説明する図。The figure explaining the difference in the difficulty by the number of the bending parts in a regular route. 難易度に応じた候補マスの選択を説明する図。The figure explaining selection of the candidate cell according to the difficulty. 順路の方向による難易度の違いを説明する図。The figure explaining the difference in the difficulty by the direction of a regular route. 基礎文字盤の組合せによる文字盤の生成を説明する図。The figure explaining the production | generation of the dial by the combination of a basic dial. 基礎文字盤における順路の設定例。Example of setting the route on the basic dial. 基礎文字盤における順路の設定例。Example of setting the route on the basic dial. 基礎文字盤の組合せによる文字盤の生成を説明する図。The figure explaining the production | generation of the dial by the combination of a basic dial.

以下、図面を参照して、本発明の実施形態を説明する。なお、以下では、携帯型ゲーム装置において文字パズルゲームを実行する例を説明するが、本発明の適用可能な実施形態がこれに限定されるものではない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following, an example in which a character puzzle game is executed in a portable game device will be described, but embodiments to which the present invention can be applied are not limited thereto.

[ゲーム装置の外観]
図1は、本実施形態における携帯型ゲーム装置1000の外観図である。図1によれば、携帯型ゲーム装置1000は、プレーヤがゲーム操作を入力するための方向入力キー1002及びボタンスイッチ1004と、第1液晶ディスプレイ1006と、第2液晶ディスプレイ1008と、スピーカ1010と、イメージセンサモジュール1014と、制御ユニット1020とを、ヒンジで開閉自在な折り畳み型の装置本体に備えている。そして、第1液晶ディスプレイ1006及び第2液晶ディスプレイ1008の表示面上には、スタイラスペン1040などで触れることによって表示画面の任意位置を接触入力することのできるタッチパネル1012がそれぞれ装着されている。
[Appearance of game device]
FIG. 1 is an external view of a portable game apparatus 1000 according to this embodiment. According to FIG. 1, the portable game apparatus 1000 includes a direction input key 1002 and a button switch 1004 for a player to input a game operation, a first liquid crystal display 1006, a second liquid crystal display 1008, a speaker 1010, The image sensor module 1014 and the control unit 1020 are provided in a foldable apparatus main body that can be opened and closed by a hinge. On the display surfaces of the first liquid crystal display 1006 and the second liquid crystal display 1008, touch panels 1012 that can touch and input an arbitrary position on the display screen by touching with a stylus pen 1040 or the like are mounted.

また、装置本体には、コンピュータ読み出し可能な情報記憶媒体であるメモリカード1030にデータを読み書きできるメモリカード読取装置1016が備えられている。メモリカード1030には、携帯型ゲーム装置1000の制御ユニット1020がゲームプレイにかかる各種演算処理を実行するために必要なプログラムや各種設定データが記憶されている。またその他、装置本体には図示されていない内蔵バッテリーや電源ボタン、音量調節ボタン等が設けられている。   Further, the apparatus main body is provided with a memory card reader 1016 that can read and write data from and to a memory card 1030 that is a computer-readable information storage medium. The memory card 1030 stores programs and various setting data necessary for the control unit 1020 of the portable game apparatus 1000 to execute various arithmetic processes related to game play. In addition, the apparatus main body is provided with a built-in battery, a power button, a volume control button, etc., not shown.

タッチパネル1012は、表示画面を遮蔽することなく第1液晶ディスプレイ1006及び第2液晶ディスプレイ1008それぞれの表示画面のほぼ全域を被い、プレーヤがスタイラスペン1040や指などで触れる接触操作を行うと、左上を原点とする直交Xw,Yw軸座標系における接触位置座標を制御ユニット1020へ出力する。   The touch panel 1012 covers almost the entire display screen of each of the first liquid crystal display 1006 and the second liquid crystal display 1008 without shielding the display screen. When the player performs a touch operation touched with the stylus pen 1040 or a finger, the upper left The contact position coordinate in the orthogonal Xw, Yw axis coordinate system with the origin as the origin is output to the control unit 1020.

制御ユニット1020は、ゲーム装置の制御基板に相当し、CPU(Central Processing Unit)やGPU(Graphics Processing Unit)、DSP(Digital Signal Processor)などの各種マイクロプロセッサ、ASIC(Application Specific Integrated Circuit)、VRAMやRAM、ROM等の各種ICメモリを搭載する。また、制御ユニット1020は、無線通信モジュール1022や、3軸加速度センサ1024、第1液晶ディスプレイ1006及び第2液晶ディスプレイ1008のドライバ回路、タッチパネル1012のドライバ回路、方向入力キー1002及びボタンスイッチ1004からの信号を受信する回路、スピーカ1010へ音声信号を出力するためのアンプ回路、メモリカード読取装置1016への信号入出力回路といった所謂I/F回路(インターフェース回路)を搭載する。これら制御ユニット1020に搭載されている各要素は、それぞれバス回路を介して電気的に接続され、データの読み書きや信号の送受信が可能に接続されている。   The control unit 1020 corresponds to a control board of the game device, and includes various microprocessors such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), and a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), a VRAM, and the like. Various IC memories such as RAM and ROM are mounted. The control unit 1020 also includes a wireless communication module 1022, a triaxial acceleration sensor 1024, driver circuits for the first liquid crystal display 1006 and the second liquid crystal display 1008, a driver circuit for the touch panel 1012, direction input keys 1002, and button switches 1004. A so-called I / F circuit (interface circuit) such as a signal receiving circuit, an amplifier circuit for outputting an audio signal to the speaker 1010, and a signal input / output circuit to the memory card reader 1016 is mounted. Each element mounted on the control unit 1020 is electrically connected via a bus circuit so that data can be read and written and signals can be transmitted and received.

3軸加速度センサ1024は、携帯型ゲーム装置1000の姿勢変化や位置変化を検出するために直交するX,Y軸,Z軸の3軸方向の加速度を検出し、検出信号を制御ユニット1020へ出力する。尚、加速度センサの代わり、又は更なる機能追加としてジャイロセンサを備える構成としても良い。或いは地磁気を基準として位置や姿勢変化を検出する磁気センサを更に機能追加してもよい。   The triaxial acceleration sensor 1024 detects acceleration in the three axial directions of the X, Y, and Z axes orthogonal to detect a change in posture or position of the portable game apparatus 1000 and outputs a detection signal to the control unit 1020. To do. In addition, it is good also as a structure provided with a gyro sensor as a function addition instead of an acceleration sensor. Alternatively, a function of a magnetic sensor that detects a change in position or posture with reference to geomagnetism may be added.

制御ユニット1020は、メモリカード読取装置1016によってメモリカード1030に格納されているプログラムやデータを読み出して、搭載するICメモリにこれらを一時記憶する。そして、読み出したプログラムを実行して演算処理を実行し、方向入力キー1002やボタンスイッチ1004、タッチパネル1012からの操作入力に応じて携帯型ゲーム装置1000の各部を制御して所与のゲームを実行する。   The control unit 1020 reads out programs and data stored in the memory card 1030 by the memory card reader 1016 and temporarily stores them in the IC memory to be mounted. Then, the read program is executed to execute arithmetic processing, and a given game is executed by controlling each part of the portable game apparatus 1000 in accordance with operation inputs from the direction input key 1002, the button switch 1004, and the touch panel 1012. To do.

なお、本実施形態では、携帯型ゲーム装置1000は必要なプログラムや各種設定データをメモリカード1030から読み出す構成としているが、無線通信モジュール1022を介して、インターネットやLAN(Local Area Network)、WAN(Wide Area Network)などの有線/無線の通信回線Nに接続して外部の装置からダウンロードする構成としても良い。   In the present embodiment, the portable game apparatus 1000 is configured to read out necessary programs and various setting data from the memory card 1030, but via the wireless communication module 1022, the Internet, LAN (Local Area Network), WAN ( It is also possible to connect to a wired / wireless communication line N such as Wide Area Network and download from an external device.

[ゲーム概要]
本実施形態では、携帯型ゲーム装置1000において「文字パズルゲーム」が実行される。この文字パズルゲームは、表示された文字を繋げて意味のある文字列(単語や文章など)として完成させるゲームである。
[Game Overview]
In the present embodiment, a “character puzzle game” is executed in the portable game apparatus 1000. This character puzzle game is a game in which displayed characters are connected to complete a meaningful character string (word, sentence, etc.).

図2は、ゲーム画面の一例である。図中上側は、第1液晶ディスプレイ1006の出題画面W1を示し、下側は、第2液晶ディスプレイ1008に表示される回答画面W2を示している。回答画面W2には、縦横方向に配列された複数の文字ブロック10が表示される。各文字ブロック10に表示されている文字は、意味のある文章や単語である所定の出題文字列を構成する各文字であり、1つの文字ブロック10に1文字が割り当てられている。なお、本実施形態では、出題文字列を構成する文字は「ひらがな」とするが、カタカナや漢字、数字、演算記号等を含めることにしても良い。図2では、出題文字列「みなみじゅうじせい」の各文字を割り当てた9つの文字ブロック10が、3×3の配列で表示されている。また、回答画面W2には、回答可能な残り時間21、回答の完了を指示する決定アイコン22、回答のやり直しを指示するやり直しアイコン23が表示されている。   FIG. 2 is an example of a game screen. In the drawing, the upper side shows the question screen W1 of the first liquid crystal display 1006, and the lower side shows the answer screen W2 displayed on the second liquid crystal display 1008. A plurality of character blocks 10 arranged in the vertical and horizontal directions are displayed on the answer screen W2. The characters displayed in each character block 10 are each character constituting a predetermined question character string that is a meaningful sentence or word, and one character is assigned to one character block 10. In the present embodiment, the characters constituting the question character string are “Hiragana”, but may include katakana, kanji, numbers, arithmetic symbols, and the like. In FIG. 2, nine character blocks 10 to which each character of the question character string “Minami Jujisei” is assigned are displayed in a 3 × 3 array. Further, the answer screen W2 displays a remaining time 21 for which an answer can be made, a determination icon 22 for instructing the completion of the answer, and a redo icon 23 for instructing to redo the answer.

この回答画面W2において、プレーヤは、図3に示すように、スタイラスペン1040等を用いたタッチ操作によって回答を入力する。すなわち、文字の並びから出題文字列を推測し、表示画面上をタッチしたまま移動させるスライド操作によって、推測した出題文字列となるように各文字ブロック10を繋ぐ。このとき、縦横方向に隣接する文字ブロック10同士を繋ぐとともに、全ての文字ブロック10を1回のみ選択して、出題文字列の先頭の文字から最後の文字までを一回のスライド操作で繋ぐ、いわゆる一筆書きの要領で回答を入力する。   In the answer screen W2, as shown in FIG. 3, the player inputs an answer by a touch operation using the stylus pen 1040 or the like. That is, each character block 10 is connected so as to become the estimated question character string by a slide operation in which the question character string is estimated from the character sequence and moved while touching the display screen. At this time, the character blocks 10 adjacent in the vertical and horizontal directions are connected to each other, all the character blocks 10 are selected only once, and the first character to the last character of the question character string are connected by one slide operation. Enter the answer in a so-called one-stroke manner.

すると、回答画面W2には、スライド操作に伴うタッチ位置の軌跡(入力軌跡)24が表示されるとともに、選択した文字ブロック10が、選択済みであることを表すよう反転表示される。プレーヤの回答は、やり直しアイコン23を選択するとキャンセルされ、文字ブロック10の反転表示が戻されるとともに軌跡24が消去される。   Then, on the answer screen W2, the locus (input locus) 24 of the touch position associated with the slide operation is displayed, and the selected character block 10 is highlighted to indicate that it has been selected. The player's answer is canceled when the redo icon 23 is selected, the reverse display of the character block 10 is returned, and the locus 24 is erased.

回答を終了してプレーヤが決定アイコン22を選択した、或いは、残り時間21がゼロになると、図4に示すように、プレーヤの回答に対する答え合わせ画面W3が表示される。   When the answer is finished and the player selects the determination icon 22 or when the remaining time 21 becomes zero, an answer matching screen W3 for the answer of the player is displayed as shown in FIG.

図4に示すように、答え合わせ画面W3では、回答画面W2に表示されていた各文字ブロック10が、プレーヤの回答順に並べて表示される。そして、このプレーヤの回答による文字列(文字の並び)が出題文字列に一致しているか否かによって「正解/不正解」が判定され、判定結果に応じた演出等がなされる。   As shown in FIG. 4, on the answer matching screen W3, the character blocks 10 displayed on the answer screen W2 are displayed side by side in the player's answer order. Then, “correct answer / incorrect answer” is determined depending on whether or not the character string (character sequence) according to the player's answer matches the question character string, and an effect or the like according to the determination result is made.

[原理]
続いて、本実施形態の特徴である、出題画面W1における出題文字列の各文字の配列順の決定を説明する。先ず、文字ブロック10を配置するための「文字盤」を設定する。図5は、文字盤30の一例を示す図である。図5に示すように、文字盤30には、文字ブロック10が配置される複数のマス40が形成されている。詳細には、出題文字列の文字数と等しい数のマス40が形成されており、1つのマス40に1つの文字ブロック10が配置される。また、略正方形状である文字ブロック10に合わせて正方形状のマス40となっており、これらのマス40は、互いに上下左右方向で隣接するように形成されている。図5では、正方形状の文字盤30が4×4の碁盤の目状に区切られており、16個のマス40が形成されている。
[principle]
Next, the determination of the arrangement order of the characters in the question character string on the question screen W1, which is a feature of the present embodiment, will be described. First, a “clock face” for arranging the character blocks 10 is set. FIG. 5 is a diagram illustrating an example of the dial 30. As shown in FIG. 5, the dial 30 is formed with a plurality of squares 40 on which the character blocks 10 are arranged. Specifically, a number of squares 40 equal to the number of characters in the question character string are formed, and one character block 10 is arranged in one square 40. In addition, a square-shaped square 40 is formed in accordance with the substantially square-shaped character block 10, and these squares 40 are formed so as to be adjacent to each other in the vertical and horizontal directions. In FIG. 5, the square dial 30 is divided into 4 × 4 grids, and 16 squares 40 are formed.

このように複数のマス40が形成された文字盤30において、出題文字列の各文字(文字ブロック10)の配置順として、全てのマス40を1回ずつ通りながら縦横方向に進む順路(マス40の繋がり)を決定する。   In the dial plate 30 in which a plurality of squares 40 are formed in this way, as the arrangement order of each character (character block 10) of the question character string, the route (the square 40) proceeds in the vertical and horizontal directions while passing all the squares once. Connection).

図6は、文字盤30における「順路」の生成手順の概要を示す図である。順路の生成手順としては、先ず、図6(a)に示すように、出題文字列の最初の文字ブロック10が配置される「始点マス」を決定する。図6(a)では、マス40−fが始点マスである。   FIG. 6 is a diagram showing an outline of the procedure for generating the “forward route” on the dial 30. As a procedure for generating a normal route, first, as shown in FIG. 6A, a “starting point cell” in which the first character block 10 of the question character string is arranged is determined. In FIG. 6A, the cell 40-f is the start point cell.

そして、この始点マスから、上下左右方向に1マスずつ順路を伸ばしてゆく。すなわち、図6(a)に示すように、現在の順路の先頭のマス40と上下左右方向に隣接する4つのマス40のうち、順路として未確定のマス40(未確定マス)のうちから、次の順路の候補となるマス40(候補マス)を選択する。   From this starting point cell, the route is extended by one cell in the vertical and horizontal directions. That is, as shown in FIG. 6A, from among the four cells 40 adjacent to the head cell 40 of the current route in the vertical and horizontal directions, from the cells 40 (undefined cells) that are unconfirmed as the route, A cell 40 (candidate cell) to be a candidate for the next route is selected.

候補マスを選択する毎に、この候補マスに仮順路を伸延した場合に順路が完成し得るか否か(順路の完成可否)を判定する。完成不可能と判定したならば、他の候補マスを再選択する。完成可能と判定したならば、候補マスを順路として確定し、次の候補マスを選択する。このように、候補マスの選択、順路の完成可否、候補マスの順路としての確定を繰り返し、文字盤30の全てのマス40が確定マスとなると、順路の完成となる。   Each time a candidate cell is selected, it is determined whether or not the normal route can be completed when the temporary route is extended to this candidate cell (whether or not the normal route can be completed). If it is determined that it cannot be completed, another candidate cell is reselected. If it is determined that the completion is possible, the candidate cell is determined as a normal route, and the next candidate cell is selected. In this manner, selection of candidate squares, whether or not a route is completed, and confirmation of candidate squares as regular routes are repeated, and when all squares 40 of the dial 30 become confirmed squares, the route is completed.

図6(b)では、順路としてマス40−f,40−g,40−k,40−jを順に確定した状態であり、この場合、マス40−jに隣接する4つのマス40−f,40−i,40−k,40−nのうち、未選択マスであるマス40−i,40−nの何れかかが次の候補マスとなる。   FIG. 6B shows a state in which cells 40-f, 40-g, 40-k, and 40-j are sequentially determined as forward routes. In this case, four cells 40-f, Of 40-i, 40-k, and 40-n, one of the unselected cells 40-i and 40-n is the next candidate cell.

始点マスは、次のように決定する。先ず、図7に示すように、文字盤30の各マス40に、「1/0」の「パリティ」を設定する。パリティは、隣り合うマス40同士のパリティが異なるように設定される。図7では、4×4の合計16マスからなる文字盤30の例を示しており、パリティが「1」のマス40と「0」のマス40とが、市松模様状に互い違いに設定されている。このように、隣り合うマス40同士のパリティが異なるように設定されるため、順路は異なるパリティのマス40を交互に通ることになる。   The starting point cell is determined as follows. First, as shown in FIG. 7, “parity” of “1/0” is set in each square 40 of the dial 30. The parity is set so that the adjacent cells 40 have different parity. FIG. 7 shows an example of a dial plate 30 having a total of 16 squares of 4 × 4, and squares 40 with parity “1” and squares “0” are alternately set in a checkered pattern. Yes. Thus, since the adjacent squares 40 are set to have different parities, the forward path alternately passes through the different parity squares 40.

従って、図8(a)に示すように、文字盤30における各パリティのマス40の数が同じならば、文字盤30の全てのマス40のうちから、始点マスを選択する。そして、この場合、始点マスと終点マスとのパリティが異なることになる。例えば、パリティ「1」のマス40を始点マスとすると、必ず、パリティ「0」のマス40が終点マスとなる。但し、各パリティのマス40の数が同じであっても、何れのマス40を始点マスとして選択するかによって順路が生成不可能な場合もある。このような場合には、他のマス40を始点マスとして再選択する。   Therefore, as shown in FIG. 8A, if the number of the squares 40 of each parity in the dial 30 is the same, the start point square is selected from all the squares 40 of the dial 30. In this case, the parity of the start point cell and the end point cell are different. For example, if the cell 40 with the parity “1” is the start point cell, the cell 40 with the parity “0” is always the end cell. However, even if the number of squares 40 of each parity is the same, there is a case where a normal path cannot be generated depending on which square 40 is selected as the starting point square. In such a case, another cell 40 is reselected as the start cell.

また、図8(b)に示すように、文字盤30における各パリティのマス40の数の差が「1」ならば、マス数が多い方のパリティのマス40が、始点マス、及び、終点マスとなる。つまり、マス数が多い方のパリティのマス40のうちから、始点マスを選択する。図8(b)では、パリティ「1」のマス数が「8」、パリティ「0」のマス数が「7」であり、従って、パリティ「1」のマス40が、始点マス、及び、終点マスとなる。   Further, as shown in FIG. 8B, if the difference in the number of the parity cells 40 in the dial 30 is “1”, the parity cell 40 having the larger cell number has the start point cell and the end point. Become a mass. That is, the start point cell is selected from the parity cells 40 having the larger cell number. In FIG. 8B, the number of squares with parity “1” is “8” and the number of squares with parity “0” is “7”. Therefore, the square 40 with parity “1” is the start point and end point. Become a mass.

また、図8(c)に示すように、文字盤30における各パリティのマス40の数の差が「2」以上の場合、順路を生成できない。図8(c)では、パリティ「1」のマス数が「8」、パリティ「0」のマス数が「6」であり、従って、2つのパリティそれぞれのマス数の差が「2」であるため、順路の生成が不可能である。   Further, as shown in FIG. 8C, when the difference in the number of squares 40 of each parity in the dial 30 is “2” or more, a normal path cannot be generated. In FIG. 8C, the number of cells of parity “1” is “8”, the number of cells of parity “0” is “6”, and therefore the difference in the number of cells of each of the two parities is “2”. Therefore, it is impossible to generate a route.

順路の延伸途中における完成可否の判定要素として、(A)袋小路マス(行き止まり)、(B)未確定マスの非連結、がある。   There are (A) a dead end mass (dead end) and (B) a non-confirmed mass unconnected as determination factors for whether or not completion is possible in the middle of extending a normal route.

(A)袋小路マス
先ず、「袋小路マス」とは、袋小路条件を満たすマス40、すなわち、上下左右の4方向のうち、1方向にしか順路が延ばせないマス40である。
(A) Fukurokoji Mass First, the “bukurokoji mass” is a mass 40 that satisfies the sacrificial path condition, that is, a mass 40 whose forward path can be extended only in one direction among the four directions of up, down, left and right.

図9は、袋小路マスの一例である。図9(a)では、3つのマス40−a,40−b,40−fが、順路として確定しているマス40(確定マス)であり、候補マスとしてマス40−gを選択した状態である。マス40−fからマス40−gへ仮順路を伸延した場合、マス40−eは、マス40−iからマス40−eへの順路のみしか存在しないため、マス40−eが袋小路マスとなる。   FIG. 9 is an example of a dead end mass. In FIG. 9A, three squares 40-a, 40-b, and 40-f are squares 40 (final squares) that have been confirmed as regular routes, and the square 40-g has been selected as a candidate square. is there. When the temporary route is extended from the cell 40-f to the cell 40-g, the cell 40-e has only a route from the cell 40-i to the cell 40-e, and therefore the cell 40-e becomes a dead-end cell. .

また、図9(b)では、4つのマス40−a,40−b,40−f,40−gが確定マスであり、候補マスとしてマス40−kを選択した状態である。マス40−gからマス40−kに仮順路を伸延した場合、マス40−c,40−eが袋小路マスとなる。袋小路マスは「終点マス」にしかなり得ない。つまり、図9(b)に示すように、2つ以上の袋小路マスが存在すると、順路の完成は不可能である。   In FIG. 9B, four cells 40-a, 40-b, 40-f, and 40-g are fixed cells, and the cell 40-k is selected as a candidate cell. When the temporary route is extended from the mass 40-g to the mass 40-k, the masses 40-c and 40-e become the dead-end mass. You can't get much of the Fukurokoji square as the "end square". That is, as shown in FIG. 9 (b), if there are two or more dead-end street masses, the normal route cannot be completed.

但し、袋小路マスが1つでも、順路の生成が不可能な場合がある。具体的には、袋小路マスと、終点マスとのパリティが一致しない場合である。これは、袋小路マスは、終点マスにしかなり得ないためである。なお、終点マスのパリティは、上述のように、始点マスのパリティと、各パリティのマス40の数(すなわち、文字盤30におけるマス40の総数の偶数/奇数)によって決まる。   However, there is a case where it is impossible to generate a normal route even if there is only one dead end mass. Specifically, this is a case where the parities between the dead-end square and the end-point square do not match. This is because the dead-end mass cannot be obtained as an end point mass. As described above, the parity of the end point cell is determined by the parity of the start point cell and the number of cells 40 of each parity (that is, the even / odd number of the total number of cells 40 in the dial 30).

図10は、袋小路マスが1つであるが順路の生成が不可能な場合の一例である。図10左側に示すように、文字盤30において、2つのマス40−f,40−bが確定マスであり、候補マスとしてマス40−cを選択し、マス40−bからマス40−cに仮順路を伸延した場合、マス40−aが袋小路マスとなる。また、図10右側は、文字盤30の各マス40のパリティの設定例を示す図である。始点マスであるマス40−fのパリティは「1」であり、従って、終点マスのパリティは「0」でなくてはならない。しかし、袋小路マスであるマス40−aのパリティは「1」であり、終点マスのパリティ「0」に一致しない。従って、図10においては、順路の完成は不可能である。   FIG. 10 is an example of a case where there is one dead-end street mass but a normal path cannot be generated. As shown on the left side of FIG. 10, in the dial 30, two squares 40-f and 40-b are fixed squares, and square 40-c is selected as a candidate square, and square 40-b is changed to square 40-c. When the temporary route is extended, the mass 40-a becomes a dead-end street mass. Also, the right side of FIG. 10 is a diagram showing an example of setting the parity of each square 40 of the dial 30. The parity of the start point cell 40-f is “1”, and therefore the parity of the end point cell must be “0”. However, the parity of the square 40-a, which is a dead-end square, is “1” and does not match the parity “0” of the end point square. Therefore, in FIG. 10, it is impossible to complete the route.

袋小路マスによる順路完成可否の判定方法として、単純な方法としては、候補マスを選択する毎に、この候補マスに仮順路を伸延した場合に、全ての未確定マスについて袋小路マスとなるかを判定する方法がある。   As a simple method of determining whether or not a normal route can be completed by a culvert cell, every time a candidate cell is selected, it is determined whether or not all unconfirmed cells become culvert cells when a temporary route is extended to this candidate cell. There is a way to do it.

本実施形態では、処理演算の高速化のため、次の方法を採用する。すなわち、候補マスに仮順路を伸延することで新たにできる袋小路マスは、候補マスの1つ前のマス40、すなわち確定した順路の先頭マスの上下左右の4つのマス40の何れかとなる。   In the present embodiment, the following method is adopted for speeding up the processing operation. In other words, a new short path mass that can be newly created by extending a provisional route to a candidate mass is one of the squares 40 immediately before the candidate mass, that is, one of the four squares 40 on the top, bottom, left, and right of the head cell of the determined regular route.

例えば、図9(a)において、3つのマス40−a,40−b,40−fが確定マスの状態では、袋小路マスは存在していない。これは、この時点では、マス40−gとマス40−eとが、マス40−fの次の順路とされる可能性があるためである。そして、候補マスであるマス40−gに仮順路を伸延した時点で、マス40−eがマス40−fの次の順路として選択され得なくなったため、マス40−eが袋小路マスとなる。   For example, in FIG. 9A, when the three cells 40-a, 40-b, and 40-f are determined cells, there is no blocked path cell. This is because at this time, the cell 40-g and the cell 40-e may be the next route after the cell 40-f. When the temporary route is extended to the candidate cell 40-g, the cell 40-e can no longer be selected as the next route after the cell 40-f, and the cell 40-e becomes the dead-end cell.

続いて、図9(b)に示すように、マス40−kが候補マスの時点では、マス40−cは袋小路マスではない。そして、候補マスであるマス40−kに仮順路を伸延した時点で、マス40−cが袋小路マスとなる。このため、確定した順路の先頭マス(最新の確定マス)の上下左右の4つのマス40のみについて、袋小路マスとなるか否かを判定すれば良い。   Subsequently, as shown in FIG. 9B, when the cell 40-k is a candidate cell, the cell 40-c is not a dead-end cell. Then, when the temporary route is extended to the candidate cell 40-k, the cell 40-c becomes the dead-end cell. For this reason, it is only necessary to determine whether or not only the four squares 40 on the top, bottom, left, and right of the first square (latest final square) of the confirmed route are to become a dead-line square.

図11は、袋小路マスの判定の一例を示す図である。図11(a)では、3つのマス40−a,40−b,40−fが確定マスであり、マス40−gが候補マスの状態である。この場合、確定された順路の先頭マスであるマス40−fの上下左右の4マス40−b,40−e,40−g,40−jが、袋小路マスの判定対象となる。その結果、マス40−eが袋小路マスと判定される。この時点での袋小路マスの累計は「1」である。   FIG. 11 is a diagram illustrating an example of the determination of the block path mass. In FIG. 11A, three cells 40-a, 40-b, and 40-f are fixed cells, and a cell 40-g is a candidate cell. In this case, the four squares 40-b, 40-e, 40-g, and 40-j on the top, bottom, left, and right sides of the square 40-f that is the head square of the determined regular path are the target for determining the short path square. As a result, the mass 40-e is determined to be a dead-end street mass. At this time, the cumulative total of the alleys is “1”.

次いで、図11(b)に示すように、候補マスであるマス40−gを順路として確定し、マス40−kが次の候補マスとされたとする。この場合、順路の先頭マスであるマス40−gの上下左右の4つのマス40−c,40−f,40−h,40−kが、袋小路マスの判定対象となる。その結果、マス40−cが、新たに袋小路マスと判定される。つまり、既に袋小路マスと判定されているマス40−eと合わせて、合計「2」のマス40−c,40−eが袋小路マスとなる。この時点で、順路完成は不可能と判定される。   Next, as shown in FIG. 11B, it is assumed that the candidate cell 40-g is determined as a normal route, and the cell 40-k is set as the next candidate cell. In this case, the four squares 40-c, 40-f, 40-h, and 40-k on the top, bottom, left, and right of the square 40-g that is the leading square of the normal path are the target for determining the short path square. As a result, the mass 40-c is newly determined as a blocked path mass. In other words, a total of “2” squares 40-c and 40-e, together with the square 40-e that has already been determined as the dead-line square, become the dead-line square. At this point, it is determined that the route is not complete.

(B)未確定マスの非連結
「未確定マスが非連結」とは、連接条件を満たさないこと、すなわち、互いに隣接する未確定マスの集合を1つの「ブロック」としたとき、2つ以上のブロックが存在することである。
(B) Unconfirmed mass unconnected “Undetermined mass is not connected” means that the connection condition is not satisfied, that is, a set of uncertain cells adjacent to each other is defined as one “block”. That is, there is a block.

図12は、未確定マスが非連結である一例を示す図である。図12では、3つのマス40−e〜40−gが確定マスの状態である。ここで、マス40−hを候補マスとした場合、12個の未確定マス40−a〜40−d,40−i〜40−pが、4つのマス40−a〜40−dのブロックと、8つのマス40−i〜40−pのブロックとに分離されてしまい、未確定マスが「非連結」である。このように、未確定マスが非連結の場合、順路は完成不可能である。   FIG. 12 is a diagram illustrating an example in which an undetermined cell is not connected. In FIG. 12, the three cells 40-e to 40-g are in a definite cell state. Here, when the cell 40-h is a candidate cell, twelve uncertain cells 40-a to 40-d and 40-i to 40-p are divided into blocks of four cells 40-a to 40-d. , Eight blocks 40-i to 40-p are separated, and the undefined block is “unconnected”. In this way, when the undetermined mass is not connected, the route cannot be completed.

「未確定マスの連結/非連結」の判定方法として、単純な方法としては、先ず、任意の1つの未確定マスを選択し、これに隣接する他の未確定マスを選択する。このように、次々と隣接する未確定マスを選択してゆき、選択可能な未確定マスが無くなった時点で、選択していない未確定マスが無いならば「連結」と判定し、選択していない未確定マスが有るならば「非連結」と判定する方法がある。   As a simple method for determining whether “unconfirmed mass is connected / disconnected”, first, an arbitrary uncertain mass is selected, and another undefined mass adjacent thereto is selected. In this way, adjacent unconfirmed cells are selected one after another, and when there are no unconfirmed cells that can be selected, if there are no unconfirmed cells that have not been selected, it is determined as “connected” and selected. There is a method of determining “unconnected” if there is no uncertain cell.

本実施形態では、処理演算の高速化のため、次の方法を採用する。すなわち、図13に示すように、文字盤30の外周に、連結/非連結の「判定用の仮想マス(判定用マス)50」を追加設定する。そして、図13に示すように、始点マスが判定用マス50に隣接している場合、設定した判定用マス50は、順路として確定したマス(確定マス)として扱う。次いで、図14,図15に示すように、候補マスの周囲の8マスを抽出し、この8マスについて、未確定マスの連結/非連結を判定する。この判定結果が、全ての未確定マスの連結/非連結の判定結果となる。   In the present embodiment, the following method is adopted for speeding up the processing operation. That is, as shown in FIG. 13, a connected / unconnected “determination virtual cell (determination cell) 50” is additionally set on the outer periphery of the dial 30. As shown in FIG. 13, when the start point cell is adjacent to the determination cell 50, the set determination cell 50 is handled as a cell (confirmed cell) determined as a normal route. Next, as shown in FIGS. 14 and 15, eight squares around the candidate square are extracted, and the connection / non-connection of the undetermined square is determined for these eight squares. This determination result becomes a determination result of connection / disconnection of all undefined cells.

図13では、文字盤30の周囲に、20個の判定用マス50−a〜50−tが設定されている。また、文字盤30のマス40−eが始点マスであり、このマス40−eは判定用マス50−iに隣接している。このため、判定用マス50−a〜50−tは、全てを確定マスとして扱う。   In FIG. 13, 20 determination cells 50-a to 50-t are set around the dial 30. Further, the cell 40-e of the dial plate 30 is a starting point cell, and this cell 40-e is adjacent to the determination cell 50-i. For this reason, all the determination cells 50-a to 50-t are handled as fixed cells.

そして、図14に示すように、2つのマス40−e,40−fを確定マスとし、マス40−gが候補マスである場合、候補マスであるマス40−gの周囲の8つのマス40−b〜40−d,40−f,40−h,40−j〜40−lが抽出される。これら8つのマス40のうち、7つの未確定マス40−b〜40−d,40−h,40−j〜40−lは「連結」している。従って、文字盤30において、全ての未確定マスは「連結」していると判定される。   Then, as shown in FIG. 14, when two cells 40-e and 40-f are determined cells and the cell 40-g is a candidate cell, eight cells 40 around the cell 40-g that is a candidate cell. -B to 40-d, 40-f, 40-h, and 40-j to 40-l are extracted. Of these eight cells 40, seven uncertain cells 40-b to 40-d, 40-h, 40-j to 40-l are “connected”. Therefore, in the dial 30, it is determined that all unconfirmed cells are “connected”.

次いで、図15に示すように、3つのマス40−e,40−f,40−gを確定マスとし、マス40−hが候補マスである場合、候補マスであるマス40−hの周囲の8つのマス40−c,40−d,40−g,40−k,40−l、及び、判定用マス50−h,50−j,50−lが抽出される。これらの8つのマスのうち、4つの未確定マスであるマス40−c,40−d,40−k,40−lは「非連結」である。従って、文字盤30において、全ての未確定マスは「非連結」と判定される。   Next, as illustrated in FIG. 15, when the three cells 40-e, 40-f, and 40-g are determined cells and the cell 40-h is a candidate cell, the area around the cell 40-h that is a candidate cell is displayed. Eight cells 40-c, 40-d, 40-g, 40-k, 40-1 and determination cells 50-h, 50-j, 50-l are extracted. Of these eight squares, the four undetermined squares 40-c, 40-d, 40-k, and 40-1 are “unconnected”. Accordingly, in the dial 30, all unconfirmed cells are determined as “unconnected”.

また、図16に示すように、始点マスが判定用マス50に隣接していない場合、判定用マス50は、順路として確定されていないマス(未確定マス)として扱う。そして、同様に、候補マスの周囲8マスを抽出し、この8マスについて未確定マスの連結/非連結を判定する。またこの場合、順路を確定してゆく途中で、判定用マス50と隣接しているマス40が順路として確定された時点で、全ての判定用マス50を未確定マスから確定マスに変更する。図16では、始点マスはマス40−fであり、このマス40−fは判定用マス50に隣接していない。従って、全ての判定用マス50−a〜50−tは未確定マスとして扱われる。   As shown in FIG. 16, when the starting point cell is not adjacent to the determination cell 50, the determination cell 50 is handled as a cell that is not fixed as a normal route (undefined cell). Similarly, eight squares around the candidate square are extracted, and the connection / non-connection of the undecided square is determined for these eight squares. In this case, all the determination cells 50 are changed from the unconfirmed cells to the fixed cells when the cells 40 adjacent to the determination cells 50 are determined as the normal route in the course of determining the normal route. In FIG. 16, the start point cell is a cell 40-f, and this cell 40-f is not adjacent to the determination cell 50. Accordingly, all the determination cells 50-a to 50-t are treated as undetermined cells.

そして、図17に示すように、マス40−f,40−gを順路として確定し、マス40−hを候補マスとした状態では、候補マスであるマス40−hの周囲の8つのマス40−c,40−d,40−g,40−k,40−l、及び、判定用マス50−h,50−j,50−lが抽出される。そして、これら8つのマスのうち、7つの未確定マスであるマス40−c,40−d,40−k,40−l、及び、判定用マス50−h,50−j,50−lについて連結/非連結が判定される。この場合、「連結」していると判定されるため、文字盤30における全ての未確定マスが「連結」していると判定される。   Then, as shown in FIG. 17, when the squares 40-f and 40-g are determined as normal routes and the square 40-h is a candidate square, eight squares 40 around the square 40-h that is a candidate square. -C, 40-d, 40-g, 40-k, 40-l and determination cells 50-h, 50-j, 50-l are extracted. Of these eight cells, seven undefined cells 40-c, 40-d, 40-k, 40-1 and determination cells 50-h, 50-j, 50-1 are used. Connection / non-connection is determined. In this case, since it is determined that they are “connected”, it is determined that all unconfirmed cells on the dial 30 are “connected”.

その後、図18に示すように、マス40−f,40−g,40−hを順路として確定し、候補マスをマス40−lとすると、マス40−hが判定用マス50−jに隣接しているため、全ての判定用マス50−a〜50−tが未確定マスから確定マスに変更される。そして、候補マスであるマス40−lの周囲の8つのマス40−g,40−h,40−k,40−o,40−p、及び、判定用マス50−j,50−l,50−nが抽出され、これらの8つのマスのうち、3つの未確定マスであるマス40−k,40−o,40−lについて連結/非連結が判定される。この場合、連結していると判定されるため、文字盤30において全ての未確定マスが連結していると判定される。   Then, as shown in FIG. 18, when the squares 40-f, 40-g, and 40-h are determined as normal routes and the candidate square is the square 40-1, the square 40-h is adjacent to the determination square 50-j. Therefore, all the determination cells 50-a to 50-t are changed from the unconfirmed cells to the confirmed cells. Then, eight cells 40-g, 40-h, 40-k, 40-o, 40-p around the cell 40-l that is a candidate cell, and determination cells 50-j, 50-l, 50 -N is extracted, and connection / disconnection is determined for cells 40-k, 40-o, and 40-1 that are three undefined cells among these eight cells. In this case, since it is determined that they are connected, it is determined that all unconfirmed cells on the dial 30 are connected.

また、図19(a)に示すように、文字盤30にマス40が無い「穴」が形成されている場合には、この「穴」に判定用マス50が設定される。この判定用マス50は、未確定マスとして初期設定される。そして、図19(b)に示すように、「穴」に隣接しているマス40が確定マスとなった時点で、この「穴」に設定された判定用マス50が未確定マスから確定マスに変更される。   Further, as shown in FIG. 19A, when a “hole” having no square 40 is formed on the dial 30, a determination square 50 is set in this “hole”. This determination cell 50 is initially set as an undetermined cell. Then, as shown in FIG. 19B, when the cell 40 adjacent to the “hole” becomes a confirmed cell, the determination cell 50 set in this “hole” is changed from the unestablished cell to the confirmed cell. Changed to

図19(a)では、文字盤30において、マス40−kに該当する部分に「穴」が形成されており、この「穴」に判定用マス50−uが設定されている。そして、図19(b)では、マス40−f,40−gが確定マスとなった状態である。つまり、判定マス50−uに隣接するマス40−gが確定マスとなっており、この時点で、判定用マス50−uが確定マスとなる。   In FIG. 19A, a “hole” is formed in a portion corresponding to the cell 40-k in the dial plate 30, and a determination cell 50-u is set in this “hole”. In FIG. 19B, the cells 40-f and 40-g are determined cells. That is, the cell 40-g adjacent to the determination cell 50-u is a fixed cell, and at this point, the determination cell 50-u is a fixed cell.

[機能構成]
図20は、携帯型ゲーム装置1000の機能構成を示すブロック図である。図20によれば、携帯型ゲーム装置1000は、機能的には、操作入力部110と、撮像部120と、処理部200と、画像表示部130と、音声出力部140と、通信部150と、記憶部300とを備えて構成される。
[Function configuration]
FIG. 20 is a block diagram illustrating a functional configuration of the portable game apparatus 1000. According to FIG. 20, the portable game apparatus 1000 functionally includes an operation input unit 110, an imaging unit 120, a processing unit 200, an image display unit 130, an audio output unit 140, and a communication unit 150. And a storage unit 300.

操作入力部110は、プレーヤによる操作入力を受け付け、操作に応じた操作信号を処理部200に出力する。この機能は、操作入力部110は、ボタンスイッチやジョイスティック、タッチパッド、トラックボール、加速度センサユニット、傾斜センサユニットなどによって実現される。図1では、方向入力キー1002やボタンスイッチ1004、タッチパネル1012がこれに該当する。   The operation input unit 110 receives an operation input by the player and outputs an operation signal corresponding to the operation to the processing unit 200. The function input unit 110 is realized by a button switch, a joystick, a touch pad, a trackball, an acceleration sensor unit, an inclination sensor unit, or the like. In FIG. 1, the direction input key 1002, the button switch 1004, and the touch panel 1012 correspond to this.

撮像部120は、撮影対象からの光を受光して電気信号に変換し、デジタル画像データを生成し、処理部200へ出力する。この機能は、レンズ、メカシャッター、シャッタードライバ、CCDイメージセンサモジュールやCMOSイメージセンサモジュールといった光電変換素子、光電変換素子から電荷量を読み出し画像データを生成するデジタルシグナルプロセッサ(DSP)、ICメモリなどで実現される。図1ではイメージセンサモジュール1014がこれに該当する   The imaging unit 120 receives light from the imaging target, converts it into an electrical signal, generates digital image data, and outputs the digital image data to the processing unit 200. This function is available in lenses, mechanical shutters, shutter drivers, photoelectric conversion elements such as CCD image sensor modules and CMOS image sensor modules, digital signal processors (DSPs) that read charge amounts from photoelectric conversion elements and generate image data, IC memories, etc. Realized. In FIG. 1, the image sensor module 1014 corresponds to this.

処理部200は、例えばCPUやGPU等のマイクロプロセッサや、ASIC(特定用途向け集積回路)、ICメモリなどの電子部品によって実現され、操作入力部110や記憶部300を含む携帯型ゲーム装置1000の各機能部との間でデータの入出力を行う。そして、所定のプログラムやデータ、操作入力部110からの操作入力信号に基づいて各種の演算処理を実行して、携帯型ゲーム装置1000の動作を制御する。図1では制御ユニット1020がこれに該当する。また、処理部200は、主にゲームの実行に係る演算処理を行うゲーム演算部210と、ゲーム演算部210の処理によって求められたデータに基づきゲーム画像を生成する画像生成部230と、効果音やBGM等のゲーム音を生成する音声生成部240とを含む。   The processing unit 200 is realized by, for example, a microprocessor such as a CPU or GPU, an electronic component such as an ASIC (Application Specific Integrated Circuit), an IC memory, and the like, and includes the operation input unit 110 and the storage unit 300. Input / output data to / from each functional unit. Then, various arithmetic processes are executed based on a predetermined program and data and an operation input signal from the operation input unit 110 to control the operation of the portable game apparatus 1000. In FIG. 1, the control unit 1020 corresponds to this. The processing unit 200 includes a game calculation unit 210 that mainly performs calculation processing related to game execution, an image generation unit 230 that generates a game image based on data obtained by the processing of the game calculation unit 210, and sound effects. And a sound generation unit 240 for generating game sounds such as BGM.

ゲーム演算部210は、順路生成部212を含み、ゲームプログラム310に従ったゲーム処理を行う。具体的には、ゲーム演算部210は、ゲーム処理では、先ず、出題文字列を決定する。すなわち、出題文字列群データ320として記憶されている予め用意された出題文字列群のうちから、出題難易度等に応じて一の出題文字列を選択する。   The game calculation unit 210 includes a route generation unit 212 and performs game processing according to the game program 310. Specifically, in the game process, the game calculation unit 210 first determines a question character string. That is, one question character string is selected from among the question character string groups prepared in advance stored as the question character string group data 320 according to the question difficulty level or the like.

次いで、文字盤生成処理を行って、決定した出題文字列の文字数に応じた文字盤30を設定する。すなわち、撮像部120による撮像画像に対する所定の輪郭抽出処理を行い、抽出した輪郭に基づく文字盤30の形状を決定する。そして、形状を決定した文字盤30に、少なくとも、出題文字列の文字数のマス40が配置されるように大きさを適当に決定したマス40を、縦横方向に連続するように配置する。   Next, dial generation processing is performed to set a dial 30 corresponding to the determined number of characters in the question character string. That is, a predetermined contour extraction process is performed on the captured image by the imaging unit 120, and the shape of the dial 30 based on the extracted contour is determined. Then, on the dial plate 30 whose shape has been determined, at least the squares 40 whose size is appropriately determined so that the squares 40 corresponding to the number of characters in the question character string are arranged are arranged so as to be continuous in the vertical and horizontal directions.

ここで、生成した文字盤30についてのデータは、生成文字盤データ340として記憶される。   Here, data about the generated dial 30 is stored as generated dial data 340.

図21は、生成文字盤データ340のデータ構成の一例を示す図である。図21によれば、生成文字盤データ340は、文字盤30の形状を定義した文字盤形状データ341と、該文字盤30に設定されたマス40についての配置マスデータ350とを含んでいる。   FIG. 21 is a diagram showing an example of the data structure of the generated dial face data 340. As shown in FIG. According to FIG. 21, the generated dial data 340 includes dial shape data 341 defining the shape of the dial 30 and arrangement mass data 350 for the square 40 set on the dial 30.

配置マスデータ350は、該文字盤30に設定されたマスの数351と、始点マス352と、始点マスのパリティ353と、終点マス354と、終点マスのパリティ355とを格納している。また、マス40それぞれについて、マスID356aと、上下左右方向それぞれの隣接マス356bと、パリティ356cと、順路としての選択状態356dと、袋小路マスであるか否かを示す袋小路フラグ356eとを対応付けて格納しているとともに、判定用マス50それぞれについて、判定用マスID357aと、上下左右方向それぞれの隣接マス357bと、選択状態357cとを対応付けて格納している。   The arrangement cell data 350 stores a cell number 351, a start cell 352, a start cell parity 353, an end cell 354, and an end cell parity 355 set in the dial 30. In addition, for each square 40, a square ID 356a, an adjacent square 356b in the vertical and horizontal directions, a parity 356c, a selection state 356d as a normal path, and a dead path flag 356e indicating whether or not it is a dead path square are associated with each other. In addition, for each determination cell 50, a determination cell ID 357a, an adjacent cell 357b in the vertical and horizontal directions, and a selection state 357c are stored in association with each other.

続いて、ゲーム演算部210は出題文字列の各文字を割り当てた文字ブロック10を、順路生成部212によって生成された順路に従って、生成した文字盤30に配置した回答画面W2を生成し、画像表示部130に表示させる。次いで、この回答画面W2においてプレーヤによって回答された文字の並びと、出題文字列とが一致するか否かを比較することで、正解/不正解を判定する。そして、この判定結果に応じた演出、例えば、正解すると文字盤30のもととなった撮像画像を表示するといった演出処理を行う。   Subsequently, the game calculation unit 210 generates an answer screen W2 in which the character block 10 to which each character of the question character string is assigned is arranged on the generated dial 30 according to the route generated by the route generation unit 212, and is displayed as an image. Display on the unit 130. Next, the correct / incorrect answer is determined by comparing whether or not the sequence of characters answered by the player on the answer screen W2 matches the question character string. Then, an effect according to the determination result, for example, an effect process of displaying a captured image that is the basis of the dial 30 when the answer is correct is performed.

順路生成部212は、順路生成処理を行って、生成された文字盤30において出題文字列の各文字を割り当てた文字ブロック10を配置する順路を生成する。具体的には、先ず、始点マスを決定する。すなわち、文字盤30の各マスに、互いに隣り合うマス40のパリティが異なるように「1/0」のパリティを設定し、各パリティのマス数を計数する。各パリティのマスの数が同じならば、全てのマス40のうちから、例えばランダムに選択した一のマスを始点マスとする。そして、始点マスのパリティと異なるパリティを、終点マスのパリティとする。一方、各パリティのマス数が異なるならば、マス数が多い方のパリティのマス40のうち、例えばランダムに選択した一のマス40を始点マスとする。そして、この始点マスのパリティを、終点マスのパリティとする。   The route generation unit 212 performs route generation processing to generate a route in which the character block 10 to which each character of the question character string is assigned in the generated dial 30 is arranged. Specifically, first, a starting point cell is determined. In other words, “1/0” parity is set in each square of the dial 30 so that the parity of adjacent squares 40 is different, and the number of squares of each parity is counted. If the number of squares in each parity is the same, for example, one randomly selected square from all squares 40 is set as the starting point square. The parity different from the parity of the start point cell is set as the parity of the end point cell. On the other hand, if the number of squares of each parity is different, for example, one randomly selected square 40 out of the parity squares 40 having the larger number of squares is set as the starting point square. Then, the parity of the start point cell is set as the parity of the end point cell.

そして、始点マスを最初の確定マスとし、この始点マスから1マスずつ順路を伸ばしてゆく。すなわち、確定マスに隣り合う上下左右の4つのマス40のうち、未確定マスのうちから1つをランダムに選択し、次に順路とする候補マスとする。そして、順路完成可否判定処理を行って、この候補マスに仮順路を伸延した場合の順路の完成可否(可能/不可能)を判定する。   Then, the starting point cell is set as the first fixed cell, and the route is extended from the starting point cell by one cell. In other words, one of the four squares 40 on the upper, lower, left, and right sides adjacent to the confirmed square is randomly selected from the unestablished squares, and is set as a candidate square for the next route. Then, a route completion determination process is performed to determine whether or not the route can be completed (possible / impossible) when the temporary route is extended to this candidate cell.

順路完成可否判定処理では、(A)袋小路マス、(B)未確定マスの連結/非連結、それぞれに基づく順路の完成可否の判定を行い、両方で可能と判定したときに順路の完成が可能と判定する。   In the route completion availability determination process, (A) Fukurokoji mass, (B) Unconfirmed mass connection / disconnection, and whether or not the route completion based on each is determined, and when both are determined to be possible, the route can be completed Is determined.

具体的には、袋小路マスに基づく判定については、確定した順路の先頭マス(最新の確定マス)に隣接する上下左右の4つのマス40それぞれについて、候補マスに仮順路を伸延することで新たに袋小路マスとなるか否かを判定する。新たな袋小路マスとならないならば、順路の完成は“可能”と判定する。また、新たに袋小路マスとなり、該新たな袋小路マスを含む袋小路マスの累計が「1」ならば、該新たな袋小路マスのパリティが終点マスのパリティに一致するか否かを判定し、一致しないならば順路の完成は“不可能”と判定し、一致するならば順路の完成は“可能”と判定する。また、新たに袋小路マスとなり、該新たな袋小路マスを含む袋小路マスの累計が「2」以上ならば、順路の完成は“不可能”と判定する。   Specifically, for the determination based on the culvert path square, each of the upper, lower, left and right squares 40 adjacent to the head square (the latest confirmed square) of the confirmed route is newly extended by extending the temporary route to the candidate square. It is determined whether or not it becomes a dead-end street mass. If it does not become a new dead-end street mass, it is determined that the completion of the normal route is “possible”. In addition, if the new path becomes a new path and the total number of the path path including the new path becomes “1”, it is determined whether or not the parity of the new path is equal to the parity of the end point. If so, it is determined that the completion of the route is “impossible”. In addition, if a new path alley mass is newly obtained and the total number of path alley masses including the new path alley mass is “2” or more, it is determined that completion of the normal path is “impossible”.

また、未確定マスの連結/非連結に基づく判定については、文字盤30の周囲に連結/非連結の判定用マス50を追加設定する。これらの判定用マス50は、未確定マスとして初期設定し、判定用マス50に隣接するマス40の何れかが確定マスとなった時点(順路として確定した時点)で、未確定マスから確定マスに変更する。   For determination based on connection / non-connection of undefined cells, a connection / non-connection determination cell 50 is additionally set around the dial 30. These determination cells 50 are initially set as undetermined cells, and when any of the cells 40 adjacent to the determination cell 50 becomes a fixed cell (when determined as a normal route), the determination cell 50 is determined from the undetermined cell. Change to

そして、候補マスの周囲8マス(マス40及び判定用マス50)を抽出し、抽出した8マスのうちの未確定マスの連結/非連結を判定する。連結と判定したならば、文字盤30における全ての未確定マスが連結していると判定し、順路の完成は“可能”と判定する。一方、非連結と判定したならば、文字盤30における全ての未確定マスは非連結と判定し、順路の完成は“不可能”と判定する。   Then, eight squares around the candidate square (the square 40 and the judgment square 50) are extracted, and the connection / non-connection of the uncertain squares among the extracted eight squares is determined. If it is determined that the links are connected, it is determined that all the uncertain cells on the dial 30 are connected, and the completion of the route is determined as “possible”. On the other hand, if it is determined that they are not connected, it is determined that all unconfirmed cells on the dial 30 are not connected, and the completion of the route is determined as “impossible”.

順路完成可否判定処理の結果、順路の完成が“可能”と判定したならば、候補マスを確定マスとしてこの候補マスまで順路を伸ばし、次の候補マスを選択する。一方、順路の完成が“不可能”と判定したならば、現時点での候補マスは順路として不適切であると判断し、順路の先頭のマス40に隣接する他の未確定マスのうちから別の候補マスを選択し、同様の判定を行う。またこの途中、確定した順路の先頭マス40に隣接するマス40に、候補マスとして選択できる未確定マスが無い状態となると、現在の始点マスの選択をキャンセルし、別の始点マスを再設定する。これを、全てのマス40を確定マスとするまで繰り返すことで、順路を生成する。生成した順路についてのデータは、生成順路データ360として記憶される。   As a result of the normal route completion determination process, if it is determined that the normal route is “possible”, the candidate cell is set as a confirmed cell, the route is extended to this candidate cell, and the next candidate cell is selected. On the other hand, if it is determined that the completion of the route is “impossible”, it is determined that the current candidate cell is inappropriate as a route, and is separated from other undefined cells adjacent to the head cell 40 of the route. The candidate cell is selected and the same determination is performed. In the meantime, if there is no unconfirmed cell that can be selected as a candidate cell in the cell 40 adjacent to the first cell 40 in the confirmed route, the selection of the current start cell is canceled and another start cell is reset. . This is repeated until all the squares 40 are determined squares, thereby generating a normal route. Data about the generated route is stored as generated route data 360.

図20に戻り、画像生成部230は、例えば、GPU(Graphics Processing Unit)、デジタルシグナルプロセッサ(DSP)などのプロセッサ、ビデオ信号IC、ビデオコーデック、フレームバッファ等の描画フレーム用ICメモリ等によって実現される。画像生成部230は、ゲーム演算部210による処理結果に基づいて1フレーム時間(例えば1/60秒)で1枚のゲーム画像を生成し、生成したゲーム画像の画像信号を画像表示部130に出力する。   Returning to FIG. 20, the image generation unit 230 is realized by, for example, a processor such as a graphics processing unit (GPU) or a digital signal processor (DSP), an IC memory for a drawing frame such as a video signal IC, a video codec, or a frame buffer. The The image generation unit 230 generates one game image in one frame time (for example, 1/60 second) based on the processing result by the game calculation unit 210 and outputs the generated image signal of the game image to the image display unit 130. To do.

画像表示部130は、画像生成部230から入力される画像信号に基づいて各種ゲーム画像を表示する。例えば、フラットパネルディスプレイやブラウン管(CRT)といった画像表示装置によって実現できる。図1では、第1液晶ディスプレイ1006及び第2液晶ディスプレイ1008がこれに該当する。   The image display unit 130 displays various game images based on the image signal input from the image generation unit 230. For example, it can be realized by an image display device such as a flat panel display or a cathode ray tube (CRT). In FIG. 1, the first liquid crystal display 1006 and the second liquid crystal display 1008 correspond to this.

音声生成部240は、例えばデジタルシグナルプロセッサ(DSP)、音声合成ICなどのプロセッサや、音声ファイル再生可能なオーディオコーデックによって実現され、ゲーム演算部210による処理結果に基づいてゲームに係る効果音やBGM、各種操作音の音信号を生成し、音声出力部140に出力する。   The sound generation unit 240 is realized by a processor such as a digital signal processor (DSP) or a voice synthesis IC, or an audio codec that can reproduce a sound file, for example. Based on the processing result of the game calculation unit 210, sound effects and BGM related to the game are realized. Then, sound signals of various operation sounds are generated and output to the sound output unit 140.

音声出力部140は、音声生成部240から入力される音信号に基づいて効果音やBGM等を音出力する装置によって実現される。図1では、スピーカ1010がこれに該当する。   The sound output unit 140 is realized by a device that outputs sound effects, BGM, and the like based on the sound signal input from the sound generation unit 240. In FIG. 1, the speaker 1010 corresponds to this.

通信部150は、通信回線Nと接続して通信を実現する。例えば、無線通信機、モデム、TA(ターミナルアダプタ)、有線用の通信ケーブルのジャックや制御回路等によって実現され、図1の無線通信モジュール1022がこれに該当する。   The communication unit 150 is connected to the communication line N to realize communication. For example, a wireless communication device, a modem, a TA (terminal adapter), a wired communication cable jack, a control circuit, and the like are realized, and the wireless communication module 1022 in FIG. 1 corresponds to this.

記憶部300は、処理部200に携帯型ゲーム装置1000を統合的に制御させるための諸機能を実現するためのシステムプログラムや、ゲームを実行させるために必要なゲームプログラム、各種データ等を記憶する。また、処理部200の作業領域として用いられ、処理部200が各種プログラムに従って実行した演算結果や操作入力部110から入力される入力データ等を一時的に記憶する。この機能は、例えばRAMやROMなどのICメモリ、ハードディスク等の磁気ディスク、CD−ROMやDVDなどの光学ディスクなどによって実現される。図1では制御ユニット1020が搭載するICメモリやメモリカード1030がこれに該当する。本実施形態では、記憶部300は、プログラムとしてゲームプログラム310が記憶されるとともに、データとして、出題文字列群データ320と、撮像画像データ330と、生成文字盤データ340と、生成順路データ360とが記憶される。   The storage unit 300 stores a system program for realizing various functions for causing the processing unit 200 to control the portable game apparatus 1000 in an integrated manner, a game program necessary for executing the game, various data, and the like. . Further, it is used as a work area of the processing unit 200, and temporarily stores calculation results executed by the processing unit 200 according to various programs, input data input from the operation input unit 110, and the like. This function is realized by, for example, an IC memory such as a RAM and a ROM, a magnetic disk such as a hard disk, and an optical disk such as a CD-ROM and DVD. In FIG. 1, the IC memory and the memory card 1030 mounted on the control unit 1020 correspond to this. In the present embodiment, the storage unit 300 stores the game program 310 as a program, and the question character string group data 320, the captured image data 330, the generated dial data 340, and the generated route data 360 as data. Is memorized.

[処理の流れ]
図22は、ゲーム処理の流れを説明するフローチャートである。図22によれば、ゲーム演算部210は、先ず、出題文字列を決定する(ステップA1)。次いで、文字盤設定処理を行って、決定した出題文字列の文字数に合わせた文字盤30を生成する(ステップA3)。
[Process flow]
FIG. 22 is a flowchart for explaining the flow of the game process. According to FIG. 22, the game calculation unit 210 first determines the question character string (step A1). Next, a dial setting process is performed to generate a dial 30 that matches the number of characters in the determined question character string (step A3).

図23は、文字盤設定処理の流れを説明するフローチャートである。図23によれば、ゲーム演算部210は、先ず、撮影処理を行う(ステップB1)。そして、撮像画像に対する輪郭抽出を行い(ステップB3)、抽出した輪郭をもとに文字盤30の形状を決定する(ステップB5)。次いで、決定した形状の文字盤30に、出題文字列の文字数のマス40を、縦横方向に連接するように設定する(ステップB7)。   FIG. 23 is a flowchart for explaining the flow of the dial setting process. According to FIG. 23, the game calculation unit 210 first performs a shooting process (step B1). Then, contour extraction is performed on the captured image (step B3), and the shape of the dial 30 is determined based on the extracted contour (step B5). Next, the cell 40 having the number of characters in the question character string is set on the dial plate 30 having the determined shape so as to be connected in the vertical and horizontal directions (step B7).

続いて、設定したマス40に、「1/0」のパリティを、隣り合うマス40同士のパリティが異なるように設定する(ステップB9)。次いで、各パリティのマス数を計数し、各パリティのマス数の差が「2」以上ならば(ステップB11:NO)、該文字盤30において順路の生成は“不可能”と判定し(ステップB13)、文字盤30におけるマス40の配置を変更した後(ステップB15)、ステップB9に戻り、同様の処理を繰り返す。   Subsequently, the parity of “1/0” is set in the set square 40 so that the parity of adjacent squares 40 is different (step B9). Next, the number of squares in each parity is counted, and if the difference in the number of squares in each parity is equal to or greater than “2” (step B11: NO), it is determined that the generation of the forward path is “impossible” in the dial 30 (step B13) After changing the arrangement of the squares 40 on the dial 30 (step B15), the process returns to step B9 and the same processing is repeated.

一方、各パリティのマス数の差が「1」以下ならば(ステップB11:YES)、該文字盤30において順路の生成は“可能”と判定する(ステップB17)。以上の処理を行うと、文字盤設定処理を終了する。   On the other hand, if the difference in the number of squares of each parity is equal to or less than “1” (step B11: YES), it is determined that generation of a normal route is possible in the dial 30 (step B17). When the above processing is performed, the dial setting processing is terminated.

その後、順路生成部212が順路生成処理を行って、文字盤30における出題文字列の各文字の配列順序を決定する(ステップA5)。   Thereafter, the route generation unit 212 performs route generation processing to determine the arrangement order of the characters in the question character string on the dial 30 (step A5).

図24は、順路生成処理の流れを説明するフローチャートである。図24によれば、先ず、文字盤30の周囲に連結の判定用マス50を追加設定し(ステップC1)、これらの判定用マス50を未確定マスとして初期設定する(ステップC3)。   FIG. 24 is a flowchart for explaining the flow of the route generation process. According to FIG. 24, first, a connection determination square 50 is additionally set around the dial 30 (step C1), and these determination squares 50 are initially set as undetermined squares (step C3).

次いで、始点マス決定処理を行って始点マスを決定する。すなわち、文字盤30における各パリティのマス数を計数し、各パリティのマス数が同じならば(ステップC7:YES)、文字盤30の全てのマス40のうちから、例えばランダムに1つのマス40を選択して始点マスとする(ステップC9)。そして、決定した始点マスのパリティとは異なるパリティを、終点マスのパリティとする(ステップC11)。   Next, the start point cell determination process is performed to determine the start point cell. That is, the number of squares of each parity on the dial 30 is counted, and if the number of squares of each parity is the same (step C7: YES), for example, one square 40 is randomly selected from all the squares 40 of the dial 30. Is selected as a starting point cell (step C9). Then, a parity different from the determined parity of the start point cell is set as the parity of the end point cell (step C11).

一方、2つのパリティそれぞれのマス数が異なるならば(ステップC7:NO)、マス数が多い方のパリティであるマス40のうちから、例えばランダムに1つのマス40を選択して始点マスとする(ステップC13)。そして、決定した始点マスのパリティと同じパリティを、終点マスのパリティとする(ステップC15)。   On the other hand, if the number of squares of the two parities is different (step C7: NO), for example, one square 40 is randomly selected from the squares 40 having the larger number of squares as the starting point square. (Step C13). Then, the parity that is the same as the parity of the determined start point cell is set as the end point cell parity (step C15).

始点マスを決定すると、続いて、順路の先頭マスとなる最新の確定マスについて、次に進めるマス40の有無を判定し、次に進めるマス40が無い場合には(ステップC17:NO)、ステップC3に戻る。次に進めるマス40が有る場合には(ステップC17:YES)、最新の確定マスに隣接する上下左右の4つのマス40のうち、未確定マスのうちから1つを選択して次の候補マスとする(ステップC19)。   After the start point cell is determined, the presence / absence of the next advance cell 40 is determined with respect to the latest determined cell that is the leading cell of the route, and if there is no next advance cell 40 (step C17: NO), step Return to C3. If there is a next cell 40 to be advanced (step C17: YES), one of the four cells 40 on the top, bottom, left, and right adjacent to the latest confirmed cell is selected from the unconfirmed cells, and the next candidate cell is selected. (Step C19).

続いて、順路完成可否判定処理を行って、この候補マスに仮順路を伸延した場合の順路の完成の可能/不可能を判定する(ステップC21)。   Subsequently, a normal path completion determination process is performed to determine whether the normal path can be completed or not when the temporary normal path is extended to this candidate cell (step C21).

図25は、順路完成可否判定処理の流れを説明するフローチャートである。図25によれば、先ず、未確定マスの連結/非連結に基づく判定を行う。すなわち、現時点で確定した順路の先頭マスが判定用マス50に隣接しているか否かを判定し、隣接しているならば(ステップD1:YES)、判定用マス50を確定マスとする(ステップD3)。   FIG. 25 is a flowchart for explaining the flow of the normal path completion determination process. According to FIG. 25, first, a determination is made based on the connection / disconnection of undefined cells. That is, it is determined whether or not the head cell of the route determined at the present time is adjacent to the determination cell 50. If it is adjacent (step D1: YES), the determination cell 50 is set as the determination cell (step D3).

次いで、候補マスの周囲の8つのマス40を抽出し(ステップD5)、抽出したこれら8つのマス40について、未確定マスの連結/非連結を判定する(ステップD7)。非連結と判定したならば(ステップD9:NO)、文字盤30における全ての未確定マスは非連結であり、従って、順路の完成は“不可能”と判定する(ステップD11)。一方、連結していると判定したならば(ステップD9:YES)、文字盤30における全ての未確定マスは連結しており、袋小路マスに基づく判定を行う。   Next, eight cells 40 around the candidate cell are extracted (step D5), and the connection / disconnection of the undefined cell is determined for the extracted eight cells 40 (step D7). If it is determined that the connection is not connected (step D9: NO), it is determined that all unconfirmed cells on the dial 30 are not connected, and therefore the completion of the route is “impossible” (step D11). On the other hand, if it determines with connecting (step D9: YES), all the undecided squares in the dial 30 are connected, and the determination based on a cover alley square is performed.

すなわち、確定した順路の先頭マスの上下左右に隣接する4つのマス40を抽出し(ステップD13)、抽出した4つのマス40のうち、未確定マスそれぞれについて、候補マスに仮順路を伸延することで新たに袋小路マスとなるか否かを判定する(ステップD15)。   That is, four squares 40 adjacent to the top and bottom, right and left of the head cell of the confirmed route are extracted (step D13), and the provisional route is extended to the candidate cell for each of the uncertain cells among the extracted four cells 40. In step D15, it is determined whether or not a new block path mass is obtained.

何れかの未確定マスが新たに袋小路マスとなるならば(ステップD17:YES)、該新たな袋小路マスを含めた、ここまでの袋小路マスの累計を計数する。そして、袋小路マスの累計が「2」以上ならば(ステップD19:YES)、順路の完成が“不可能”と判定する(ステップD23)。   If any of the unconfirmed squares becomes a new dead-blade square (step D17: YES), the cumulative total of the dead-blade squares up to this point including the new dead-blade square is counted. Then, if the total of the short path mass is “2” or more (step D19: YES), it is determined that the completion of the normal path is “impossible” (step D23).

一方、袋小路マスの累計が「1」ならば(ステップD19:NO)、該新たな袋小路マスのパリティが終点マスのパリティに一致するか否かを判定する。パリティが一致するならば(ステップD21:YES)、順路の完成は“可能”と判定し(ステップD25)、一致しないならば(ステップD21:NO)、順路の完成は“不可能”と判定する(ステップD23)。   On the other hand, if the cumulative total of the short path squares is “1” (step D19: NO), it is determined whether or not the parity of the new round path square matches the parity of the end point square. If the parity matches (step D21: YES), the completion of the route is determined as “possible” (step D25), and if not (step D21: NO), the completion of the route is determined as “impossible”. (Step D23).

一方、何れの未確定マスも袋小路マスにならないならば(ステップD17:NO)、順路の完成は“可能”と判定する(ステップD25)。以上の処理を行うと、順路完成可否判定処理を終了する。   On the other hand, if none of the unconfirmed squares becomes a dead-line square (step D17: NO), it is determined that the completion of the normal route is “possible” (step D25). When the above processing is performed, the normal route completion determination processing ends.

順路完成可否判定処理の結果、順路を完成可能と判定したならば(ステップC23:YES)、候補マスまで仮順路を1マス分延ばし、候補マスを確定マスとする(ステップC25)。次いで、順路が完成したか否かを判定し、完成していないならば(ステップC27:NO)、ステップC17に戻り、同様の処理を繰り返す。一方、順路が完成したならば(ステップC27:YES)、順路生成処理を終了する。   If it is determined that the route can be completed as a result of the route completion determination process (step C23: YES), the temporary route is extended by one cell to the candidate cell, and the candidate cell is set as the confirmed cell (step C25). Next, it is determined whether or not the route is completed. If it is not completed (step C27: NO), the process returns to step C17 and the same processing is repeated. On the other hand, if the route is completed (step C27: YES), the route generation process ends.

順路生成処理が終了すると、ゲーム演算部210は、文字盤30に決定された配列順序で出題文字列の各文字を配置して回答画面W2を生成し表示させる(ステップA7)。そして、プレーヤによって回答された文章(文字の並び)と出題文字列とが一致するか否かによって正解/不正解を判定する、回答に対する答え合わせを行う(ステップA9)。その後、出題を終了するか否かを判定し、終了しないならば(ステップA11:NO)、ステップA1に戻り、次の出題について同様の処理を繰り返す。一方、出題を終了するならば(ステップA13:YES)、ゲーム処理を終了する。   When the route generation process ends, the game calculation unit 210 generates and displays the answer screen W2 by arranging the characters of the question character string in the arrangement order determined on the dial 30 (step A7). Then, the correct answer / incorrect answer is determined based on whether the sentence (character sequence) answered by the player matches the question character string or not, and the answer is matched (step A9). Thereafter, it is determined whether or not to end the question, and if it does not end (step A11: NO), the process returns to step A1, and the same processing is repeated for the next question. On the other hand, if the question is finished (step A13: YES), the game process is finished.

[作用・効果]
このように、本実施形態によれば、一筆書きの要領で文字を繋いで意味のある文章とする文字パズルゲームにおいて用いられる、文字盤30における出題文字列の各文字の配列順路を生成することができる。文字盤30における順路は、先ず、始点マスを決定し、この始点マスから1マスずつ順路を延ばしてゆくことで生成される。このとき、確定した順路の先頭マスに隣接する未確定マスのうちから次の順路の候補マスを選択する。そして、この候補マスに仮順路を伸延した場合に、袋小路マスができるか否か、未確定マスが連結しているか否かをもとに、順路が完成するか否かを判定し、可能と判定すると、候補マスを新たな順路と確定することで順路を1マス分延ばす。
[Action / Effect]
As described above, according to the present embodiment, it is possible to generate an arrangement path of each character of the question character string on the dial 30 used in a character puzzle game in which characters are connected in a manner of one-stroke writing to make a meaningful sentence. Can do. The route in the dial 30 is generated by first determining a start point cell and extending the route one by one from the start point cell. At this time, the candidate cell of the next route is selected from the unconfirmed cells adjacent to the head cell of the confirmed route. Then, when the candidate route is extended to the candidate route, it is determined whether the route is completed based on whether or not a dead-end route is formed and whether or not an undefined block is connected. When it is determined, the route is extended by one cell by determining the candidate cell as a new route.

[変形例]
本発明の適用は、上述の実施形態に限定されることなく、本発明の趣旨を逸脱しない範囲で適宜変更可能なのは勿論である。
[Modification]
The application of the present invention is not limited to the above-described embodiment, and it is needless to say that the application can be appropriately changed without departing from the spirit of the present invention.

(A)難易度
例えば、出題の難易度を考慮して順路を生成することにしても良い。
(A) Level of difficulty For example, the route may be generated in consideration of the level of difficulty of the questions.

(A−1)屈曲部の数
具体的には、順路における屈曲部の数を難易度に応じた数とする。意味のある文字列は、屈曲部の数が多いほど見つけ出し難い、すなわち難易度が高い傾向がある。例えば、図26は、同じ36文字の文字列「はったつしたこうきあつがたいへいようをとうほくとうにすすんでいるようです」を、異なる配置順で配置した例である。図26(a)では、屈曲部の数が少なく、10箇所で屈曲している。一方、同図(b)では、屈曲部の数が多く、27箇所で屈曲している。これらを比較すると、屈曲部の数が少ないほうが、意味のある文字列を見つけ出し易い傾向にあるといえる。
(A-1) Number of bent portions Specifically, the number of bent portions in the normal route is set to a number according to the degree of difficulty. A meaningful character string is more difficult to find as the number of bent portions increases, that is, the degree of difficulty tends to be higher. For example, FIG. 26 shows an example in which the same character string of 36 characters “It seems like you've been working hard” is arranged in a different arrangement order. In FIG. 26 (a), the number of bent portions is small and bent at 10 points. On the other hand, in the same figure (b), there are many bending parts and it bends in 27 places. When these are compared, it can be said that the smaller the number of bent portions, the easier it is to find a meaningful character string.

このため、図27に示すように、候補マスを選択する際に、難易度を高くしたい(難しくしたい)場合には、確定した順路の先頭マス(最新の確定マス)に隣接する未確定マスのうち、確定した順路の先頭マスとその1つ前のマスとを結ぶ直線方向に無い未確定マスを優先的に選択して屈曲部を多くするようにし、逆に、難易度を低くしたい(易しくしたい)場合には、この直線方向に有る未確定マスを優先的に選択して屈曲部を少なくするようにする。   For this reason, as shown in FIG. 27, when selecting a candidate cell, if the degree of difficulty is to be increased (it is desired to be difficult), an unconfirmed cell adjacent to the first cell (the latest confirmed cell) of the confirmed route is displayed. Among them, the undecided mass that is not in the straight line connecting the leading square of the confirmed route and the previous square is preferentially selected to increase the number of bent parts, and conversely, the difficulty level should be lowered (easily If it is desired to reduce the bent portion, the uncertain mass in the linear direction is preferentially selected.

同図では、マス40−i〜40−kが確定マスであり、確定した順路の先頭マス40−kに隣接する未確定マス40−g,40−l,40−oのうちから、次の候補マスを選択する場合を示している。この場合、最新の確定マス40−kとその1つ前の確定マス40−jとを結ぶ直線方向は「左右方向(横方向)」となる。そして、難易度を低くしたい場合には、この直線方向に沿った方向に配置されているマス40−lを優先的に選択し、逆に、難易度を高くしたい場合には、この直線方向に沿った方向に配置されていないマス40−g,40−oを優先的に選択する。   In the figure, squares 40-i to 40-k are final squares, and the next squares 40-g, 40l, and 40-o adjacent to the leading square 40-k of the confirmed route are the following. A case where a candidate cell is selected is shown. In this case, the linear direction connecting the latest confirmed cell 40-k and the immediately preceding confirmed cell 40-j is the “left-right direction (lateral direction)”. Then, when it is desired to lower the difficulty level, the cell 40-1 arranged in the direction along the linear direction is preferentially selected. On the contrary, when the difficulty level is desired to be increased, the square direction is selected. The squares 40-g and 40-o that are not arranged in the along direction are preferentially selected.

(A−2)順路の方向
また、日本語の文章では、左から右方向へ、或いは、上から下方向へ並んだ文字列のほうが読み易い傾向がある。例えば、図28は、同じ9文字の文字列「にじゅういっせいき」を異なる配置順で配置した例である。同図(a)では、左上の文字を先頭文字として、ここから右方向に向かう順路で配置されている。一方、同図(b)では、右下の文字を先頭文字として、ここから上方向に向かう順路で配列されている。これらを比較すると、左から右方向へ、或いは、上から下方向へ文字が並んだほうが、意味のある文字列を見つけ出し易いといえる。
(A-2) The direction of the route In Japanese sentences, the character strings arranged from left to right or from top to bottom tend to be easier to read. For example, FIG. 28 is an example in which the same nine-character string “Niju Issei” is arranged in a different arrangement order. In FIG. 5A, the upper left character is the first character, and the characters are arranged in a normal direction from here to the right. On the other hand, in FIG. 5B, the lower right character is the first character, and the characters are arranged in a forward direction from here. Comparing these, it can be said that it is easier to find a meaningful character string when characters are arranged from left to right or from top to bottom.

このため、生成された順路において上方向に進む回数を数え、それが一定以上の数となっている場合には、難易度が高い順路であると判断する。生成された順路が希望する難易度に達していない場合には、上方向に進む回数が指定回数以上になるまで順路を生成し直すことで、必要な難易度の順路を得ることができる。   For this reason, the number of times of proceeding upward in the generated route is counted, and if it is a certain number or more, it is determined that the route has a high degree of difficulty. When the generated route does not reach the desired difficulty level, the route with the necessary difficulty level can be obtained by regenerating the route until the number of times of upward movement reaches the specified number of times or more.

(B)基礎文字盤の組合せ
また、順路の他の生成方法として、所望の文字盤30よりもマス数が少ない基礎文字盤(基礎配列盤)を複数用意し、これを組み合わせることで1つの文字盤30を生成することにしても良い。
(B) Combination of basic dials As another method of generating a regular route, a plurality of basic dials (basic arrangement boards) having a smaller number of cells than the desired dial 30 are prepared and combined to form one character. The board 30 may be generated.

具体的には、例えば、図29に示すように、所望の文字盤30を分割した複数の基礎文字盤60を生成する。これらの基礎文字盤60には、例えば、図30,図31に示すように、複数の順路が定められる。順路は、該基礎文字盤60と他の基礎文字盤60と組み合わせたときに、始点マス及び終点マスが、隣接する他の基礎文字盤60の始点マス及び終点マスと隣り合うマスとなるように定められる。そして、例えば、図32に示すように、これらの基礎文字盤60を組み合わせることで、所望のマス数の文字盤30を生成する。このとき、基礎文字盤60を回転或いは反転させて、組み合わせても良い。   Specifically, for example, as shown in FIG. 29, a plurality of basic dials 60 obtained by dividing a desired dial 30 are generated. In these basic dials 60, for example, as shown in FIGS. 30 and 31, a plurality of routes are defined. When the basic dial 60 is combined with another basic dial 60, the normal route is such that the start point cell and the end point cell are adjacent to the start point cell and the end point cell of the other adjacent basic dial 60. Determined. Then, for example, as shown in FIG. 32, a dial 30 having a desired number of squares is generated by combining these basic dials 60. At this time, the basic dial 60 may be combined by rotating or reversing.

図29では、文字盤30は、4つの領域32A〜32Dに四分割されている。領域32A,32Dは同一形状であり、領域32B,32Cは同一形状である。そして、領域32A,32Dと同一形状の基礎文字盤60Aについては、図30に示すように、2種類の順路を設定した基礎文字盤60A−1,60A−2を生成する。また、領域32B,32Cと同一形状の基礎文字盤60Bについては、図31に示すように、2種類の順路を設定した基礎文字盤60B−1,60B−2を生成する。   In FIG. 29, the dial 30 is divided into four regions 32A to 32D. The regions 32A and 32D have the same shape, and the regions 32B and 32C have the same shape. Then, for the basic dial 60A having the same shape as the areas 32A and 32D, as shown in FIG. 30, basic dials 60A-1 and 60A-2 in which two types of routes are set are generated. For the basic dial 60B having the same shape as the regions 32B and 32C, as shown in FIG. 31, basic dials 60B-1 and 60B-2 having two types of routes are generated.

基礎文字盤60における順路は、全てのマスを1回ずつ通り、始点マス或いは終点マスとなる2つの始/終点マス62を繋ぐように設定される。この始/終点マスは、基礎文字盤60の周部のマスであって、他の基礎文字盤60と組み合わせたときに該他の基礎文字盤60の始/終点マス62と隣接するマスに設定される。   The normal path in the basic dial 60 is set so as to pass through all the squares once and connect two start / end squares 62 serving as start or end squares. This start / end point cell is a cell in the periphery of the basic dial 60, and is set to a cell adjacent to the start / end point cell 62 of the other basic dial 60 when combined with another basic dial 60. Is done.

そして、基礎文字盤60A,60Bを組み合わせることで、所望の文字盤30を生成する。例えば、図32は、領域32Aに基礎文字盤60A−1を配置し、領域32Bに基礎文字盤60B−1を180度回転させて配置し、領域32Cに基礎文字盤60B−1を配置し、領域32Dに基礎文字盤60A−1を180度回転させて配置することで、文字盤30の順路を生成した例である。   And the desired dial 30 is produced | generated by combining the basic dials 60A and 60B. For example, in FIG. 32, the basic dial 60A-1 is arranged in the area 32A, the basic dial 60B-1 is rotated by 180 degrees in the area 32B, and the basic dial 60B-1 is arranged in the area 32C. This is an example in which the route of the dial 30 is generated by arranging the basic dial 60A-1 by rotating it 180 degrees in the region 32D.

このように、順路が設定された基礎文字盤60を組み合わせることで、所望の文字盤30における順路が生成される。この順路は閉順路となるので、該閉順路に沿って隣り合う2つのマスのうち、一方を始点マスとし他方を終点マスとすることで、1本の順路とすることができる。   In this way, by combining the basic dial 60 in which the route is set, the route on the desired dial 30 is generated. Since this route is a closed route, one of two adjacent cells along the closed route can be a single route by setting one as a start point and the other as an end point.

また、基礎文字盤60を組み合わせて生成した閉順路が左右対称或いは上下対称でない場合、閉順路を左右反転或いは上下反転させてから順路を生成することで、更に異なる順路を生成することができる。また、閉順路が回転対称でない場合も同様に、閉順路を回転させてから順路を生成しても良い。   Further, when the closed route generated by combining the basic dial 60 is not left-right symmetric or vertically symmetric, a different route can be generated by generating the route after the closed route is horizontally reversed or vertically reversed. Similarly, when the closed route is not rotationally symmetric, the route may be generated after the closed route is rotated.

更に、複数の基礎文字盤60を組み合わせて閉順路を生成するのではなく、予めいくつかの閉順路を用意しておき、これらのうちから一つを選択して順路を生成することにしても良い。これにより、より高速に順路の生成を行うことができる。この場合も同様に、閉順路の反転や回転を行うことで、更に異なる順路を生成することができる。   Furthermore, instead of combining a plurality of basic dials 60 to generate a closed route, several closed routes are prepared in advance, and one of these is selected to generate a route. good. As a result, the route can be generated at a higher speed. In this case as well, a different route can be generated by reversing or rotating the closed route.

(C)紙に印刷出力
また、生成した問題文章の順路(各文字の配列順)の出力方法として、回答画面W2としてディスプレイ等に表示させるではなく、紙に印刷出力することにしても良い。
(C) Print output on paper Further, as an output method of the route of the generated problem sentence (arrangement order of each character), the answer screen W2 may be printed on paper instead of being displayed on a display or the like.

(D)文字種別
また、上述の実施形態では、出題文字列を構成する各文字を「ひらがな」としたが、例えば、カタカナや漢字、数字、演算記号等といったこれ以外の文字種別とすることもできる。勿論、複数の文字種別を用いた出題文字列とすることもできる。例えば、数字及び演算記号を用いた出題文字列として、九九や「12×12=144」といった数式がある。
(D) Character type In the above-described embodiment, each character constituting the question character string is “Hiragana”, but other character types such as katakana, kanji, numbers, arithmetic symbols, etc. may be used. it can. Of course, it can be a question character string using a plurality of character types. For example, there are mathematical formulas such as multiplication table and “12 × 12 = 144” as question character strings using numbers and operation symbols.

更に、点字にも適用可能である。この場合、例えば、一般的な6点式点字においては、濁音や半濁音、拗音、数字といった「2字」で表記する文字が含まれるが、出題文字列としてこれらの文字を含まない文字列を選択することで、同様に適用可能である。   Furthermore, it is applicable also to Braille. In this case, for example, a general six-point Braille includes characters represented by “two characters” such as muddy sounds, semi-voiced sounds, stuttering, and numbers. By selecting, it can be similarly applied.

(E)適用するゲーム
また、本実施形態における順路の生成方法は、文字パズルゲームのみではなく、他のゲームにも適用可能である。例えば、プレーヤキャラクタを定められたルート上で移動させるアクションゲームにおけるルートの作成や、ダンジョンの自動生成等に適用可能である。
(E) Game to be applied Further, the route generation method in the present embodiment is applicable not only to the character puzzle game but also to other games. For example, the present invention can be applied to creation of a route in an action game for moving a player character on a predetermined route, automatic generation of a dungeon, and the like.

(F)適用するゲーム装置
また、上述の実施形態では、携帯型ゲーム装置に適用した場合を説明したが、業務用ゲーム装置や家庭用ゲーム装置にも同様に適用可能である。更には、ゲーム装置に限らず、アプリケーションソフトが実行可能な携帯電話機やコンパクトデジタルカメラ、音楽プレーヤ、パソコン、カーナビと言った電子機器も、プログラムを実行可能なコンピュータを内蔵している、或いはコンピュータそのものといえるため、本発明を実現する一形態とすることができる。
(F) Game device to be applied In addition, in the above-described embodiment, the case where the game device is applied to a portable game device has been described. However, the present invention can also be applied to an arcade game device and a home game device. Furthermore, not only game devices but also electronic devices such as mobile phones, compact digital cameras, music players, personal computers, and car navigation systems that can execute application software have built-in computers that can execute programs, or the computers themselves. Therefore, it can be set as one form which implement | achieves this invention.

1000 携帯型ゲーム装置
110 操作入力部、120 撮像部
130 画像表示部、140 音声出力部、150 通信部
200 処理部
210 ゲーム演算部、212 順路生成部
230 画像生成部、240 音声生成部
300 記憶部
310 ゲームプログラム、312 順路生成プログラム
320 出題文字列群データ、330 撮像画像データ
340 生成文字盤データ、360 生成順路データ
10 文字ブロック
30 文字盤、40 マス、50 判定用マス
DESCRIPTION OF SYMBOLS 1000 Portable game device 110 Operation input part, 120 Image pick-up part 130 Image display part, 140 Sound output part, 150 Communication part 200 Processing part 210 Game operation part, 212 Path generation part 230 Image generation part, 240 Sound generation part 300 Storage part 310 game program, 312 route generation program 320 question character string group data, 330 captured image data 340 generation dial data, 360 generation route data 10 character block 30 dial, 40 square, 50 judgment square

Claims (15)

文字、数字、記号又はこれらの組合せ(以下「文字等」という。)の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるために、前記文字等が割り当てられていないマスの配列盤に対して、正答順路となる前記文字等の割り当て順路を作成させるようコンピュータに演算処理させるためのプログラムであって、
前記配列盤のうち、前記順路の始点マスを選択し、確定マスとする始点マス選択手段、
最新の確定マスに隣接する未確定マスの中から候補マスを選択する候補マス選択手段、
前記候補マスに仮順路を伸延した場合の順路完成の可否を判定する可否判定手段、
前記可否判定手段により可と判定された場合に前記候補マスを最新の確定マスとして仮順路を1マス分延伸する延伸手段、
として前記コンピュータを機能させるとともに、前記候補マス選択手段、前記可否判定手段、及び前記延伸手段を繰り返し機能させて前記配列盤の全てのマスが確定マスとなった場合の前記仮順路を前記正答順路とさせるためのプログラム。
A route that passes only once through the squares that are arranged in the vertical and horizontal directions to which letters, numbers, symbols, or combinations thereof (hereinafter referred to as “characters”) are meaningfully arranged. A program for causing a computer to perform calculation processing to create an assignment route for the character, etc., which becomes a correct answer route for a square array board to which the character, etc. is not assigned, for use in a game to be found by a player There,
From the array board, selecting a starting point mass of the forward route, a starting point mass selecting means as a definite cell,
Candidate mass selection means for selecting candidate masses from among unestablished masses adjacent to the latest confirmed mass,
Availability determination means for determining whether or not a route is completed when a temporary route is extended to the candidate mass;
An extension means for extending the temporary route by one square with the candidate mass as the latest confirmed mass when it is determined as acceptable by the availability determination means;
And the function of the computer as well as the candidate mass selection means, the availability determination means, and the extension means are repeatedly functioned, and the temporary route in the case where all the squares of the array board become a definite mass, the correct answer route Program to make it.
前記配列盤の各マスを配置位置に応じて市松模様状に互い違いにマスを選択することで2つのグループにグループ分けするグループ分け手段として前記コンピュータを機能させ、
前記選択手段が、前記2つのグループそれぞれの所属マス数が異なる場合、多い方のグループに所属するマスの中から始点マスを選択するように前記コンピュータを機能させる、
ための請求項1に記載のプログラム。
The computer functions as a grouping means for grouping into two groups by selecting the cells alternately in a checkered pattern according to the arrangement positions of the cells on the array board,
The selection means causes the computer to function so as to select a start point cell from among cells belonging to the larger group when the number of cells belonging to the two groups is different;
A program according to claim 1 for.
前記可否判定手段が、
前記候補マスに仮順路を伸延することで所定の袋小路条件を満たすこととなる未確定マスを検出する袋小路検出手段と、
前記袋小路検出手段の検出結果を用いて前記順路完成の可否を判定する袋小路判定手段と、
を有するように前記コンピュータを機能させるための請求項1又は2に記載のプログラム。
The availability determination means is
A dead end detection means for detecting an indeterminate square that will satisfy a predetermined dead end condition by extending a provisional route to the candidate mass;
Using the detection result of the bag path detection means, the path to determine whether or not the route is completed,
The program according to claim 1 or 2 for causing the computer to function so as to have the following.
前記袋小路判定手段が、前記袋小路検出手段の検出結果を含めて前記袋小路条件を満たす未確定マスが2以上存在することとなる場合に、前記順路完成を不可と判定する手段を有する、
ように前記コンピュータを機能させるための請求項3に記載のプログラム。
The bag path determination means has means for determining that the forward path completion is impossible when there are two or more uncertain masses that satisfy the bag path condition including the detection result of the bag path detection means.
The program according to claim 3 for causing the computer to function as described above.
前記配列盤の各マスを配置位置に応じて市松模様状に互い違いにマスを選択することで2つのグループにグループ分けするグループ分け手段として前記コンピュータを機能させ、
前記袋小路判定手段が、前記袋小路検出手段により検出された未確定マスが、前記始点マスと同じグループに属するか否かに応じて前記順路完成の可否を判定する手段を有する、
ように前記コンピュータを機能させるための請求項3又は4に記載のプログラム。
The computer functions as a grouping means for grouping into two groups by selecting the cells alternately in a checkered pattern according to the arrangement positions of the cells on the array board,
The dead path determination means has means for determining whether or not the forward path is completed depending on whether or not the uncertain mass detected by the dead path detection means belongs to the same group as the start point mass,
The program according to claim 3 or 4 for causing the computer to function as described above.
前記可否判定手段が、前記候補マスに仮順路を伸延することで、未確定マス全てが所定の連接条件を満たさなくなる場合に、前記順路完成を不可と判定する連接性判定手段を有する、
ように前記コンピュータを機能させるための請求項1〜5の何れか一項に記載のプログラム。
The availability determination means includes a connectivity determination means for determining that the route completion is impossible when all uncertain masses do not satisfy a predetermined connection condition by extending a provisional route to the candidate mass.
The program according to any one of claims 1 to 5 for causing the computer to function as described above.
前記連接性判定手段が、
前記配列盤の周囲に仮想マスを配置する仮想マス配置手段と、
最新の確定マスが前記仮想マスの何れかと隣接した場合に全ての仮想マスを仮想確定マスとする仮想マス確定手段と、
を有し、前記候補マスの周囲8マスに含まれる未確定マス及び仮想未確定マスが前記連接条件を満たさなくなる場合に前記順路完成を不可と判定する、
ように前記コンピュータを機能させるための請求項6に記載のプログラム。
The connectivity determination means includes
Virtual mass arrangement means for arranging a virtual mass around the array board;
Virtual mass confirmation means for setting all virtual masses as virtual confirmed masses when the latest confirmed mass is adjacent to any of the virtual masses;
Determining that the route completion is impossible when the uncertain mass and the virtual uncertain mass included in the eight cells around the candidate mass do not satisfy the connection condition.
The program according to claim 6 for causing the computer to function as described above.
前記候補マス選択手段が、最新の確定マスに隣接する未確定マスのうち、最新の確定マスと、その1つ前に確定した確定マスとを結ぶ直線方向に無い未確定マスを優先的に候補マスとして選択するように前記コンピュータを機能させるための請求項1〜7の何れか一項に記載のプログラム。   The candidate mass selection means preferentially selects an unconfirmed mass that is not in a straight line direction connecting the latest confirmed mass and the confirmed mass determined immediately before the unconfirmed mass adjacent to the latest confirmed mass. The program as described in any one of Claims 1-7 for functioning the said computer so that it may select as a cell. 前記候補マス選択手段が、最新の確定マスに隣接する未確定マスのうち、最新の確定マスと、その1つ前に確定した確定マスとを結ぶ直線方向に有る未確定マス、及び、直線方向に無い未確定マスの何れを優先的に候補マスとして選択するかを、所与の難易度に応じて可変する手段を有するように前記コンピュータを機能させるための請求項1〜7の何れか一項に記載のプログラム。   The candidate mass selection means has an unconfirmed mass in a straight direction connecting the latest confirmed mass and the confirmed mass confirmed immediately before the unconfirmed mass adjacent to the latest confirmed mass, and the linear direction The computer according to any one of claims 1 to 7, for causing the computer to function so as to have a means for varying which of the unconfirmed cells not present in the list is preferentially selected as a candidate cell according to a given difficulty level. The program described in the section. 前記候補マス選択手段が、最新の確定マスに隣接する未確定マスのうち、最新の確定マスの右又は下に位置する未確定マス、及び、左又は上に位置する未確定マスの何れを優先的に候補マスとして選択するかを、所与の難易度に応じて可変する手段を有するように前記コンピュータを機能させるための請求項1〜7の何れか一項に記載のプログラム。   The candidate mass selection means gives priority to the unconfirmed mass located to the right or below the latest confirmed mass and the unconfirmed mass located to the left or above among the unconfirmed masses adjacent to the latest confirmed mass. The program according to any one of claims 1 to 7, for causing the computer to function so as to have means for changing whether to select a candidate cell according to a given difficulty level. 文字等の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるための前記マスの出題用の配列盤を作成させるようコンピュータに演算処理させるためのプログラムであって、
始点マス及び終点マスが周囲何れかのマスとされて割り当て順路が予め定められたN個(Nは2以上)の基礎配列盤を、i番目(i=1〜(N−1))の基礎配列盤の終点マスとi+1番目の基礎配列盤の始点マスとが隣接するように配置構成することで1番目の基礎配列盤の始点マスからN番目の基礎配列盤の終点マスまでを正答順とする前記出題用の配列盤を作成させる配置構成手段として前記コンピュータを機能させるためのプログラム。
For use in a game in which the player finds a route that passes through a cell that has been assigned a character or the like and is connected in the vertical and horizontal directions only once so as to form a meaningful sequence of characters. A program for causing a computer to perform calculation processing to create an array board,
N (N is 2 or more) basic array boards whose allocation route is determined in advance with the start point cell and the end point cell being one of the surrounding cells, the i-th (i = 1 to (N−1)) basis By arranging the end point cell of the array board and the start point cell of the (i + 1) th basic array board adjacent to each other, the order from the start point mass of the first basic array board to the end point mass of the Nth basic array board is in the correct answer order. A program for causing the computer to function as an arrangement configuration means for creating the layout board for the questions.
文字等の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるために、前記マスの配置位置が決定され前記文字等が割り当てられていない前記マスの配列盤の作成及び当該配列盤に対する正答順路となる前記文字等の割り当て順路の作成をコンピュータに演算処理させるためのプログラムであって、
前記マスを配列することにより前記配列盤の候補となる配列盤候補を作成する配列盤候補作成手段、
前記配列盤候補の各マスを配置位置に応じて市松模様状に互い違いにマスを選択することで2つのグループにグループ分けした場合に、当該2つのグループそれぞれの所属マス数が2以上異なるか否かで前記配列盤候補の良否を判定する配列盤候補良否判定手段、
前記配列盤候補良否判定手段により良と判定されるまで前記配列盤候補作成手段に繰り返し再作成させる再作成制御手段、
として前記コンピュータを機能させるとともに、前記配列盤候補良否判定手段により良と判定された配列盤候補を配列盤として請求項1〜10の何れか一項に記載のプログラムを実行させることで前記正答順路を作成させるように前記コンピュータを機能させるためのプログラム。
In order to use in a game that allows the player to find a route that passes only once through the squares that are allocated in the vertical and horizontal directions so as to form a meaningful sequence of letters, etc. Is a program for causing a computer to calculate the creation of an array board of the cells to which the character or the like is not assigned and the creation of the assignment route of the letters, etc., which is the correct answer route for the array board,
An array board candidate creating means for creating an array board candidate to be a candidate for the array board by arranging the cells;
Whether or not the number of assigned squares of each of the two groups differs by two or more when each square of the array board candidates is grouped into two groups by alternately selecting squares in a checkered pattern according to the arrangement position The sequence board candidate pass / fail judgment means for judging pass / fail of the sequence board candidate in
Re-creation control means for repeatedly re-creating the array board candidate creation means until it is determined to be good by the array board candidate quality determination means,
The correct answer route by causing the computer to function as the array board candidate determined as good by the array board candidate pass / fail determining means and executing the program according to claim 1 as an array board. A program for causing the computer to function so as to create a program.
請求項1〜12の何れか一項に記載のプログラムを記憶したコンピュータ読み取り可能な情報記憶媒体。   The computer-readable information storage medium which memorize | stored the program as described in any one of Claims 1-12. 文字等の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるために、前記文字等が割り当てられていないマスの配列盤に対して、正答順路となる前記文字等の割り当て順路を作成する順路作成装置であって、
前記配列盤のうち、前記順路の始点マスを選択し、確定マスとする始点マス選択手段と、
最新の確定マスに隣接する未確定マスの中から候補マスを選択する候補マス選択手段と、
前記候補マスに仮順路を伸延した場合の順路完成の可否を判定する可否判定手段と、
前記可否判定手段により可と判定された場合に前記候補マスを最新の確定マスとして仮順路を1マス分延伸する延伸手段と、
を備え、前記候補マス選択手段、前記可否判定手段、及び前記延伸手段を繰り返し機能させて前記配列盤の全てのマスが確定マスとなった場合の前記仮順路を前記正答順路とする順路作成装置。
The character or the like is assigned for use in a game that allows the player to find a route that passes once through the squares that are assigned and connected in the vertical and horizontal directions so that a meaningful sequence of characters or the like is obtained. A route creation device for creating an assignment route for the letters, etc., which will be a correct answer route, for an array board of cells that are not provided,
From the array board, selecting a starting point mass of the route, a starting point mass selecting means as a fixed mass,
Candidate mass selection means for selecting candidate masses from uncertain masses adjacent to the latest confirmed mass;
Availability determination means for determining whether or not a route is completed when a temporary route is extended to the candidate mass;
An extension means for extending the temporary route by 1 square with the candidate mass as the latest confirmed mass when it is determined as acceptable by the availability determination means;
And a route creation device in which the candidate route selection unit, the availability determination unit, and the extension unit are repeatedly functioned so that the temporary route when the all squares of the array board are determined squares is the correct route. .
文字等の意味のある並びとなるように、文字等が割り当てられて縦横方向に連接配置されたマスを1度だけ通過する順路をプレーヤに見出させるゲームに用いるための前記マスの出題用の配列盤を作成する配列盤作成装置であって、
始点マス及び終点マスが周囲何れかのマスとされて割り当て順路が予め定められたN個(Nは2以上)の基礎配列盤を、i番目(i=1〜(N−1))の基礎配列盤の終点マスとi+1番目の基礎配列盤の始点マスとが隣接するように配置構成することで1番目の基礎配列盤の始点マスからN番目の基礎配列盤の終点マスまでを正答順とする前記出題用の配列盤を作成する配列盤作成装置。
For use in a game in which the player finds a route that passes through a cell that has been assigned a character or the like and is connected in the vertical and horizontal directions only once so as to form a meaningful sequence of characters. An array board creation device for creating an array board,
N (N is 2 or more) basic array boards whose allocation route is determined in advance with the start point cell and the end point cell being one of the surrounding cells, the i-th (i = 1 to (N−1)) basis By arranging the end point cell of the array board and the start point cell of the (i + 1) th basic array board adjacent to each other, the order from the start point mass of the first basic array board to the end point mass of the Nth basic array board is in the correct answer order. An arrangement board creation device for creating the arrangement board for the questions.
JP2010079544A 2010-03-30 2010-03-30 Program, information storage medium, route creating device, and arrangement board creating device Pending JP2011206445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010079544A JP2011206445A (en) 2010-03-30 2010-03-30 Program, information storage medium, route creating device, and arrangement board creating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010079544A JP2011206445A (en) 2010-03-30 2010-03-30 Program, information storage medium, route creating device, and arrangement board creating device

Publications (1)

Publication Number Publication Date
JP2011206445A true JP2011206445A (en) 2011-10-20

Family

ID=44938208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010079544A Pending JP2011206445A (en) 2010-03-30 2010-03-30 Program, information storage medium, route creating device, and arrangement board creating device

Country Status (1)

Country Link
JP (1) JP2011206445A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011206444A (en) * 2010-03-30 2011-10-20 Namco Bandai Games Inc Program, information storage medium and game device
KR101325487B1 (en) * 2013-07-10 2013-11-07 한경대학교 산학협력단 Puzzle apparatus for a blind person
JP5514944B1 (en) * 2013-10-18 2014-06-04 株式会社 ディー・エヌ・エー Game providing system, game providing program, and game providing method
WO2014155414A1 (en) * 2013-03-25 2014-10-02 株式会社スクウェア・エニックス Video game processing device and video game processing program
WO2014200059A1 (en) * 2013-06-14 2014-12-18 株式会社ディー・エヌ・エー Game providing system, game providing program and game providing method
WO2015005644A1 (en) * 2013-07-10 2015-01-15 한경대학교 산학협력단 Puzzle apparatus for visually impaired
CN105283232A (en) * 2013-06-14 2016-01-27 株式会社得那 Game providing system, game providing program and game providing method
KR101620603B1 (en) 2014-07-03 2016-05-13 한경대학교 산학협력단 Educational puzzle apparatus for a blind person
JP6298915B1 (en) * 2017-04-27 2018-03-20 株式会社コロプラ GAME PROGRAM, METHOD, AND INFORMATION PROCESSING DEVICE
JP2018183566A (en) * 2018-02-22 2018-11-22 株式会社コロプラ Game program, method, and information processor

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011206444A (en) * 2010-03-30 2011-10-20 Namco Bandai Games Inc Program, information storage medium and game device
US10434406B2 (en) 2013-03-25 2019-10-08 Square Enix Co., Ltd. Video game processing apparatus and video game processing program product
JPWO2014155414A1 (en) * 2013-03-25 2017-02-16 株式会社スクウェア・エニックス Video game processing apparatus and video game processing program
WO2014155414A1 (en) * 2013-03-25 2014-10-02 株式会社スクウェア・エニックス Video game processing device and video game processing program
KR20150138414A (en) * 2013-06-14 2015-12-09 가부시키가이샤 디에누에 Game providing system, game providing program and game providing method
WO2014200059A1 (en) * 2013-06-14 2014-12-18 株式会社ディー・エヌ・エー Game providing system, game providing program and game providing method
CN105283232A (en) * 2013-06-14 2016-01-27 株式会社得那 Game providing system, game providing program and game providing method
KR101644550B1 (en) 2013-06-14 2016-08-01 가부시키가이샤 디에누에 Game providing system, game providing program and game providing method
WO2015005644A1 (en) * 2013-07-10 2015-01-15 한경대학교 산학협력단 Puzzle apparatus for visually impaired
KR101325487B1 (en) * 2013-07-10 2013-11-07 한경대학교 산학협력단 Puzzle apparatus for a blind person
JP5514944B1 (en) * 2013-10-18 2014-06-04 株式会社 ディー・エヌ・エー Game providing system, game providing program, and game providing method
KR101620603B1 (en) 2014-07-03 2016-05-13 한경대학교 산학협력단 Educational puzzle apparatus for a blind person
JP6298915B1 (en) * 2017-04-27 2018-03-20 株式会社コロプラ GAME PROGRAM, METHOD, AND INFORMATION PROCESSING DEVICE
JP2018183543A (en) * 2017-04-27 2018-11-22 株式会社コロプラ Game program, method, and information processor
JP2018183566A (en) * 2018-02-22 2018-11-22 株式会社コロプラ Game program, method, and information processor

Similar Documents

Publication Publication Date Title
JP2011206445A (en) Program, information storage medium, route creating device, and arrangement board creating device
US8306330B2 (en) Game apparatus and storage medium storing a handwriting input program
JP5166472B2 (en) Program and game device
EP1705557A2 (en) Touch input program and touch input device
JP2010022462A (en) Three-dimensional puzzle game apparatus and game program
JP6612391B1 (en) GAME PROGRAM, METHOD, AND INFORMATION PROCESSING DEVICE
US8167714B2 (en) Puzzle game apparatus and computer readable storage medium having puzzle game program stored thereon
JP2007102504A (en) Image generation device and method, program and recording medium
JP6514376B1 (en) Game program, method, and information processing apparatus
JP7526848B2 (en) Program and method
JP5000132B2 (en) Training program, training apparatus, training system, training control method, game program, game apparatus, game system, and game control method
JP4598631B2 (en) Program, information storage medium, and handwritten drawing similarity determination device
US20090278809A1 (en) Storage medium storing information processing program, information processing apparatus and information processing method
US9370711B2 (en) Storage medium storing game program and game apparatus
JP2008055021A (en) Program, information storage medium and display controller
JP7300872B2 (en) Game program, method, and information processing device
JP5715284B1 (en) GAME PROGRAM, COMPUTER CONTROL METHOD, AND COMPUTER
JP7370721B2 (en) Game program, method, and information processing device
JP2021053466A (en) Game program, method for executing game program, and information processor
JP2019205826A (en) Game program, method, and information processing device
JP4061278B2 (en) GAME DEVICE AND GAME PROGRAM
JP5009349B2 (en) Handwriting learning support program and handwriting learning support device
JP7181323B2 (en) Game program, method, and information processing device
JP2006284861A (en) Program and device to support learning by handwriting
JP6298915B1 (en) GAME PROGRAM, METHOD, AND INFORMATION PROCESSING DEVICE