Algorithm 1 Game play on the system “Farming Time”. |
Input: (1) A user database, with the entry for each user being empty initially; (2) The ID data of the user conducting game play, empty initially; (3) The weight w of the grain threshed by the user, set to zero initially. Output: The graphics on the display screen are like those depicted in Table 4. Steps. //Stage 1: Initialization ―
|
Step 1: |
//Theme 1: Game initialization |
|
//Set initial grain weight to be zero |
Step 2: |
//Theme 2: Log in |
-
2.1
Teach the user (by text and audio messages) to tap the ID card against the ID sensing area for two seconds;
-
2.2
Wait for the user to log in as taught above until he/she has done so;
-
2.3
Show the message “The ID data are being loaded to log in…” and save the data in the user database.
|
//Stage 2: Invitation to select a game ― |
Step 3: |
//Theme 3: Game selection |
-
3.1
Teach the user (by text and audio messages) to select a game from “sushi,” “radish cake,” and “sticky rice” by pressing the left or right button if the middle game is not wanted, and to press the start button to initiate the game;
-
3.2
Wait for the user to start a selected game as taught above until he/she has done so;
-
3.3
Show the recipe of a dish of food corresponding to the game selected by the user.
|
//To lead the user into a mood for game play |
//Stage 3: Guidance for game play ― |
Step 4: |
//Theme 4: Game play |
-
4.1
Teach the user (by text and audio messages) to thresh the rice ear bundle to obtain a game point by waving the bundle up and down at the time when the icon of “holding the rice ear bundle” moves to hit the bullseye;
-
4.2
Teach the user (by text and audio messages) to step on the pedal to get a game point at the time when the icon of “stepping on the pedal” moves to hit the bullseye;
-
4.3
Generate a random sequence of the two types of icons and display them one by one and invite the user (by text and audio messages) to play the game by the actions of threshing and pedaling to obtain game points as taught above until the sequence is exhausted by the user’s actions;
-
4.4
For each game point obtained above, set w = w + 50.
|
//Each game point = 100 kg of grain |
//Stage 4: Ending ― |
Step 5: |
//Theme 5: Game point counting |
|
Step 6: |
//Theme 6: Ranking of performances |
Display the ranking of harvests and related data of all the users having played the selected game in the past according to the weight values of the harvested rice grain. |
//End |