source: spip-zone/_plugins_/pgn4spip/branches/test/Test09 Live horizontal.txt @ 90061

Last change on this file since 90061 was 90061, checked in by jack@…, 6 years ago

Avant de tout casser on passe le trunk dans "branches"

File size: 3.4 KB
Line 
1Tilburg live is a simulation of 2 games played in accelerated time.
2
3Requirements in Windows Vista or more:
4live.pgn simulator in the unix shell bash freely supplied by Cygwin.
5
6If necessary, stop temporarily the firewall before downloading the setup.
7Download and run [Cygwin Setup.exe->http://cygwin.com/index.html] in two steps:
8- download Cygwin packages (bash is included by default) from one of .edu site in your hard disk for example in d:\Tools\Cygwin\
9- restart setup.exe and install in c:\cygwin
10
11Edit Test\MacroRunSimu.bat in order to adapt the paths of your Web server and SPIP plugin:
12<cadre>
13@echo off
14REM Define doskey macros to start/stop the web server or the simulator of live broadcast
15title Xampp Apache server
16REM Adapt the path of the Web server
17set PATH_WEB_SERVER=D:\Tools\Internet\Php\Xampp\Xampp177
18REM Adapt if necessary the path of the SPIP plugin in particular if there is not htdocs
19set PATH_SPIP_WINDOWS=%PATH_WEB_SERVER%\htdocs\spip\plugins\pgn4spip
20REM Adapt if necessary the path of cygwin binaries. By default it is installed in:
21set PATH_CYGWIN=c:\cygwin\bin
22</cadre>
23
24In a Windows command prompt (from All Programs > Accessories), run MacroRunSimu.bat
25<cadre>
26Web server: st(a)rt st(o)p (s)imu (h)elp (e)xit
27</cadre>
28This creates the doskey macro (<b>s)</b>imulation.
29
30Before
31
32[pgn movesDisplay=live squareSize=30 extendedOptions=true
33pgnData=http://localhost/spip/plugins/pgn4spip/pgn4web/live/live.pgn refreshMinutes=0.25]
34[/pgn]
35
36After
37- If a8 is blinking, start the simulation (see below) and reload the page by F5 key.
38
39- If the full live.pgn already exists, you can accelerate the moves clicking several times h6 square.
40
41In the Windows Command Prompt, enter the doskey macro command "s". Validate by ENTER.
42<cadre>
43D:\Tools\Internet\Php\Xampp\Xampp177> s
44Generating PGN file live.pgn simulating live game broadcast
45 step 0 of 34
46 step 1 of 34
47 step 2 of 34
48 step 3 of 34
49 step 4 of 34
50 step 5 of 34
51 step 6 of 34
52 step 7 of 34
53 step 8 of 34
54 step 9 of 34
55 step 10 of 34
56 step 11 of 34
57 step 12 of 34
58 step 13 of 34
59 step 14 of 34
60 step 15 of 34
61 step 16 of 34
62 step 17 of 34
63 step 18 of 34
64 step 19 of 34
65 step 20 of 34
66 step 21 of 34
67 step 22 of 34
68 step 23 of 34
69 step 24 of 34
70 step 25 of 34
71 step 26 of 34
72 step 27 of 34
73 step 28 of 34
74 step 29 of 34
75 step 30 of 34
76 step 31 of 34
77 step 32 of 34
78 step 33 of 34
79 step 34 of 34
80done with games... waiting for a while before deleting live.pgn
81</cadre>
82
83When "live broacast ended, click H6 for the next event" appears under the chessboard,
84select with the mouse the Command Prompt to give it the focus.
85
86Press Ctrl+C to stop the bash script as rewritten in the title of the Command Prompt window.
87
88This close the Command Prompt window.
89You can restart the simulation by the doskey macro "s"
90because live.pgn will be deleted and created again.
91----
92An alternative to produce in real-time live.pgn is [Arena->http://www.playwitharena.com/] 3.0:
93- Menu "Options" > "Appearance..." > PGN > [x] {{Save}} current game {{after every move}} for example in another location:
94<cadre>
95D:\Tools\Internet\Php\Xampp\Xampp177\htdocs\spip\IMG\pgn\live.pgn
96</cadre>
97- Menu "Engine" > "Tournament" > Settings: organize a duel between two chess engines.
98
99However the chess engines require almost 100% of CPU during all the game. This is not the case of Cygwin bash.
100
Note: See TracBrowser for help on using the repository browser.