First off, @jlnr, apologies for responding so late ... I did not check the forum after posting, thinking that I would be notified by email if anybody commented.
Thanks for looking at the code. Please check it out again as I did try adding some more polish. Implemented drag-n-drop of the tiles, although it could be made even better by using a more appropriate data structure to store the tile patterns. I did not put much thought to the choice of data structure when I started writing the game, as I was only focused on making it text based ... so yes, board.rb has a complete text based version in it. Bolting the Gosu based GUI on top of it came as an after thought... and some refactoring.
And yes, I intend to port the text based game on mruby - the default version which compiles out of the box, without the need of any additional gems. Then I will tackle porting the Gosu based version. Do you have any insight into that process?
Finally, what do you mean by "save-game code is interesting"? Interesting in what way? The mruby version is half baked and needs some serious thought if I want to stick to the "default mruby" concept. The ruby based version is simply marshaling the game object. Any suggestions on making it easier?
Again, thanks for your time and attention ... really appreciate your contribution to this forum.
1010! is a single player, tile-based, board game played on a square grid of 10x10 cells. The player is presented with a random selection of tile patterns of various shapes, 3 at a time, which are to be placed on the board, one by one. If the tiles consume an entire row (or column), without any empty cells in between, the row (or column) is cleared up so that more tiles can be placed. Each cell consumed by the tile counts towards the score of the game. The aim is to place as many tiles as possible to increase the score. In its most simplest form, each cell adds 1 point to the score. A variation of the game can be to assign colors to the tile patterns and different points for each color.
The game logic
is written in Ruby
and has only one dependency: gem gosu
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill