资 源 简 介
Introduction:
JConquest is the modification of a game called gogame. We have tried to include certain educational value by having the player solve Java puzzles during the game.
Game Description:
The player has to place a dot at the vertex of one of the square on the grid. The main objective of the gogame is to capture other opponent’s dots.
We are going to include some java puzzle at the end of each capture by the player. Player collects a full credit if he solves the Java puzzle or he will only get a partial credit. It is clear that the player has a better probability of wining the game if he is good at both at gogame as well as Java.
Here is an example of the java puzzle:
Program to return maximum number
Puzzle:
Public int maxNumber(int x, int y)
{
Else
Return x;
If (x > y)
Return y;
}
Solution:
Public int maxNumber(int x, int y)
{
If (x > y)
Return x;
Else
Return y;
}