]> git.sesse.net Git - remoteglot/blob - config.pm
4a653637651fcbe77ae76526d5bc0fe7b3d0e457
[remoteglot] / config.pm
1 # Default configuration. Copy this file to config.local.pm if you want
2 # to change anything instead of modifying this (so you won't have to make
3 # changes in git).
4
5 package remoteglotconf;
6
7 our $server = "freechess.org";
8 our $nick = "SesseBOT";
9 our $target = "GMCarlsen";  # FICS username or HTTP to a PGN file.
10
11 # Set to non-undef to pick out one specific game from a PGN file with many games.
12 # See example.
13 our $pgn_filter = undef;
14 #our $pgn_filter = sub {
15 #       my $pgn = shift;
16 #       return $pgn->round() eq '7' && $pgn->white eq 'Carlsen,M';
17 #};
18
19 # Set to non-undef to override the clock information with our own calculations.
20 # The example implements a simple 60+60 (with bonus added before the move).
21 our $adjust_clocks_before_move = undef;
22 #our $adjust_clocks_before_move = sub {
23 #        my ($white_clock_left, $black_clock_left, $move, $toplay) = @_;
24 #
25 #        if (!defined($$white_clock_left) || !defined($$black_clock_left)) {
26 #                $$white_clock_left = 3600;
27 #                $$black_clock_left = 3600;
28 #        }
29 #        if ($toplay eq 'W') {
30 #                $$white_clock_left += 60;
31 #        } else {
32 #                $$black_clock_left += 60;
33 #        }
34 #};
35
36 our $json_output = "/srv/analysis.sesse.net/www/analysis.json";
37 our $json_history_dir = "/srv/analysis.sesse.net/www/history/";  # undef for none.
38
39 our $engine_cmdline = "./stockfish";
40 our %engine_config = (
41 #       'NalimovPath' => '/srv/tablebase',
42         'NalimovUsage' => 'Rarely',
43         'Hash' => '1024',
44 #       'MultiPV' => '2'
45 );
46
47 # Separate engine for multi-PV; can be undef for none.
48 our $engine2_cmdline = undef;
49 our %engine2_config = (
50 #       'NalimovPath' => '/srv/tablebase',
51         'NalimovUsage' => 'Rarely',
52         'Hash' => '1024',
53         'Threads' => '8',
54 );
55
56 our $uci_assume_full_compliance = 0;                    # dangerous :-)
57 our $update_max_interval = 1.0;
58 our @masters = (
59         'Sesse',
60 );
61
62 # ChessOK serial key (of the form NNNNN-NNNNN-NNNNN-NNNNN-NNNNN-NNNNN)
63 # for looking up 7-man tablebases; undef means no lookup. Note that
64 # you probably need specific prior permission to use this.
65 our $tb_serial_key = undef;
66
67 eval {
68         require 'config.local.pm';
69 };