This learning project was developed over the Christmas holidays 2025/26.
We used to play this game a lot during our school days about 45 years ago (and drink beer while doing so :-)
At the beginning, I decided to make the playing field static and not generate it during runtime.
Up to 4 players can play at the same time. In addition, it is possible to use one of the players as a PC opponent.
Playing against the computer is a challenge. The routine for selecting moves is far from perfect, but at least you can play against the computer.
Sound effects, background music, and playing against the computer are optional and can be saved as defaults.
I have no idea if it is possible to adjust the audio volume with the mediaplayer, so I used Audacity to lower the background music so that the other sounds remain audible.
I would also have liked to have displayed the dice roll differently, but then left it as it is now.
I discarded the option of allowing multiple columns per player, as it was easier in this form.
Dear
cogier
, Thanks a lot for looking at the Game, if correct translated it is "Betriebsblind" => operational blindness if someone is too much involved.
+) Changed the German words.
+) Changed the position of the rotating dices in dependence to the "hold" Buttons at the bottom. Maybe the resolution of your screen is that much different to mine or whatever it is, no idea. Just see if it is now working, the dices should now be visible.
+) I added the "&" ampersand to the question dialog, never used it because the default button is "yes" if I hit enter.
I'm working a lot on the PC Player, changed also something in this version.
Thanks for looking at the Game and contributing to it, nice that it becomes a collective Project 👍
I added the icons. Here on Ubuntu 24.04 in the standard gb.gui component I don't see the icon in the taskbar, just see this icon for all Apps I created and running: Image
screenshot_dice.png
(Click to enlarge)
So I have not that much attention on this topic. Once I got it running by I think using gb.qt5 as GUI component.
I will upload the changed version later, who knows who will contribute to the project …
Thanks for having a look at this icon thingsy, I tried my best, did the icon in the form, did also an executable then changed project GUI to gb.qt5 nothing changed!
If I remember well it did in the beginning if I used the Wayland manager, now at X11 Gnome 46 it doesn't …
I leave the icon in the form so if someone else downloads the Game it will hopefully be visible.
I tried my best, did the icon in the form, did also an executable then changed project GUI to gb.qt5 nothing changed!
You got me thinking that there must be a way to fix this. I loaded Ubuntu 24.04 on another computer, installed Gambas and Dice, then I had to find out how to get it to install X11 instead of Wayland. I discovered that you need to place the image, you want to use, in the program's main folder.
Now got to Project Properties ([Ctrl]+I) and set the picture here.
You got me thinking that there must be a way to fix this. I loaded Ubuntu 24.04 on another computer, installed Gambas and Dice, then I had to find out how to get it to install X11 instead of Wayland. I discovered that you need to place the image, you want to use, in the program's main folder.
Now got to Project Properties ([Ctrl]+I) and set the picture here.
Dear
cogier Very much appreciated, so much effort for this little icon.
My used icon is in the programs main folder. Even set the icon for the form and in the project properties. Problem stays…
As I was used to handle Micro*** Windows I was maybe to curious to change things in Ubuntu too much, if I did something which was not good for the Ubuntu System, it's my fault. I'm on Ubuntu since August, deleted all backups and the running system by accident, had to setup from the beginning and now I'm a little bit slower in changing things. I always try to see the good in things, so I did using Wine, then I crashed the system with installing a Win App with Wine what I didn't believe that this could happen (topic sandbox)
So now I have a running system, and, believe it, never change a running system 😁
To be honest, I lost so often against the computer that I created a high score list to document it.
So, once again, a little more bells and whistles…
I'm a bit curious regarding the gridview object I used to build the High Score Table. Is it possible to change the colour of the selection? Default is grey…
Anyway, I worked around as you can see if you play a little to see the results in the list…
Hi
Quincunxian Thanks for having a look. The current version is 6. See here where I used the gridview for High Scores:
Regarding the selection It was my fault, I already found the background syntax. I was interested in changing the selected line cursor, which is grey by default:
Hi Yogi,
I was downloading the attachment from the bottom of the OP, thinking that was the latest version. *sigh* Sorted out now.
I am just curious. Why do you use a module to programatically create a form window and grid view rather that just using a standard form to dispaly the data?
(Just because I can is a reasonable answer and by the ancient gods of assembler code, I've done that often enough myself)
Reuse is the only thing I can think of but you obvisouly had some reason to choose that direction.
Also, If you want to try lighter shades of color rather than the Gambas pre-sets, you can use as an example:
Code
.background =color.rgb(255, 179, 179)
There is a good color chooser here on W3Schools that allows you to select the colour visually and get the Hex, RGB & Hsl codes.
Hi Yogi,
I was downloading the attachment from the bottom of the OP, thinking that was the latest version. *sigh* Sorted out now.
I am just curious. Why do you use a module to programatically create a form window and grid view rather that just using a standard form to dispaly the data?
(Just because I can is a reasonable answer and by the ancient gods of assembler code, I've done that often enough myself)
Reuse is the only thing I can think of but you obvisouly had some reason to choose that direction.
Also, If you want to try lighter shades of color rather than the Gambas pre-sets, you can use as an example:
Code
.background =color.rgb(255, 179, 179)
There is a good color chooser here on W3Schools that allows you to select the colour visually and get the Hex, RGB & Hsl codes.
The project was created as a practice example. That's why I just played around with the “High Score.” Since I'm not a professional, I like to test things out.
I had also considered storing the high score list in an sqlite database, but that was a bit too much for the 30 data records that are stored.
Thanks for the tip regarding the color scheme of the grid view. I also played around a bit with the background and foreground colors, but I couldn't change the selection bar with them.
Basically, I'm having some fun with Gambas and it makes my life easier under Ubuntu. It's nice if someone finds it useful,