jonathanballs / backgammony Goto Github PK
View Code? Open in Web Editor NEWA backgammon client with multiplayer support
License: GNU General Public License v3.0
A backgammon client with multiplayer support
License: GNU General Public License v3.0
I have the current version from Flatpak (1.0.0, 02.07.2020).
Tested with intermediate and 4-ply.
It is the same with AI against AI games.
$ /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=backgammony uk.jnthn.backgammony
Attempting connection to /tmp/gnubg-20200705T185747.2408571.sock
NETSND: EVALUATION FIBSBOARD board:You:Opponent:1:0:0:0:-2:1:0:0:1:3:0:3:0:0:0:-5:5:0:0:0:-3:0:-5:0:0:0:0:2:0:1:4:1:4:1:1:0:0:0:1:-1:0:25:0:0:0:0:0:0:0 PLIES 0 CUBELESS NOISE 400
object.Exception@Erfolg(83): Socket Error:
----------------
??:? immutable(char)[] networking.connection.Connection.readline(core.time.Duration) [0x5577585e979c]
??:? game.PipMovement[] ai.gnubg.gnubgGetTurn(game.GameState, ai.gnubg.GnubgEvalContext) [0x5577585905ff]
??:? void std.parallelism.Task!(ai.gnubg.gnubgGetTurn(game.GameState, ai.gnubg.GnubgEvalContext), game.GameState, ai.gnubg.GnubgEvalContext).Task.impl(void*) [0x557758611f27]
??:? void std.parallelism.AbstractTask.job() [0x557758887d66]
??:? void std.parallelism.TaskPool.doJob(std.parallelism.AbstractTask*) [0x557758887eb7]
??:? void std.parallelism.TaskPool.doSingleTask() [0x557758887f8c]
??:? void core.thread.osthread.Thread.run() [0x5577588765c1]
??:? thread_entryPoint [0x5577588acf0d]
??:? [0x7f17dc2645e1]
I compiled the project with dub build && ./backgammon
like shown in the readme.
After running it, there is an exception at the first run:
Could not read config file: ~/.config/backgammony/backgammony.json: No such file or directory
std.file.FileException@std/file.d(4689): flags: Datei oder Verzeichnis nicht gefunden
----------------
??:? @safe core.sys.posix.dirent.DIR* std.file.cenforce!(core.sys.posix.dirent.DIR*).cenforce(core.sys.posix.dirent.DIR*, scope lazy const(char)[], immutable(char)[], ulong) [0x55db7fedabe0]
??:? @safe bool std.file.DirIteratorImpl.stepIn(immutable(char)[]) [0x55db7fed9c09]
??:? ref @safe std.file.DirIteratorImpl std.file.DirIteratorImpl.__ctor!(immutable(char)[]).__ctor(immutable(char)[], std.file.SpanMode, bool) [0x55db7ff21d3b]
??:? ref @safe std.conv.emplaceRef!(std.file.DirIteratorImpl, std.file.DirIteratorImpl, immutable(char)[], std.file.SpanMode, bool).emplaceRef(ref std.file.DirIteratorImpl, ref immutable(char)[], ref std.file.SpanMode, ref bool).S std.conv.emplaceRef!(std.file.DirIteratorImpl, std.file.DirIteratorImpl, immutable(char)[], std.file.SpanMode, bool).emplaceRef(ref std.file.DirIteratorImpl, ref immutable(char)[], ref std.file.SpanMode, ref bool).S.__ctor(ref immutable(char)[], ref std.file.SpanMode, ref bool) [0x55db7ff1cfc4]
??:? @safe void std.conv.emplaceRef!(std.file.DirIteratorImpl, std.file.DirIteratorImpl, immutable(char)[], std.file.SpanMode, bool).emplaceRef(ref std.file.DirIteratorImpl, ref immutable(char)[], ref std.file.SpanMode, ref bool) [0x55db7ff1cf6e]
??:? @safe std.file.DirIteratorImpl* std.conv.emplace!(std.file.DirIteratorImpl, immutable(char)[], std.file.SpanMode, bool).emplace(std.file.DirIteratorImpl*, ref immutable(char)[], ref std.file.SpanMode, ref bool) [0x55db7ff1cf20]
??:? void std.typecons.RefCounted!(std.file.DirIteratorImpl, 0).RefCounted.RefCountedStore.initialize!(immutable(char)[], std.file.SpanMode, bool).initialize(ref immutable(char)[], ref std.file.SpanMode, ref bool) [0x55db7feea71c]
??:? ref std.typecons.RefCounted!(std.file.DirIteratorImpl, 0).RefCounted std.typecons.RefCounted!(std.file.DirIteratorImpl, 0).RefCounted.__ctor!(immutable(char)[], std.file.SpanMode, bool).__ctor(ref immutable(char)[], ref std.file.SpanMode, ref bool) [0x55db7feea6d8]
??:? ref @trusted std.file.DirIterator std.file.DirIterator.__ctor(immutable(char)[], std.file.SpanMode, bool) [0x55db7feda430]
??:? std.file.DirIterator std.file.dirEntries(immutable(char)[], std.file.SpanMode, bool) [0x55db7feda5b3]
source/ui/flagmanager.d:27 void ui.flagmanager.FlagManager.load() [0x55db7fc59aef]
source/ui/fibssidebar.d:101 ui.fibssidebar.FIBSSidebar ui.fibssidebar.FIBSSidebar.__ctor() [0x55db7fc58ce4]
source/ui/window.d:168 ui.window.BackgammonWindow ui.window.BackgammonWindow.__ctor() [0x55db7fc6367c]
source/app.d:25 _Dmain [0x55db7fbf76a6]
Neither the folder ~/.config/backgammony nor the config file backgammony.json inside exists.
I would suggest that the program creates this file if it is started the first time.
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.