Last weekend I attended Global Game Jam, more particularly its Prague chapter called Game Jam Prague. The original plan was to join my friends from Hyperbolic Magnetism like the last year, but they managed to grow their team to 7 people, at which point I decided to split and form my own team. :-)
The theme selected for this year’s edition was Ouroboros.
At first I created one concept, but later I realized it’s just a toy and it would be very hard to turn it into a playable game, so I decided to scratch it. Then I got the idea to create a puzzle game played on similar board like Hexxagon, but instead of individual stones you have 2-6 snakes and your objective is to move and/or rotate them in order to create one big cycle consisting of all of them.
This is how the game looked immediately after the contest (YouTube video).
I was very surprised that I won the second place with this game in the local competition, because all entries were great and to be honest I did not expect it. Thanks for your support!
If you want to try the game for yourself you can either checkout the source code or download a ZIP or TAR archives. After that make sure you have the latest LÖVE engine installed and run start.bat (Windows) or start.sh (Linux/MacOSX).
If you want to help me with the levels, just create the level file in levels folder (for example 14.lvl) and select level 14 in the level chooser. For level definition see file format.txt in the same folder. Thank you!
You might know a web tool call Wordle. It’s a simple way how to create nice word clouds from texts. It has one disadvantage though. It runs as a web service, so you cannot run it offline. I tried to find the source but the only thing I found was this FAQ answer, where Jonathan (the author) mentioned working for IBM. After few search queries I found Word-Cloud Generator, which seems like the Wordle predecessor from IBM that can be run offline. After some fiddling with the tool I present you these (word clouds from 3 big openSUSE IRC channels I am on, #opensuse-buildservice, #opensuse-factory, #opensuse-project):
Come on, join our IRC channels and have a lot of fun!
Today I needed to implement “human sort” for a list of distributions we support in the Open Build Service. I wanted to sort them alphabetically but at the same time the newest ones at the top. I ended up with the following code:
Nifty, right? :-) The idea is simple. I use the sort_by function which pre-computes the values that are later compared. I replace some special values like “Factory” or “_SP”, because I want “Factory” to be the newest (100 is higher than any other openSUSE version) and “11_SP1” to behave exactly like “11.1”. Then I split the key using the “” delimiter and turn any string in form “digit” or “digit.digit” to float number. I change the sign, because I want versions to be sorted in the reverse direction. Good thing is that Ruby operator <=> works on arrays also, so I’m done with key modifications and the sort does the rest …
PS: I used |key,val| in sort_by block because I want to use this function also to sort hashes by their key. This way it works both for arrays and hashes with any further modifications.