yrutschle / dgslib Goto Github PK
View Code? Open in Web Editor NEWPerl client library to DragonGoServer
Perl client library to DragonGoServer
DGS has an upgrade to use https at:
https://www.dragongoserver.net/forum/read.php?forum=1&thread=50157#50157
Is the change going to work with DGSlib?
if (&black_list($m->sender)) { $m->reject_game("reject excessive game invitation"); $self->message("reject excessive game invitation from " .$m->sender."\n"); } elsif ($self->check_board($m)) {
262a267,286
}
sub black_list {
my $senderid = shift;
my $bool = 0 ;
my %blacklist_hash;
if ( -f "black.lst") {
open (BLACKLST, "black.lst") || die " can not open black list file";
while() {
chomp;
if (/^(\d+)\s*$/) {
my $id = $1;
$blacklist_hash{$id} = 1 ;
}
}
close(BLACKLST);
}
$bool = 1 if ($blacklist_hash{$senderid});return $bool ;
A file "black.lst" is created to have black_list senderid , one per line to be rejected by bots.
This issues was found many months ago by me. The bots supported by DGSlib would get stuck and stop playing if there are multi-player-game invitation pending.
Here is DGS discussion link:
http://www.dragongoserver.net/forum/read.php?forum=2&thread=49261
JUG recommended a solution on this:
by JUG (jug), 2k 2017-05-09 11:58 (No. 2)
Then in your bots invitation-filter you better reject invitations with:game_settings.game_type != "GO"
My comments on this issue is that it is a nice feature to have in DGSlib, but probably is lower priority. After I warned months ago, no repeating incidents happened. I opened this ticket so that we have a document of this bug.
I can't read Perl codes well.
And I want to make my own python or something else version.
Can anyone help me with getting:
game sgf
game states like: board size, handicaps.etc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.