Difference between revisions of "Tutorial Project. Release 12"
m |
m |
||
Line 36: | Line 36: | ||
To install and run the set of projects of the Release 12: | To install and run the set of projects of the Release 12: | ||
*Download archives | *Download archives | ||
**''' | **'''SpbVipSDK_73_PE_Examples_Polyline12_Classes.zip''' | ||
**''' | **'''SpbSVipDK_73_PE_Examples_Polyline12_Programs.zip''', | ||
using the PDC forum page [http://discuss.visual-prolog.com/viewtopic.php?p=31296&sid=b2208e8e3ec2a4480bffd4e7ecc61290#31296 VIP-Tools and Examples] | using the PDC forum page [http://discuss.visual-prolog.com/viewtopic.php?p=31296&sid=b2208e8e3ec2a4480bffd4e7ecc61290#31296 VIP-Tools and Examples] | ||
Line 45: | Line 45: | ||
==Run== | ==Run== | ||
Open, build and run (using '''VIP 7. | Open, build and run (using '''VIP 7.3'''): | ||
*Programs/ObjectWinLib0/Polyline12_ObjWindows.prj | *Programs/ObjectWinLib0/Polyline12_ObjWindows.prj | ||
*Programs/ObjectWinLib1/Polyline12_ObjWindows.prj | *Programs/ObjectWinLib1/Polyline12_ObjWindows.prj | ||
Line 51: | Line 51: | ||
*Programs/ObjectConsole/Polyline12_ObjectConsole.prj | *Programs/ObjectConsole/Polyline12_ObjectConsole.prj | ||
As before to build projects of the Polyline11 release the IDE variable SpbSolutions must be set to the | As before to build projects of the Polyline11 release the IDE variable SpbSolutions must be set to the SpbVipSDK directory. | ||
Player '''Computer00''' may be involved as the single player and must be assigned as the Starter. | Player '''Computer00''' may be involved as the single player and must be assigned as the Starter. |
Revision as of 07:35, 5 June 2010
Written by Victor Yukhtenko. Email: victor@pdc.spb.su
The programs listed below are part of the Tutorial Project Evolutions article.
Purpose
The purpose of the Release 12 is to solve the game dimension problem. The Release 11 projects family had the game dimension problem - the overloading of the call stack on some values of the multiplication TheSizeOfTheBoard*AmountOfRounds and appropriate breakdown of the application.
Specialties of the Release 12
- The set of projects
- The only projects ObjectConsole and ObjectWin presented in the Release12. The set of projects doesn't contain projects Console, ConsoleLib, ObjectConsoleLib. These projects will not be supported in the future.
- Project ObjectWin contains now three variants ObjectWin0, ObjectWin1, ObjectWin2 (the Personal Edition contains the only projects ObjectWinLibX, where the UI is presented as the library). These variants show the phases of the modification of the code.
- The project ObjectConsole contains the only final solutions. The purpose of the project ObjectConsole is testing and compatibility check.
- The same functionality
The behavior of applications of the Release 12 is the same as the behavior of applications of the Release 11
- The test model of the player added
The only purpose of the creation of the model of the player Computer00 is to simulate the behavior of the application on the large amount of moves, which players make. Some Explanations
Project | Description |
---|---|
ObjectWin0/Polyline12_ObjWindows | The code of the class SeniourJudge is modified to make it clear the of the interaction of players and the class JuniourJudge. The player model Computer00 added. The Player Computer00 makes always the same special move. The class JuniourJudge recognizes this special move, doesn't show it on the board and informs the SeniourJudge about move occurrence. Thus the next move may be done. The maximal amount of moves is defined by the constant playLimit_C in the class JuniourJudge. The problem appears when playLimit_C=10000. |
ObjectWin1/Polyline12_ObjWindows | The first step of the modification of the code to solve the problem. The recursive mechanism of the organization of moves is replaced by the iterative mechanism. The application works stable when playLimit_C=100000. The multigame mode and the interruption process is not modified correctly. |
ObjectWin2/Polyline12_ObjWindows | The final version. All modes can run correctly. Test player Computer00 can play, when playLimit_C=100000. |
Download and Install
To install and run the set of projects of the Release 12:
- Download archives
- SpbVipSDK_73_PE_Examples_Polyline12_Classes.zip
- SpbSVipDK_73_PE_Examples_Polyline12_Programs.zip,
using the PDC forum page VIP-Tools and Examples
- Extract archives listed above to the same directory. You should have in mind, that each of the archives creates the structure of the folders with the root PdcSpbSDK. Repetitions are possible. The result the structure of the Release 12 should look like:
Run
Open, build and run (using VIP 7.3):
- Programs/ObjectWinLib0/Polyline12_ObjWindows.prj
- Programs/ObjectWinLib1/Polyline12_ObjWindows.prj
- Programs/ObjectWinLib2/Polyline12_ObjWindows.prj
- Programs/ObjectConsole/Polyline12_ObjectConsole.prj
As before to build projects of the Polyline11 release the IDE variable SpbSolutions must be set to the SpbVipSDK directory.
Player Computer00 may be involved as the single player and must be assigned as the Starter.
The language of the application, if supported, may be defined in the command line by the language identifier:
- en - English
- ru - Russian