Page 1 of 1

Fritjof: a basic hnefatafl games review software

Posted: Tue Oct 01, 2019 5:25 pm
by Ytreza
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 26278 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

Re: Fritjof: a basic hnefatafl games review software

Posted: Thu Oct 03, 2019 2:48 pm
by nath
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

Re: Fritjof: a basic hnefatafl games review software

Posted: Tue Oct 18, 2022 4:15 pm
by dashstofsk
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.

Re: Fritjof: a basic hnefatafl games review software

Posted: Tue Oct 18, 2022 4:37 pm
by dashstofsk
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.

Re: Fritjof: a basic hnefatafl games review software

Posted: Tue Apr 07, 2026 5:06 pm
by Ytreza
Hi!

With the help of LLMs I refactored the program, turning it into a webapp : https://ytrezat.github.io/fritjof/

- No install needed.
- Much faster GUI.
- All Copenhagen rules implemented.
- The variation tree is much better.
- Direct import via copy/pasting move list from aagenielsen.dk
- Puzzles (those from this website and a couple more)
- Games archive: not much at the moment, the idea is to store very good games.

Let me know if you'd like something tweaked or added!