Fritjof: a basic hnefatafl games review software

Post Reply
Ytreza
Posts: 20
Joined: Tue Aug 27, 2019 5:56 pm

Fritjof: a basic hnefatafl games review software

Post by Ytreza » Tue Oct 01, 2019 5:25 pm

Hello!

I coded a simple program useful to store games offline and do some basic review with variations handling, position editing, possibility to add comments, markers, arrows...
screenshot.jpg
screenshot.jpg (227.84 KiB) Viewed 14766 times
It is not perfect (I'm not responsible of possible bugs if you try to add variations of variations of variations of variations... :? ) but it is functional and I think it might be of interest for the community.

You can download the software here (for windows):
and the source files here (you need python to run them):
The readme file contains detailed instructions on how to load a game copied from the aagenielsen.dk archive (just copy in a .txt file the list of moves as displayed in the game summary and load it in Fritjof).

Don't hesitate to send me any feedback, suggestion, or report issues. But keep in mind it is an amateur work :oops:

Hope you'll find this useful!
Ytreza

nath
Posts: 65
Joined: Mon Oct 09, 2017 9:34 pm

Re: Fritjof: a basic hnefatafl games review software

Post by nath » Thu Oct 03, 2019 2:48 pm

I'd suggest splitting the file based on
re.compile("\t?\n").split(s) instead of that hard to read loop in convertfile.
The overall parsing is much harder to read than it needs to be due to the lack of split where aplliable (you don't need regexes in most cases).

Stuff like ax1,ax2,ax3,ax4,ax5 belongs either into lists or tuples. This is just an awful lot of typing.

Why do you need to catch the deprecation warnings?

I think some rule checking (capture of king, pieces move horizontally and don't jump) would be sane.

The icons and images are MIT as well, right?
Thank you for the GUI!

Regards
nath

dashstofsk
Posts: 21
Joined: Thu Jan 21, 2021 9:00 pm
Location: Gloucester, Great Britain
Contact:

Re: Fritjof: a basic hnefatafl games review software

Post by dashstofsk » Tue Oct 18, 2022 4:15 pm

How am I supposed to run this?

XP tells me that it is an invalid Win32 application.

Win7, Win10 just give me a console window with a blinking cursor.

dashstofsk
Posts: 21
Joined: Thu Jan 21, 2021 9:00 pm
Location: Gloucester, Great Britain
Contact:

Re: Fritjof: a basic hnefatafl games review software

Post by dashstofsk » Tue Oct 18, 2022 4:37 pm

I now see that on Win10 after about 10 seconds the console window springs into life with an error message:

c:\users\thibault vieu\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py:627: MatplotlibDeprecationWarning:
The MATPLOTLIBDATA environment variable was deprecated in Matplotlib 3.1 and will be removed in 3.3.


Is it really expecting there to be c:\users\thibault vieu\ on my computer?

Then after a another wait of ~15 seconds the GUI appears.

Post Reply