simple living, careful thinking, collective fun
Having computed the optimal number of moves from each position to the final one in SlidingMin, I have upgraded the game difficulty to its maximum.
There is a total of 239500800 different valid positions.
Only 3 of these positions require 53 moves to solve (not 18 positions, since for SlidingMin the blank is located at the middle right of the 3x4 grid and not in the corner as usual).
Here is the distribution:
There are many online solvers for the 15 Puzzle and variants, but people can learn how to reach an optimal solution in SlidingMin without solvers, since this game automatically increases the amount of hints it gives, thus decreasing its difficulty throughout the day, until there are only 10 moves left.
SlidingMin also rates solutions (five stars for the optimal) and allows people to play together.
Each daily challenge now requires at least 50 moves.
There are other novelties ready at GameBot.club, including the fourth and the fifth kinds of daily challenge.
I will address those in subsequent posts...
September 8, 2022
The third kind of daily global challenge is available at GameBot.club.
The goal of SlidingMin is to form the words GAME BOT CLUB in the least amount of moves (the word BOT must be green and left aligned).
Tiles can slide horizontally or vertically.
Click on a letter to slide it into the empty space.
Click on the empty space to undo the last slide.
Multi-tile sliding is supported.
There are many implementations based on the 19th-century 15 Puzzle.
What is interesting about SlidingMin is that it rates solutions and allows people to play together.
The built-in hint system prevents frustration...
If you feel that a particular daily instance is too difficult, just refresh the page after a few hours.
One hour before the game ends, there will only be 10 moves remaining to solve the puzzle with an optimal solution.
The question is: who gets there first? :)
August 8, 2022
A new kind of daily global challenge is available at GameBot.club.
Find all six vegetables (garlic, tomato, carrot, aubergine, cucumber, and broccoli) in this 7x7 vegetable garden.
Try to find them in the least amount of digs. Or, be the first player to find the garlic or the tomato after uncovering every empty space (a game mechanic analogous to "shooting the moon").
VeggieDigger is almost all about luck; a nice contrast to Cross-Pollinator which is almost all about skill.
Note that there is a different garden arrangement every day, common to all players.
In other words, the exact same daily challenge is available for all players to solve.
By the way, there is now an alternative signup/login button, hopefully making it easier to invite friends and see their profile pictures in the (ephemeral) leaderboards.
More games are being developed and will be available soon...
July 29, 2022
I recently gave a talk on Prequel.
For those of you who wanted, but were unable to attend, I leave here the slides and the main points.
First, some context on why I decided to create a programming language.
I started to type-in program examples as a child (in 1983), because my (family household's) ZX Spectrum did not come with a tape recorder.
For a few months, if I wanted the Speccy to do something, I had to type-in code from the manual and from Spectrum magazines.
Some examples had typos and that forced me to make changes, trying to fix parser errors, to get the code running.
This was how I started to program.
In 2017 my oldest son was about the same age I was when I started to program.
This happened to be a time when I had recently left my job and was doing some soul searching, trying to find something meaningful, something I really wanted to do, and I decided to help my kids with programming (looking at what was then available to help them).
There were many things available, but none I really liked (except the ELLO computer, which would have worked for my purposes, unfortunately I am still waiting for my backer unit).
I set up to build what I would like to have had when starting to program.
I wanted my kids, or anyone else for that matter, to be able to program anywhere, on a browser, even on a smartphone.
And I wanted a programming language that was simple.
Well, simpler than loop programs is complicated ;)
Loop programs are the imperative programming counterpart to primitive recursive functions.
Over the years people experimented with variants — introducing instructions to directly handle subtraction, conditionals, and early termination of loops — and found out that, although the theoretical expressive power would remain unchanged, these added instructions would make the programming language more efficient from a practical point of view.
This was what I was looking for: a programming language that could be used with ease in practice.
As it turns out, loop programs are the theoretical underpinnings of my Primitive RECursive driven programming Language, which, instead of PRECL, I call Prequel because I like the idea of something that brings us back to basics, back to the foundation of programming.
The core of the language, the part that is common to all projects, to all the examples that use Prequel, simply has assignments, two datatypes (signed 32-bit integers and possibly nested lists of such integers), and two control structures.
There is a part of Prequel that is specific to each example: input (in the form of read-only variables) and procedures.
When an example is created it is also decided which input to pass on to Prequel and which procedures are needed to act on the example.
Creating an example is a process similar to a game designer deciding which ingredients to include, deciding how is the game best served.
Currently, everybody has the possibility of loading, running, and debugging Prequel programs in 9 projects/examples.
Note that, in the Ackermann example you are asked to implement the Ackermann function.
How are you going to implement a non-primitive recursive function in a primitive recursive programming language?
Well, Prequel is primitive recursion driven, general recursion powered.
Prequel makes it easy to keep a programming discipline of primitive recursion, but you are free to break that discipline and go beyond the expressive power of loop programs.
The idea is that, whenever the execution slips past the last instruction, the runtime system re-enters the module preserving the state (keeping its variables and their content).
This was a simple idea I had (too simple to have not been found) and I was told (as feedback from the talk) of an already existing paper proving that primitive recursion within an outer while loop is Turing-complete.
I will try to find the paper and have a look at the similarities to my approach, although, regardless of any theoretical result, my goal with Prequel was always about creating an environment that was fun to program in.
Finding the optimal score of the ConnXxis puzzle is still an open problem.
The optimal score cannot be higher than 90 and the current high score is 72.
If you improve upon any known highest score (perhaps by programming an heuristic in Prequel) you enter the ConnXxis Hall of Fame.
During the talk, I demoed Factorial, AlgoDeduce, and WarpChase.
Note that AlgoDeduce can be used by companies to help recruiters filter candidate programmers based on demonstrable algorithmic skills.
The fact that Prequel is currently not widespread can be used as an advantage: solutions in Prequel are hard to find (and copy/paste), so any programming exercise can be given beforehand.
Regarding WarpChase, I pointed out the 30 ticks per second, where, for each snapshot of the game state, a bot only has to call either WARPCHASE.ACTIVATE() or WARPCHASE.DEACTIVATE().
The bot view of the game state is not updated until either call.
So, although there is a limit on the number of instructions per tick, a bot can use more instructions by trading off the accuracy of a progressively out-of-sync picture in this soft real-time system.
I will try to organise 2-vs-2 tournaments locally by the end of the year, before moving those tournaments online.
Hope you get the chance to attend a Prequel event in the future :)
June 17, 2022
Forthcoming speaking engagement:
This is the first speaking engagement dedicated to the Prequel programming language.
If you happen to be in the area, do show up and say hello.
June 8, 2022
Earlier entries: Page 2