Difference between revisions of "Game Polyline. Release 11 Console"

From wiki.visual-prolog.com

m (New page: The programs listed below are part of the PolyLine Evolutions article. {{PolyLine Game Rules}} =Release 11 (Project PolyLine11)= '''Differences''' (relative to release 10): :Code re...)
 
m (Release 11 (Project PolyLine11))
Line 7: Line 7:
 
:Code reorganized. Each class now placed in the separate package
 
:Code reorganized. Each class now placed in the separate package
  
The Polyline11 Project uses the NotificationAgency Package, which is a part of  the PdcSpb SDK.
+
The set of Polyline11 projects uses the NotificationAgency Package, which is a part of  the PdcSpb SDK.
 
To build the Polyline10 project you must define the IDE valriable SpbSolutions as the path to the SpbSolutions directory.  
 
To build the Polyline10 project you must define the IDE valriable SpbSolutions as the path to the SpbSolutions directory.  
  
 
'''To study and run''' the program please make the steps as follows:  
 
'''To study and run''' the program please make the steps as follows:  
*Download the [http://discuss.visual-prolog.com/viewtopic.php?p=30144#30144 PdcSpb SDK Examples Polyline 7-10]]
+
*Download the [http://discuss.visual-prolog.com/viewtopic.php?p=30144#30144 PdcSpb SDK Examples Polyline 11]]
 
*Install the examples according to the  ReadmeEn.html file
 
*Install the examples according to the  ReadmeEn.html file
*Open the interested project (Polyline8...Polyline10)
+
*Open the project Polyline11_Console.prj6
 
*Build and Run the project
 
*Build and Run the project
  

Revision as of 08:50, 12 November 2008

The programs listed below are part of the PolyLine Evolutions article.

Game description

The game is played on an M x N board.

Game rules

  • Each player on his turn adds a new point. The point must prolong the existing Polyline (or start the Polyline, if it doesn't exist).
  • The resulting Polyline must be non-interrupted and each move can be taken in any of end of the line.
  • The player, which locks the line (the point is set on the polyline), wins.

Release 11 (Project PolyLine11)

Differences (relative to release 10):

Code reorganized. Each class now placed in the separate package

The set of Polyline11 projects uses the NotificationAgency Package, which is a part of the PdcSpb SDK. To build the Polyline10 project you must define the IDE valriable SpbSolutions as the path to the SpbSolutions directory.

To study and run the program please make the steps as follows:

  • Download the PdcSpb SDK Examples Polyline 11]
  • Install the examples according to the ReadmeEn.html file
  • Open the project Polyline11_Console.prj6
  • Build and Run the project

The language of the application may be defined in the command line by the language identifier:

  • en - English
  • ru - Russian

When running the program from the IDE, the parameter of the language must be placed to the field "Project Settings"\Run Options\Run Arguments, available from menu Project\Settings...